From 775e542f395f8c61ff9b199993e63fc921a961c8 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:10:02 +0000 Subject: [PATCH 1/2] Autorest Upgrade - 4.0.752 --- ...-AzServiceBusPrivateEndpointConnection.ps1 | 3 +- .../Complete-AzServiceBusMigration.ps1 | 3 +- ...-AzServiceBusPrivateEndpointConnection.ps1 | 3 +- .../Get-AzServiceBusAuthorizationRule.ps1 | 3 +- .../Get-AzServiceBusGeoDRConfiguration.ps1 | 3 +- .../exports/Get-AzServiceBusKey.ps1 | 3 +- .../exports/Get-AzServiceBusMigration.ps1 | 3 +- .../exports/Get-AzServiceBusNamespace.ps1 | 3 +- .../Get-AzServiceBusNetworkRuleSet.ps1 | 3 +- ...-AzServiceBusPrivateEndpointConnection.ps1 | 3 +- .../exports/Get-AzServiceBusPrivateLink.ps1 | 3 +- .../exports/Get-AzServiceBusQueue.ps1 | 3 +- .../exports/Get-AzServiceBusRule.ps1 | 3 +- .../exports/Get-AzServiceBusSubscription.ps1 | 3 +- .../exports/Get-AzServiceBusTopic.ps1 | 3 +- .../New-AzServiceBusAuthorizationRule.ps1 | 3 +- .../New-AzServiceBusGeoDRConfiguration.ps1 | 7 +- .../exports/New-AzServiceBusKey.ps1 | 3 +- .../exports/New-AzServiceBusNamespace.ps1 | 3 +- .../exports/New-AzServiceBusQueue.ps1 | 7 +- .../exports/New-AzServiceBusRule.ps1 | 7 +- .../exports/New-AzServiceBusSubscription.ps1 | 7 +- .../exports/New-AzServiceBusTopic.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 156 +++--- .../Remove-AzServiceBusAuthorizationRule.ps1 | 3 +- .../Remove-AzServiceBusGeoDRConfiguration.ps1 | 3 +- .../exports/Remove-AzServiceBusMigration.ps1 | 3 +- .../exports/Remove-AzServiceBusNamespace.ps1 | 3 +- ...-AzServiceBusPrivateEndpointConnection.ps1 | 3 +- .../exports/Remove-AzServiceBusQueue.ps1 | 3 +- .../exports/Remove-AzServiceBusRule.ps1 | 3 +- .../Remove-AzServiceBusSubscription.ps1 | 3 +- .../exports/Remove-AzServiceBusTopic.ps1 | 3 +- .../Set-AzServiceBusAuthorizationRule.ps1 | 3 +- ...zServiceBusGeoDRConfigurationBreakPair.ps1 | 3 +- ...AzServiceBusGeoDRConfigurationFailOver.ps1 | 3 +- .../exports/Set-AzServiceBusNamespace.ps1 | 3 +- .../Set-AzServiceBusNetworkRuleSet.ps1 | 3 +- .../exports/Set-AzServiceBusQueue.ps1 | 3 +- .../exports/Set-AzServiceBusRule.ps1 | 3 +- .../exports/Set-AzServiceBusSubscription.ps1 | 3 +- .../exports/Set-AzServiceBusTopic.ps1 | 3 +- .../exports/Start-AzServiceBusMigration.ps1 | 7 +- .../exports/Stop-AzServiceBusMigration.ps1 | 3 +- .../exports/Test-AzServiceBusName.ps1 | 3 +- .../api/Models/ArmDisasterRecovery.cs | 44 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../api/Models/MigrationConfigProperties.cs | 44 +- .../generated/api/Models/NetworkRuleSet.cs | 38 +- .../generated/api/Models/Operation.cs | 8 +- .../api/Models/PrivateEndpointConnection.cs | 42 +- .../api/Models/ResourceNamespacePatch.cs | 6 +- .../generated/api/Models/Rule.cs | 44 +- .../api/Models/SbAuthorizationRule.cs | 38 +- .../generated/api/Models/SbNamespace.cs | 56 ++- .../api/Models/SbNamespaceUpdateParameters.cs | 24 +- .../generated/api/Models/SbQueue.cs | 60 ++- .../generated/api/Models/SbQueueProperties.cs | 10 +- .../generated/api/Models/SbSubscription.cs | 60 ++- .../api/Models/SbSubscriptionProperties.cs | 10 +- .../generated/api/Models/SbTopic.cs | 60 ++- .../generated/api/Models/SbTopicProperties.cs | 10 +- .../generated/api/Models/TrackedResource.cs | 8 +- .../CompleteAzServiceBusMigration_Complete.cs | 2 +- ...ServiceBusMigration_CompleteViaIdentity.cs | 2 +- ...reakDisasterRecoveryConfigPairing_Break.cs | 2 +- ...rRecoveryConfigPairing_BreakViaIdentity.cs | 2 +- ...ConfigPairing_BreakViaIdentityNamespace.cs | 2 +- ...eBusFailDisasterRecoveryConfigOver_Fail.cs | 2 +- ...DisasterRecoveryConfigOver_FailExpanded.cs | 2 +- ...asterRecoveryConfigOver_FailViaIdentity.cs | 2 +- ...overyConfigOver_FailViaIdentityExpanded.cs | 2 +- ...veryConfigOver_FailViaIdentityNamespace.cs | 2 +- ...igOver_FailViaIdentityNamespaceExpanded.cs | 2 +- ...rRecoveryConfigOver_FailViaJsonFilePath.cs | 2 +- ...terRecoveryConfigOver_FailViaJsonString.cs | 2 +- ...iceBusGeoDRConfiguration_CreateExpanded.cs | 2 +- ...BusGeoDRConfiguration_CreateViaIdentity.cs | 2 +- ...onfiguration_CreateViaIdentityNamespace.cs | 2 +- ...tion_CreateViaIdentityNamespaceExpanded.cs | 2 +- ...NewAzServiceBusNamespace_CreateExpanded.cs | 33 +- ...AzServiceBusNamespace_CreateViaIdentity.cs | 33 +- ...veAzServiceBusGeoDRConfiguration_Delete.cs | 4 +- ...BusGeoDRConfiguration_DeleteViaIdentity.cs | 4 +- ...onfiguration_DeleteViaIdentityNamespace.cs | 4 +- .../RemoveAzServiceBusMigration_Delete.cs | 4 +- ...AzServiceBusMigration_DeleteViaIdentity.cs | 4 +- ...iceBusNamespaceAuthorizationRule_Delete.cs | 4 +- ...paceAuthorizationRule_DeleteViaIdentity.cs | 4 +- ...rizationRule_DeleteViaIdentityNamespace.cs | 4 +- .../RemoveAzServiceBusNamespace_Delete.cs | 18 +- ...AzServiceBusNamespace_DeleteViaIdentity.cs | 18 +- ...viceBusPrivateEndpointConnection_Delete.cs | 18 +- ...ateEndpointConnection_DeleteViaIdentity.cs | 18 +- ...ntConnection_DeleteViaIdentityNamespace.cs | 18 +- ...ServiceBusQueueAuthorizationRule_Delete.cs | 4 +- ...ueueAuthorizationRule_DeleteViaIdentity.cs | 4 +- ...rizationRule_DeleteViaIdentityNamespace.cs | 4 +- ...uthorizationRule_DeleteViaIdentityQueue.cs | 4 +- .../cmdlets/RemoveAzServiceBusQueue_Delete.cs | 4 +- ...moveAzServiceBusQueue_DeleteViaIdentity.cs | 4 +- ...viceBusQueue_DeleteViaIdentityNamespace.cs | 4 +- .../cmdlets/RemoveAzServiceBusRule_Delete.cs | 4 +- ...emoveAzServiceBusRule_DeleteViaIdentity.cs | 4 +- ...rviceBusRule_DeleteViaIdentityNamespace.cs | 4 +- ...ceBusRule_DeleteViaIdentitySubscription.cs | 4 +- ...AzServiceBusRule_DeleteViaIdentityTopic.cs | 4 +- .../RemoveAzServiceBusSubscription_Delete.cs | 4 +- ...erviceBusSubscription_DeleteViaIdentity.cs | 4 +- ...Subscription_DeleteViaIdentityNamespace.cs | 4 +- ...eBusSubscription_DeleteViaIdentityTopic.cs | 4 +- ...ServiceBusTopicAuthorizationRule_Delete.cs | 4 +- ...opicAuthorizationRule_DeleteViaIdentity.cs | 4 +- ...rizationRule_DeleteViaIdentityNamespace.cs | 4 +- ...uthorizationRule_DeleteViaIdentityTopic.cs | 4 +- .../cmdlets/RemoveAzServiceBusTopic_Delete.cs | 4 +- ...moveAzServiceBusTopic_DeleteViaIdentity.cs | 4 +- ...viceBusTopic_DeleteViaIdentityNamespace.cs | 4 +- ...artAzServiceBusMigration_CreateExpanded.cs | 33 +- ...AzServiceBusMigration_CreateViaIdentity.cs | 33 +- .../StopAzServiceBusMigration_Revert.cs | 2 +- ...AzServiceBusMigration_RevertViaIdentity.cs | 2 +- .../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-AzServiceBusGeoDRConfiguration.ps1 | 4 +- .../internal/New-AzServiceBusNamespace.ps1 | 6 +- ...AzServiceBusNamespaceAuthorizationRule.ps1 | 4 +- .../New-AzServiceBusNetworkRuleSet.ps1 | 4 +- ...-AzServiceBusPrivateEndpointConnection.ps1 | 4 +- .../internal/New-AzServiceBusQueue.ps1 | 4 +- ...New-AzServiceBusQueueAuthorizationRule.ps1 | 4 +- .../internal/New-AzServiceBusRule.ps1 | 4 +- .../internal/New-AzServiceBusSubscription.ps1 | 4 +- .../internal/New-AzServiceBusTopic.ps1 | 4 +- ...New-AzServiceBusTopicAuthorizationRule.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 50 +- .../internal/Start-AzServiceBusMigration.ps1 | 4 +- ...viceLinkerConfigurationForContainerApp.ps1 | 7 +- ...rviceLinkerConfigurationForSpringCloud.ps1 | 7 +- ...-AzServiceLinkerConfigurationForWebApp.ps1 | 7 +- .../Get-AzServiceLinkerConfigurationName.ps1 | 3 +- .../Get-AzServiceLinkerForContainerApp.ps1 | 3 +- .../Get-AzServiceLinkerForSpringCloud.ps1 | 3 +- .../exports/Get-AzServiceLinkerForWebApp.ps1 | 3 +- .../New-AzServiceLinkerForContainerApp.ps1 | 3 +- .../New-AzServiceLinkerForSpringCloud.ps1 | 3 +- .../exports/New-AzServiceLinkerForWebApp.ps1 | 3 +- ...ew-AzServiceLinkerSecretAuthInfoObject.ps1 | 2 +- .../exports/ProxyCmdletDefinitions.ps1 | 71 +-- .../Remove-AzServiceLinkerForContainerApp.ps1 | 3 +- .../Remove-AzServiceLinkerForSpringcloud.ps1 | 3 +- .../Remove-AzServiceLinkerForWebApp.ps1 | 3 +- .../Test-AzServiceLinkerForContainerApp.ps1 | 3 +- .../Test-AzServiceLinkerForSpringCloud.ps1 | 3 +- .../exports/Test-AzServiceLinkerForWebApp.ps1 | 3 +- .../Update-AzServiceLinkerForContainerApp.ps1 | 3 +- .../Update-AzServiceLinkerForSpringCloud.ps1 | 3 +- .../Update-AzServiceLinkerForWebApp.ps1 | 3 +- ...NewAzServiceLinkerDryrun_CreateExpanded.cs | 33 +- ...eLinkerDryrun_CreateViaIdentityExpanded.cs | 33 +- .../NewAzServiceLinker_CreateExpanded.cs | 33 +- ...ServiceLinker_CreateViaIdentityExpanded.cs | 33 +- .../RemoveAzServiceLinkerDryrun_Delete.cs | 4 +- ...AzServiceLinkerDryrun_DeleteViaIdentity.cs | 4 +- .../cmdlets/RemoveAzServiceLinker_Delete.cs | 18 +- ...RemoveAzServiceLinker_DeleteViaIdentity.cs | 18 +- .../cmdlets/TestAzServiceLinker_Validate.cs | 33 +- ...TestAzServiceLinker_ValidateViaIdentity.cs | 33 +- ...ateAzServiceLinkerDryrun_UpdateExpanded.cs | 33 +- ...eLinkerDryrun_UpdateViaIdentityExpanded.cs | 33 +- .../UpdateAzServiceLinker_UpdateExpanded.cs | 33 +- ...ServiceLinker_UpdateViaIdentityExpanded.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 +- .../Get-AzServiceLinkerConfiguration.ps1 | 4 +- .../internal/Get-AzServiceLinkerDryrun.ps1 | 4 +- .../internal/New-AzServiceLinker.ps1 | 4 +- .../internal/New-AzServiceLinkerDryrun.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 24 +- .../internal/Remove-AzServiceLinkerDryrun.ps1 | 4 +- .../internal/Update-AzServiceLinkerDryrun.ps1 | 4 +- .../Site/Site.Autorest/exports/Get-AzSite.ps1 | 3 +- .../Site/Site.Autorest/exports/New-AzSite.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 12 +- .../Site.Autorest/exports/Remove-AzSite.ps1 | 3 +- .../Site.Autorest/exports/Update-AzSite.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../Properties/AssemblyInfo.cs | 28 -- .../exports/Get-AzSphereCatalog.ps1 | 13 +- .../exports/Get-AzSphereCatalogDevice.ps1 | 13 +- .../Get-AzSphereCatalogDeviceGroup.ps1 | 13 +- .../Get-AzSphereCatalogDeviceInsight.ps1 | 13 +- .../exports/Get-AzSphereCertificate.ps1 | 13 +- .../Get-AzSphereCertificateCertChain.ps1 | 13 +- .../exports/Get-AzSphereCertificateProof.ps1 | 13 +- .../exports/Get-AzSphereDeployment.ps1 | 13 +- .../exports/Get-AzSphereDevice.ps1 | 13 +- .../exports/Get-AzSphereDeviceGroup.ps1 | 13 +- .../exports/Get-AzSphereImage.ps1 | 13 +- .../exports/Get-AzSphereProduct.ps1 | 13 +- .../Invoke-AzSphereCountCatalogDevice.ps1 | 13 +- .../Invoke-AzSphereCountDeviceGroupDevice.ps1 | 13 +- .../Invoke-AzSphereCountProductDevice.ps1 | 13 +- .../exports/New-AzSphereCatalog.ps1 | 13 +- .../exports/New-AzSphereDeployment.ps1 | 13 +- .../exports/New-AzSphereDevice.ps1 | 13 +- .../New-AzSphereDeviceCapabilityImage.ps1 | 13 +- .../exports/New-AzSphereDeviceGroup.ps1 | 13 +- .../exports/New-AzSphereImage.ps1 | 13 +- .../exports/New-AzSphereProduct.ps1 | 13 +- .../New-AzSphereProductDefaultDeviceGroup.ps1 | 13 +- .../exports/ProxyCmdletDefinitions.ps1 | 390 ++++++++++++--- .../exports/Remove-AzSphereCatalog.ps1 | 13 +- .../exports/Remove-AzSphereDeviceGroup.ps1 | 13 +- .../exports/Remove-AzSphereProduct.ps1 | 13 +- .../exports/Update-AzSphereCatalog.ps1 | 13 +- .../exports/Update-AzSphereDevice.ps1 | 13 +- .../exports/Update-AzSphereDeviceGroup.ps1 | 13 +- .../exports/Update-AzSphereProduct.ps1 | 13 +- .../generated/api/Models/Catalog.cs | 46 +- .../generated/api/Models/Certificate.cs | 54 ++- .../generated/api/Models/Deployment.cs | 44 +- .../generated/api/Models/Device.cs | 52 +- .../generated/api/Models/DeviceGroup.cs | 44 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Image.cs | 52 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/Product.cs | 42 +- .../Models/ProofOfPossessionNonceResponse.cs | 14 +- .../generated/api/Models/ProxyResource.cs | 40 +- .../generated/api/Models/Resource.cs | 30 +- .../generated/api/Models/TrackedResource.cs | 42 +- .../Sphere.Autorest/generated/api/Sphere.cs | 286 +++++------ .../NewAzSphereCatalog_CreateExpanded.cs | 37 +- ...ewAzSphereCatalog_CreateViaJsonFilePath.cs | 37 +- .../NewAzSphereCatalog_CreateViaJsonString.cs | 37 +- .../NewAzSphereDeployment_CreateExpanded.cs | 37 +- ...zSphereDeployment_CreateViaJsonFilePath.cs | 37 +- ...wAzSphereDeployment_CreateViaJsonString.cs | 37 +- ...eDeviceCapabilityImage_GenerateExpanded.cs | 33 +- ...mage_GenerateViaIdentityCatalogExpanded.cs | 33 +- ..._GenerateViaIdentityDeviceGroupExpanded.cs | 33 +- ...mage_GenerateViaIdentityProductExpanded.cs | 33 +- ...CapabilityImage_GenerateViaJsonFilePath.cs | 33 +- ...ceCapabilityImage_GenerateViaJsonString.cs | 33 +- .../NewAzSphereDeviceGroup_CreateExpanded.cs | 37 +- ...SphereDeviceGroup_CreateViaJsonFilePath.cs | 37 +- ...AzSphereDeviceGroup_CreateViaJsonString.cs | 37 +- .../NewAzSphereDevice_CreateExpanded.cs | 37 +- ...NewAzSphereDevice_CreateViaJsonFilePath.cs | 37 +- .../NewAzSphereDevice_CreateViaJsonString.cs | 37 +- .../NewAzSphereImage_CreateExpanded.cs | 37 +- .../NewAzSphereImage_CreateViaJsonFilePath.cs | 37 +- .../NewAzSphereImage_CreateViaJsonString.cs | 37 +- .../NewAzSphereProduct_CreateExpanded.cs | 37 +- ...ewAzSphereProduct_CreateViaJsonFilePath.cs | 37 +- .../NewAzSphereProduct_CreateViaJsonString.cs | 37 +- .../cmdlets/RemoveAzSphereCatalog_Delete.cs | 18 +- ...RemoveAzSphereCatalog_DeleteViaIdentity.cs | 18 +- .../RemoveAzSphereDeviceGroup_Delete.cs | 18 +- ...veAzSphereDeviceGroup_DeleteViaIdentity.cs | 18 +- ...ereDeviceGroup_DeleteViaIdentityCatalog.cs | 18 +- ...ereDeviceGroup_DeleteViaIdentityProduct.cs | 18 +- .../cmdlets/RemoveAzSphereProduct_Delete.cs | 18 +- ...RemoveAzSphereProduct_DeleteViaIdentity.cs | 18 +- ...zSphereProduct_DeleteViaIdentityCatalog.cs | 18 +- .../SetAzSphereCatalog_UpdateExpanded.cs | 37 +- ...etAzSphereCatalog_UpdateViaJsonFilePath.cs | 37 +- .../SetAzSphereCatalog_UpdateViaJsonString.cs | 37 +- .../SetAzSphereDeployment_UpdateExpanded.cs | 37 +- ...zSphereDeployment_UpdateViaJsonFilePath.cs | 37 +- ...tAzSphereDeployment_UpdateViaJsonString.cs | 37 +- .../SetAzSphereDeviceGroup_UpdateExpanded.cs | 37 +- ...SphereDeviceGroup_UpdateViaJsonFilePath.cs | 37 +- ...AzSphereDeviceGroup_UpdateViaJsonString.cs | 37 +- .../SetAzSphereDevice_UpdateExpanded.cs | 37 +- ...SetAzSphereDevice_UpdateViaJsonFilePath.cs | 37 +- .../SetAzSphereDevice_UpdateViaJsonString.cs | 37 +- .../SetAzSphereImage_UpdateExpanded.cs | 37 +- .../SetAzSphereImage_UpdateViaJsonFilePath.cs | 37 +- .../SetAzSphereImage_UpdateViaJsonString.cs | 37 +- .../SetAzSphereProduct_UpdateExpanded.cs | 37 +- ...etAzSphereProduct_UpdateViaJsonFilePath.cs | 37 +- .../SetAzSphereProduct_UpdateViaJsonString.cs | 37 +- .../UpdateAzSphereCatalog_UpdateExpanded.cs | 4 +- ...SphereCatalog_UpdateViaIdentityExpanded.cs | 4 +- ...teAzSphereCatalog_UpdateViaJsonFilePath.cs | 4 +- ...dateAzSphereCatalog_UpdateViaJsonString.cs | 4 +- ...pdateAzSphereDeviceGroup_UpdateExpanded.cs | 37 +- ...eGroup_UpdateViaIdentityCatalogExpanded.cs | 37 +- ...reDeviceGroup_UpdateViaIdentityExpanded.cs | 37 +- ...eGroup_UpdateViaIdentityProductExpanded.cs | 37 +- ...SphereDeviceGroup_UpdateViaJsonFilePath.cs | 37 +- ...AzSphereDeviceGroup_UpdateViaJsonString.cs | 37 +- .../UpdateAzSphereDevice_UpdateExpanded.cs | 37 +- ...Device_UpdateViaIdentityCatalogExpanded.cs | 37 +- ...ce_UpdateViaIdentityDeviceGroupExpanded.cs | 37 +- ...zSphereDevice_UpdateViaIdentityExpanded.cs | 37 +- ...Device_UpdateViaIdentityProductExpanded.cs | 37 +- ...ateAzSphereDevice_UpdateViaJsonFilePath.cs | 37 +- ...pdateAzSphereDevice_UpdateViaJsonString.cs | 37 +- .../UpdateAzSphereProduct_UpdateExpanded.cs | 37 +- ...roduct_UpdateViaIdentityCatalogExpanded.cs | 37 +- ...SphereProduct_UpdateViaIdentityExpanded.cs | 37 +- ...teAzSphereProduct_UpdateViaJsonFilePath.cs | 37 +- ...dateAzSphereProduct_UpdateViaJsonString.cs | 37 +- .../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 +- .../internal/Get-AzSphereOperation.ps1 | 6 + .../internal/ProxyCmdletDefinitions.ps1 | 54 ++- .../internal/Set-AzSphereCatalog.ps1 | 8 +- .../internal/Set-AzSphereDeployment.ps1 | 8 +- .../internal/Set-AzSphereDevice.ps1 | 8 +- .../internal/Set-AzSphereDeviceGroup.ps1 | 8 +- .../internal/Set-AzSphereImage.ps1 | 8 +- .../internal/Set-AzSphereProduct.ps1 | 8 +- .../Sphere.Autorest}/resources/README.md | 0 .../exports/Deploy-AzSpringCloudApp.ps1 | 5 +- .../Disable-AzSpringCloudTestEndpoint.ps1 | 3 +- .../Enable-AzSpringCloudTestEndpoint.ps1 | 3 +- .../exports/Get-AzSpringCloud.ps1 | 3 +- .../exports/Get-AzSpringCloudApp.ps1 | 3 +- .../exports/Get-AzSpringCloudAppBinding.ps1 | 3 +- .../Get-AzSpringCloudAppCustomDomain.ps1 | 3 +- .../Get-AzSpringCloudAppDeployment.ps1 | 3 +- ...t-AzSpringCloudAppDeploymentLogFileUrl.ps1 | 3 +- .../exports/Get-AzSpringCloudBuildService.ps1 | 3 +- ...Get-AzSpringCloudBuildServiceAgentPool.ps1 | 3 +- .../Get-AzSpringCloudBuildServiceBuilder.ps1 | 3 +- ...ingCloudBuildServiceSupportedBuildpack.ps1 | 3 +- ...zSpringCloudBuildServiceSupportedStack.ps1 | 3 +- .../Get-AzSpringCloudBuildpackBinding.ps1 | 3 +- .../exports/Get-AzSpringCloudCertificate.ps1 | 3 +- .../exports/Get-AzSpringCloudConfigServer.ps1 | 3 +- .../Get-AzSpringCloudConfigurationService.ps1 | 3 +- .../Get-AzSpringCloudMonitoringSetting.ps1 | 3 +- .../exports/Get-AzSpringCloudRegistry.ps1 | 3 +- .../Get-AzSpringCloudRuntimeVersion.ps1 | 3 +- .../exports/Get-AzSpringCloudSku.ps1 | 3 +- .../exports/Get-AzSpringCloudTestKey.ps1 | 3 +- .../exports/New-AzSpringCloud.ps1 | 7 +- .../exports/New-AzSpringCloudApp.ps1 | 7 +- .../exports/New-AzSpringCloudAppBinding.ps1 | 7 +- .../New-AzSpringCloudAppCustomDomain.ps1 | 7 +- .../New-AzSpringCloudAppDeployment.ps1 | 7 +- ...New-AzSpringCloudBuildServiceAgentPool.ps1 | 7 +- .../New-AzSpringCloudBuildServiceBuilder.ps1 | 7 +- .../New-AzSpringCloudBuildpackBinding.ps1 | 7 +- .../exports/New-AzSpringCloudCertificate.ps1 | 7 +- .../New-AzSpringCloudConfigurationService.ps1 | 7 +- .../exports/New-AzSpringCloudRegistry.ps1 | 7 +- .../exports/New-AzSpringCloudTestKey.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 273 ++++------- .../exports/Remove-AzSpringCloud.ps1 | 3 +- .../exports/Remove-AzSpringCloudApp.ps1 | 3 +- .../Remove-AzSpringCloudAppBinding.ps1 | 3 +- .../Remove-AzSpringCloudAppCustomDomain.ps1 | 3 +- .../Remove-AzSpringCloudAppDeployment.ps1 | 3 +- ...emove-AzSpringCloudBuildServiceBuilder.ps1 | 3 +- .../Remove-AzSpringCloudBuildpackBinding.ps1 | 3 +- .../Remove-AzSpringCloudCertificate.ps1 | 3 +- ...move-AzSpringCloudConfigurationService.ps1 | 3 +- .../Restart-AzSpringCloudAppDeployment.ps1 | 3 +- .../Start-AzSpringCloudAppDeployment.ps1 | 3 +- .../Start-AzSpringCloudAppDeploymentJfr.ps1 | 3 +- .../Stop-AzSpringCloudAppDeployment.ps1 | 3 +- .../Test-AzSpringCloudAppCustomDomain.ps1 | 3 +- .../Test-AzSpringCloudConfigServer.ps1 | 3 +- ...Test-AzSpringCloudConfigurationService.ps1 | 3 +- .../Test-AzSpringCloudNameAvailability.ps1 | 3 +- .../exports/Update-AzSpringCloud.ps1 | 3 +- .../exports/Update-AzSpringCloudApp.ps1 | 3 +- ...pdate-AzSpringCloudAppActiveDeployment.ps1 | 3 +- .../Update-AzSpringCloudAppBinding.ps1 | 3 +- .../Update-AzSpringCloudAppCustomDomain.ps1 | 7 +- .../Update-AzSpringCloudAppDeployment.ps1 | 3 +- ...ate-AzSpringCloudBuildServiceAgentPool.ps1 | 7 +- ...pdate-AzSpringCloudBuildServiceBuilder.ps1 | 7 +- .../Update-AzSpringCloudBuildpackBinding.ps1 | 7 +- .../Update-AzSpringCloudCertificate.ps1 | 7 +- .../Update-AzSpringCloudConfigServer.ps1 | 7 +- ...date-AzSpringCloudConfigurationService.ps1 | 7 +- .../Update-AzSpringCloudMonitoringSetting.ps1 | 7 +- ...isableAzSpringCloudTestEndpoint_Disable.cs | 4 +- ...ingCloudTestEndpoint_DisableViaIdentity.cs | 4 +- .../EnableAzSpringCloudTestEndpoint_Enable.cs | 2 +- ...ringCloudTestEndpoint_EnableViaIdentity.cs | 2 +- .../cmdlets/GetAzSpringCloudAppBinding_Get.cs | 2 +- ...tAzSpringCloudAppBinding_GetViaIdentity.cs | 2 +- ...SpringCloudAppBinding_GetViaIdentityApp.cs | 2 +- ...ingCloudAppBinding_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudAppBinding_List.cs | 2 +- .../GetAzSpringCloudAppCustomDomain_Get.cs | 2 +- ...ringCloudAppCustomDomain_GetViaIdentity.cs | 2 +- ...gCloudAppCustomDomain_GetViaIdentityApp.cs | 2 +- ...oudAppCustomDomain_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudAppCustomDomain_List.cs | 2 +- ...zSpringCloudAppDeploymentLogFileUrl_Get.cs | 4 +- ...dAppDeploymentLogFileUrl_GetViaIdentity.cs | 4 +- ...pDeploymentLogFileUrl_GetViaIdentityApp.cs | 4 +- ...ploymentLogFileUrl_GetViaIdentitySpring.cs | 4 +- .../GetAzSpringCloudAppDeployment_Get.cs | 2 +- ...SpringCloudAppDeployment_GetViaIdentity.cs | 2 +- ...ingCloudAppDeployment_GetViaIdentityApp.cs | 2 +- ...CloudAppDeployment_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudAppDeployment_List.cs | 2 +- .../GetAzSpringCloudAppDeployment_List1.cs | 2 +- ...etAzSpringCloudAppResourceUploadUrl_Get.cs | 2 +- ...loudAppResourceUploadUrl_GetViaIdentity.cs | 2 +- ...pResourceUploadUrl_GetViaIdentitySpring.cs | 2 +- .../cmdlets/GetAzSpringCloudApp_Get.cs | 2 +- .../GetAzSpringCloudApp_GetViaIdentity.cs | 2 +- ...etAzSpringCloudApp_GetViaIdentitySpring.cs | 2 +- .../cmdlets/GetAzSpringCloudApp_List.cs | 2 +- ...tAzSpringCloudBuildServiceAgentPool_Get.cs | 2 +- ...oudBuildServiceAgentPool_GetViaIdentity.cs | 2 +- ...ringCloudBuildServiceBuildResultLog_Get.cs | 2 +- ...ildServiceBuildResultLog_GetViaIdentity.cs | 2 +- ...rviceBuildResultLog_GetViaIdentityBuild.cs | 2 +- ...ildResultLog_GetViaIdentityBuildService.cs | 2 +- ...viceBuildResultLog_GetViaIdentitySpring.cs | 2 +- ...zSpringCloudBuildServiceBuildResult_Get.cs | 2 +- ...dBuildServiceBuildResult_GetViaIdentity.cs | 2 +- ...dServiceBuildResult_GetViaIdentityBuild.cs | 2 +- ...eBuildResult_GetViaIdentityBuildService.cs | 2 +- ...ServiceBuildResult_GetViaIdentitySpring.cs | 2 +- ...SpringCloudBuildServiceBuildResult_List.cs | 2 +- .../GetAzSpringCloudBuildServiceBuild_Get.cs | 2 +- ...ngCloudBuildServiceBuild_GetViaIdentity.cs | 2 +- ...ServiceBuild_GetViaIdentityBuildService.cs | 2 +- ...dBuildServiceBuild_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudBuildServiceBuild_List.cs | 2 +- ...GetAzSpringCloudBuildServiceBuilder_Get.cs | 2 +- ...CloudBuildServiceBuilder_GetViaIdentity.cs | 2 +- ...uildServiceBuilder_GetViaIdentitySpring.cs | 2 +- ...etAzSpringCloudBuildServiceBuilder_List.cs | 2 +- ...gCloudBuildServiceResourceUploadUrl_Get.cs | 2 +- ...ServiceResourceUploadUrl_GetViaIdentity.cs | 2 +- ...eResourceUploadUrl_GetViaIdentitySpring.cs | 2 +- ...CloudBuildServiceSupportedBuildpack_Get.cs | 2 +- ...erviceSupportedBuildpack_GetViaIdentity.cs | 2 +- ...SupportedBuildpack_GetViaIdentitySpring.cs | 2 +- ...loudBuildServiceSupportedBuildpack_List.cs | 2 +- ...ringCloudBuildServiceSupportedStack_Get.cs | 2 +- ...ildServiceSupportedStack_GetViaIdentity.cs | 2 +- ...viceSupportedStack_GetViaIdentitySpring.cs | 2 +- ...ingCloudBuildServiceSupportedStack_List.cs | 2 +- .../GetAzSpringCloudBuildService_Get.cs | 2 +- ...zSpringCloudBuildService_GetViaIdentity.cs | 2 +- ...gCloudBuildService_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudBuildpackBinding_Get.cs | 2 +- ...ingCloudBuildpackBinding_GetViaIdentity.cs | 2 +- ...dBuildpackBinding_GetViaIdentityBuilder.cs | 2 +- ...udBuildpackBinding_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudBuildpackBinding_List.cs | 2 +- .../GetAzSpringCloudCertificate_Get.cs | 2 +- ...AzSpringCloudCertificate_GetViaIdentity.cs | 2 +- ...ngCloudCertificate_GetViaIdentitySpring.cs | 2 +- .../GetAzSpringCloudCertificate_List.cs | 2 +- .../GetAzSpringCloudConfigServer_Get.cs | 2 +- ...zSpringCloudConfigServer_GetViaIdentity.cs | 2 +- ...etAzSpringCloudConfigurationService_Get.cs | 2 +- ...loudConfigurationService_GetViaIdentity.cs | 2 +- .../GetAzSpringCloudMonitoringSetting_Get.cs | 2 +- ...ngCloudMonitoringSetting_GetViaIdentity.cs | 2 +- .../cmdlets/GetAzSpringCloudOperation_List.cs | 2 +- .../cmdlets/GetAzSpringCloudRegistry_Get.cs | 2 +- ...GetAzSpringCloudRegistry_GetViaIdentity.cs | 2 +- .../GetAzSpringCloudRuntimeVersion_List.cs | 2 +- .../cmdlets/GetAzSpringCloudSku_List.cs | 2 +- .../cmdlets/GetAzSpringCloudTestKey_List.cs | 2 +- .../generated/cmdlets/GetAzSpringCloud_Get.cs | 2 +- .../GetAzSpringCloud_GetViaIdentity.cs | 2 +- .../cmdlets/GetAzSpringCloud_List.cs | 2 +- .../cmdlets/GetAzSpringCloud_List1.cs | 2 +- ...wAzSpringCloudAppBinding_CreateExpanded.cs | 35 +- ...AppBinding_CreateViaIdentityAppExpanded.cs | 35 +- ...Binding_CreateViaIdentitySpringExpanded.cs | 35 +- ...ngCloudAppBinding_CreateViaJsonFilePath.cs | 35 +- ...ringCloudAppBinding_CreateViaJsonString.cs | 35 +- ...ringCloudAppCustomDomain_CreateExpanded.cs | 35 +- ...stomDomain_CreateViaIdentityAppExpanded.cs | 35 +- ...mDomain_CreateViaIdentitySpringExpanded.cs | 35 +- ...udAppCustomDomain_CreateViaJsonFilePath.cs | 35 +- ...loudAppCustomDomain_CreateViaJsonString.cs | 35 +- ...SpringCloudAppDeployment_CreateExpanded.cs | 35 +- ...Deployment_CreateViaIdentityAppExpanded.cs | 35 +- ...loyment_CreateViaIdentitySpringExpanded.cs | 35 +- ...loudAppDeployment_CreateViaJsonFilePath.cs | 35 +- ...gCloudAppDeployment_CreateViaJsonString.cs | 35 +- .../NewAzSpringCloudApp_CreateExpanded.cs | 35 +- ...loudApp_CreateViaIdentitySpringExpanded.cs | 35 +- ...wAzSpringCloudApp_CreateViaJsonFilePath.cs | 35 +- ...NewAzSpringCloudApp_CreateViaJsonString.cs | 35 +- ...oudBuildServiceAgentPool_UpdateExpanded.cs | 35 +- ...l_UpdateViaIdentityBuildServiceExpanded.cs | 35 +- ...viceAgentPool_UpdateViaIdentityExpanded.cs | 35 +- ...entPool_UpdateViaIdentitySpringExpanded.cs | 35 +- ...dServiceAgentPool_UpdateViaJsonFilePath.cs | 35 +- ...ildServiceAgentPool_UpdateViaJsonString.cs | 35 +- ...ngCloudBuildServiceBuild_CreateExpanded.cs | 2 +- ...d_CreateViaIdentityBuildServiceExpanded.cs | 2 +- ...ceBuild_CreateViaIdentitySpringExpanded.cs | 2 +- ...BuildServiceBuild_CreateViaJsonFilePath.cs | 2 +- ...udBuildServiceBuild_CreateViaJsonString.cs | 2 +- ...CloudBuildServiceBuilder_CreateExpanded.cs | 35 +- ...r_CreateViaIdentityBuildServiceExpanded.cs | 35 +- ...Builder_CreateViaIdentitySpringExpanded.cs | 35 +- ...ildServiceBuilder_CreateViaJsonFilePath.cs | 35 +- ...BuildServiceBuilder_CreateViaJsonString.cs | 35 +- ...ingCloudBuildpackBinding_CreateExpanded.cs | 35 +- ...g_CreateViaIdentityBuildServiceExpanded.cs | 35 +- ...inding_CreateViaIdentityBuilderExpanded.cs | 35 +- ...Binding_CreateViaIdentitySpringExpanded.cs | 35 +- ...dBuildpackBinding_CreateViaJsonFilePath.cs | 35 +- ...oudBuildpackBinding_CreateViaJsonString.cs | 35 +- ...AzSpringCloudCertificate_CreateExpanded.cs | 35 +- ...ificate_CreateViaIdentitySpringExpanded.cs | 35 +- ...gCloudCertificate_CreateViaJsonFilePath.cs | 35 +- ...ingCloudCertificate_CreateViaJsonString.cs | 35 +- ...loudConfigurationService_CreateExpanded.cs | 35 +- ...Service_CreateViaIdentitySpringExpanded.cs | 35 +- ...figurationService_CreateViaJsonFilePath.cs | 35 +- ...onfigurationService_CreateViaJsonString.cs | 35 +- .../NewAzSpringCloudRegistry_Create.cs | 35 +- ...AzSpringCloudRegistry_CreateViaIdentity.cs | 35 +- ...ngCloudRegistry_CreateViaIdentitySpring.cs | 35 +- ...AzSpringCloudTestKey_RegenerateExpanded.cs | 2 +- ...udTestKey_RegenerateViaIdentityExpanded.cs | 2 +- ...gCloudTestKey_RegenerateViaJsonFilePath.cs | 2 +- ...ingCloudTestKey_RegenerateViaJsonString.cs | 2 +- .../NewAzSpringCloud_CreateExpanded.cs | 35 +- .../NewAzSpringCloud_CreateViaJsonFilePath.cs | 35 +- .../NewAzSpringCloud_CreateViaJsonString.cs | 35 +- .../RemoveAzSpringCloudAppBinding_Delete.cs | 20 +- ...SpringCloudAppBinding_DeleteViaIdentity.cs | 20 +- ...ingCloudAppBinding_DeleteViaIdentityApp.cs | 20 +- ...CloudAppBinding_DeleteViaIdentitySpring.cs | 20 +- ...moveAzSpringCloudAppCustomDomain_Delete.cs | 20 +- ...gCloudAppCustomDomain_DeleteViaIdentity.cs | 20 +- ...oudAppCustomDomain_DeleteViaIdentityApp.cs | 20 +- ...AppCustomDomain_DeleteViaIdentitySpring.cs | 20 +- ...RemoveAzSpringCloudAppDeployment_Delete.cs | 20 +- ...ingCloudAppDeployment_DeleteViaIdentity.cs | 20 +- ...CloudAppDeployment_DeleteViaIdentityApp.cs | 20 +- ...udAppDeployment_DeleteViaIdentitySpring.cs | 20 +- .../cmdlets/RemoveAzSpringCloudApp_Delete.cs | 20 +- ...emoveAzSpringCloudApp_DeleteViaIdentity.cs | 20 +- ...zSpringCloudApp_DeleteViaIdentitySpring.cs | 20 +- ...AzSpringCloudBuildServiceBuilder_Delete.cs | 20 +- ...udBuildServiceBuilder_DeleteViaIdentity.cs | 20 +- ...ceBuilder_DeleteViaIdentityBuildService.cs | 20 +- ...dServiceBuilder_DeleteViaIdentitySpring.cs | 20 +- ...oveAzSpringCloudBuildpackBinding_Delete.cs | 20 +- ...CloudBuildpackBinding_DeleteViaIdentity.cs | 20 +- ...ckBinding_DeleteViaIdentityBuildService.cs | 20 +- ...ildpackBinding_DeleteViaIdentityBuilder.cs | 20 +- ...uildpackBinding_DeleteViaIdentitySpring.cs | 20 +- .../RemoveAzSpringCloudCertificate_Delete.cs | 20 +- ...pringCloudCertificate_DeleteViaIdentity.cs | 20 +- ...loudCertificate_DeleteViaIdentitySpring.cs | 20 +- ...zSpringCloudConfigurationService_Delete.cs | 20 +- ...dConfigurationService_DeleteViaIdentity.cs | 20 +- ...gurationService_DeleteViaIdentitySpring.cs | 20 +- .../RemoveAzSpringCloudRegistry_Delete.cs | 20 +- ...AzSpringCloudRegistry_DeleteViaIdentity.cs | 20 +- ...ngCloudRegistry_DeleteViaIdentitySpring.cs | 20 +- .../cmdlets/RemoveAzSpringCloud_Delete.cs | 20 +- .../RemoveAzSpringCloud_DeleteViaIdentity.cs | 20 +- ...startAzSpringCloudAppDeployment_Restart.cs | 18 +- ...ngCloudAppDeployment_RestartViaIdentity.cs | 18 +- ...loudAppDeployment_RestartViaIdentityApp.cs | 18 +- ...dAppDeployment_RestartViaIdentitySpring.cs | 18 +- ...ringCloudAppDeploymentJfr_StartExpanded.cs | 18 +- ...gCloudAppDeploymentJfr_StartViaIdentity.cs | 18 +- ...oudAppDeploymentJfr_StartViaIdentityApp.cs | 18 +- ...ploymentJfr_StartViaIdentityAppExpanded.cs | 18 +- ...pDeploymentJfr_StartViaIdentityExpanded.cs | 18 +- ...AppDeploymentJfr_StartViaIdentitySpring.cs | 18 +- ...ymentJfr_StartViaIdentitySpringExpanded.cs | 18 +- ...udAppDeploymentJfr_StartViaJsonFilePath.cs | 18 +- ...loudAppDeploymentJfr_StartViaJsonString.cs | 18 +- .../StartAzSpringCloudAppDeployment_Start.cs | 18 +- ...ringCloudAppDeployment_StartViaIdentity.cs | 18 +- ...gCloudAppDeployment_StartViaIdentityApp.cs | 18 +- ...oudAppDeployment_StartViaIdentitySpring.cs | 18 +- .../StopAzSpringCloudAppDeployment_Stop.cs | 18 +- ...pringCloudAppDeployment_StopViaIdentity.cs | 18 +- ...ngCloudAppDeployment_StopViaIdentityApp.cs | 18 +- ...loudAppDeployment_StopViaIdentitySpring.cs | 18 +- ...ngCloudAppCustomDomain_ValidateExpanded.cs | 2 +- ...ustomDomain_ValidateViaIdentityExpanded.cs | 2 +- ...omain_ValidateViaIdentitySpringExpanded.cs | 2 +- ...AppCustomDomain_ValidateViaJsonFilePath.cs | 2 +- ...udAppCustomDomain_ValidateViaJsonString.cs | 2 +- ...pringCloudConfigServer_ValidateExpanded.cs | 35 +- ...onfigServer_ValidateViaIdentityExpanded.cs | 35 +- ...oudConfigServer_ValidateViaJsonFilePath.cs | 35 +- ...CloudConfigServer_ValidateViaJsonString.cs | 35 +- ...udConfigurationService_ValidateExpanded.cs | 35 +- ...tionService_ValidateViaIdentityExpanded.cs | 35 +- ...rvice_ValidateViaIdentitySpringExpanded.cs | 35 +- ...gurationService_ValidateViaJsonFilePath.cs | 35 +- ...figurationService_ValidateViaJsonString.cs | 35 +- ...ringCloudNameAvailability_CheckExpanded.cs | 2 +- ...ingCloudAppActiveDeployment_SetExpanded.cs | 35 +- ...ActiveDeployment_SetViaIdentityExpanded.cs | 35 +- ...Deployment_SetViaIdentitySpringExpanded.cs | 35 +- ...dAppActiveDeployment_SetViaJsonFilePath.cs | 35 +- ...oudAppActiveDeployment_SetViaJsonString.cs | 35 +- ...eAzSpringCloudAppBinding_UpdateExpanded.cs | 35 +- ...AppBinding_UpdateViaIdentityAppExpanded.cs | 35 +- ...oudAppBinding_UpdateViaIdentityExpanded.cs | 35 +- ...Binding_UpdateViaIdentitySpringExpanded.cs | 35 +- ...ngCloudAppBinding_UpdateViaJsonFilePath.cs | 35 +- ...ringCloudAppBinding_UpdateViaJsonString.cs | 35 +- ...ringCloudAppCustomDomain_UpdateExpanded.cs | 35 +- ...stomDomain_UpdateViaIdentityAppExpanded.cs | 35 +- ...pCustomDomain_UpdateViaIdentityExpanded.cs | 35 +- ...mDomain_UpdateViaIdentitySpringExpanded.cs | 35 +- ...udAppCustomDomain_UpdateViaJsonFilePath.cs | 35 +- ...loudAppCustomDomain_UpdateViaJsonString.cs | 35 +- ...SpringCloudAppDeployment_UpdateExpanded.cs | 35 +- ...Deployment_UpdateViaIdentityAppExpanded.cs | 35 +- ...AppDeployment_UpdateViaIdentityExpanded.cs | 35 +- ...loyment_UpdateViaIdentitySpringExpanded.cs | 35 +- ...loudAppDeployment_UpdateViaJsonFilePath.cs | 35 +- ...gCloudAppDeployment_UpdateViaJsonString.cs | 35 +- .../UpdateAzSpringCloudApp_UpdateExpanded.cs | 35 +- ...pringCloudApp_UpdateViaIdentityExpanded.cs | 35 +- ...loudApp_UpdateViaIdentitySpringExpanded.cs | 35 +- ...eAzSpringCloudApp_UpdateViaJsonFilePath.cs | 35 +- ...ateAzSpringCloudApp_UpdateViaJsonString.cs | 35 +- ...oudBuildServiceAgentPool_UpdateExpanded.cs | 35 +- ...l_UpdateViaIdentityBuildServiceExpanded.cs | 35 +- ...viceAgentPool_UpdateViaIdentityExpanded.cs | 35 +- ...entPool_UpdateViaIdentitySpringExpanded.cs | 35 +- ...ngCloudBuildServiceBuild_UpdateExpanded.cs | 2 +- ...d_UpdateViaIdentityBuildServiceExpanded.cs | 2 +- ...dServiceBuild_UpdateViaIdentityExpanded.cs | 2 +- ...ceBuild_UpdateViaIdentitySpringExpanded.cs | 2 +- ...CloudBuildServiceBuilder_UpdateExpanded.cs | 35 +- ...r_UpdateViaIdentityBuildServiceExpanded.cs | 35 +- ...erviceBuilder_UpdateViaIdentityExpanded.cs | 35 +- ...Builder_UpdateViaIdentitySpringExpanded.cs | 35 +- ...ingCloudBuildpackBinding_UpdateExpanded.cs | 35 +- ...g_UpdateViaIdentityBuildServiceExpanded.cs | 35 +- ...inding_UpdateViaIdentityBuilderExpanded.cs | 35 +- ...ldpackBinding_UpdateViaIdentityExpanded.cs | 35 +- ...Binding_UpdateViaIdentitySpringExpanded.cs | 35 +- ...AzSpringCloudCertificate_UpdateExpanded.cs | 35 +- ...udCertificate_UpdateViaIdentityExpanded.cs | 35 +- ...ificate_UpdateViaIdentitySpringExpanded.cs | 35 +- ...zSpringCloudConfigServer_UpdateExpanded.cs | 35 +- ...dConfigServer_UpdateViaIdentityExpanded.cs | 35 +- ...CloudConfigServer_UpdateViaJsonFilePath.cs | 35 +- ...ngCloudConfigServer_UpdateViaJsonString.cs | 35 +- ...loudConfigurationService_UpdateExpanded.cs | 35 +- ...rationService_UpdateViaIdentityExpanded.cs | 35 +- ...Service_UpdateViaIdentitySpringExpanded.cs | 35 +- ...ngCloudMonitoringSetting_UpdateExpanded.cs | 35 +- ...toringSetting_UpdateViaIdentityExpanded.cs | 35 +- ...MonitoringSetting_UpdateViaJsonFilePath.cs | 35 +- ...udMonitoringSetting_UpdateViaJsonString.cs | 35 +- .../UpdateAzSpringCloud_UpdateExpanded.cs | 35 +- ...AzSpringCloud_UpdateViaIdentityExpanded.cs | 35 +- ...dateAzSpringCloud_UpdateViaJsonFilePath.cs | 35 +- ...UpdateAzSpringCloud_UpdateViaJsonString.cs | 35 +- .../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-AzSpringCloud.ps1 | 4 +- .../internal/New-AzSpringCloudApp.ps1 | 4 +- .../New-AzSpringCloudBuildServiceBuild.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 16 +- .../Update-AzSpringCloudBuildServiceBuild.ps1 | 4 +- .../Properties/AssemblyInfo.cs | 28 -- ...Add-AzStackHCIVMVirtualMachineDataDisk.ps1 | 13 +- ...ackHCIVMVirtualMachineNetworkInterface.ps1 | 13 +- .../exports/Get-AzStackHCIVMImage.ps1 | 13 +- .../Get-AzStackHCIVMLogicalNetwork.ps1 | 13 +- .../Get-AzStackHCIVMNetworkInterface.ps1 | 13 +- .../exports/Get-AzStackHCIVMStoragePath.ps1 | 13 +- .../Get-AzStackHCIVMVirtualHardDisk.ps1 | 13 +- .../Get-AzStackHCIVMVirtualMachine.ps1 | 13 +- .../exports/New-AzStackHCIVMImage.ps1 | 15 +- .../New-AzStackHCIVMLogicalNetwork.ps1 | 13 +- .../New-AzStackHCIVMNetworkInterface.ps1 | 13 +- .../exports/New-AzStackHCIVMStoragePath.ps1 | 13 +- .../New-AzStackHCIVMVirtualHardDisk.ps1 | 13 +- .../New-AzStackHCIVMVirtualMachine.ps1 | 15 +- .../exports/ProxyCmdletDefinitions.ps1 | 407 +++++++++++++--- .../exports/Remove-AzStackHCIVMImage.ps1 | 13 +- .../Remove-AzStackHCIVMLogicalNetwork.ps1 | 13 +- .../Remove-AzStackHCIVMNetworkInterface.ps1 | 13 +- .../Remove-AzStackHCIVMStoragePath.ps1 | 13 +- .../Remove-AzStackHCIVMVirtualHardDisk.ps1 | 13 +- .../Remove-AzStackHCIVMVirtualMachine.ps1 | 13 +- ...ove-AzStackHCIVMVirtualMachineDataDisk.ps1 | 13 +- ...ackHCIVMVirtualMachineNetworkInterface.ps1 | 13 +- .../Restart-AzStackHCIVMVirtualMachine.ps1 | 13 +- .../Start-AzStackHCIVMVirtualMachine.ps1 | 13 +- .../Stop-AzStackHCIVMVirtualMachine.ps1 | 13 +- .../exports/Update-AzStackHCIVMImage.ps1 | 13 +- .../Update-AzStackHCIVMLogicalNetwork.ps1 | 13 +- .../Update-AzStackHCIVMNetworkInterface.ps1 | 13 +- .../Update-AzStackHCIVMStoragePath.ps1 | 13 +- .../Update-AzStackHCIVMVirtualHardDisk.ps1 | 13 +- .../Update-AzStackHCIVMVirtualMachine.ps1 | 13 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../api/Models/ErrorResponseAutoGenerated.cs | 10 +- .../generated/api/Models/ExtensionValue.cs | 46 +- .../api/Models/GalleryImageProperties.cs | 42 +- .../api/Models/GalleryImageVersion.cs | 6 +- .../Models/GalleryImageVersionProperties.cs | 4 +- .../GalleryImageVersionStorageProfile.cs | 2 +- .../generated/api/Models/GalleryImages.cs | 92 ++-- .../api/Models/GalleryOSDiskImage.cs | 2 +- .../generated/api/Models/GuestAgent.cs | 46 +- .../api/Models/HybridIdentityMetadata.cs | 53 ++- .../HybridIdentityMetadataAutoGenerated.cs | 51 +- .../HybridIdentityMetadataProperties.cs | 9 +- ...IdentityMetadataPropertiesAutoGenerated.cs | 9 +- .../generated/api/Models/IPAddress.cs | 5 +- .../generated/api/Models/IPConfiguration.cs | 6 +- .../generated/api/Models/IPPool.cs | 4 +- .../api/Models/LogicalNetworkProperties.cs | 22 +- .../generated/api/Models/LogicalNetworks.cs | 70 ++- .../generated/api/Models/Machine.cs | 135 +++--- .../generated/api/Models/MachineExtension.cs | 48 +- .../api/Models/MachineExtensionProperties.cs | 2 +- .../generated/api/Models/MachineProperties.cs | 45 +- .../generated/api/Models/MachineUpdate.cs | 32 +- .../api/Models/MachineUpdateProperties.cs | 20 +- .../MarketplaceGalleryImageProperties.cs | 42 +- .../api/Models/MarketplaceGalleryImages.cs | 92 ++-- .../api/Models/NetworkInterfaceProperties.cs | 22 +- .../generated/api/Models/NetworkInterfaces.cs | 70 ++- .../generated/api/Models/OSProfile.cs | 4 +- .../generated/api/Models/OperationValue.cs | 8 +- .../generated/api/Models/ProxyResource.cs | 40 +- .../generated/api/Models/Resource.cs | 30 +- .../api/Models/StorageContainerProperties.cs | 32 +- .../generated/api/Models/StorageContainers.cs | 78 ++- .../generated/api/Models/Subnet.cs | 10 +- .../api/Models/SubnetPropertiesFormat.cs | 8 +- .../generated/api/Models/TrackedResource.cs | 42 +- .../api/Models/VirtualHardDiskProperties.cs | 22 +- .../generated/api/Models/VirtualHardDisks.cs | 68 ++- .../api/Models/VirtualMachineInstance.cs | 131 +++-- .../VirtualMachineInstanceProperties.cs | 65 ++- ...rtualMachineInstancePropertiesOSProfile.cs | 4 +- .../VirtualMachineInstanceUpdateProperties.cs | 4 +- .../VirtualMachineInstanceUpdateRequest.cs | 16 +- .../generated/api/StackHcivm.cs | 380 +++++++-------- ...AzStackHCIVMGalleryImage_CreateExpanded.cs | 37 +- ...HCIVMGalleryImage_CreateViaJsonFilePath.cs | 37 +- ...ckHCIVMGalleryImage_CreateViaJsonString.cs | 37 +- ...ewAzStackHCIVMGuestAgent_CreateExpanded.cs | 37 +- ...ckHCIVMGuestAgent_CreateViaJsonFilePath.cs | 37 +- ...tackHCIVMGuestAgent_CreateViaJsonString.cs | 37 +- ...StackHCIVMLogicalNetwork_CreateExpanded.cs | 38 +- ...IVMLogicalNetwork_CreateViaJsonFilePath.cs | 38 +- ...HCIVMLogicalNetwork_CreateViaJsonString.cs | 38 +- ...ackHCIVMMachineExtension_CreateExpanded.cs | 37 +- ...chineExtension_CreateViaIdentityMachine.cs | 37 +- ...ension_CreateViaIdentityMachineExpanded.cs | 37 +- ...MMachineExtension_CreateViaJsonFilePath.cs | 37 +- ...IVMMachineExtension_CreateViaJsonString.cs | 37 +- .../NewAzStackHCIVMMachine_CreateExpanded.cs | 4 +- ...StackHCIVMMachine_CreateViaJsonFilePath.cs | 4 +- ...AzStackHCIVMMachine_CreateViaJsonString.cs | 4 +- ...MMarketplaceGalleryImage_CreateExpanded.cs | 39 +- ...placeGalleryImage_CreateViaJsonFilePath.cs | 39 +- ...etplaceGalleryImage_CreateViaJsonString.cs | 39 +- ...ackHCIVMNetworkInterface_CreateExpanded.cs | 38 +- ...MNetworkInterface_CreateViaJsonFilePath.cs | 38 +- ...IVMNetworkInterface_CreateViaJsonString.cs | 38 +- ...wAzStackHCIVMStoragePath_CreateExpanded.cs | 38 +- ...kHCIVMStoragePath_CreateViaJsonFilePath.cs | 38 +- ...ackHCIVMStoragePath_CreateViaJsonString.cs | 38 +- ...tackHCIVMVirtualHardDisk_CreateExpanded.cs | 38 +- ...VMVirtualHardDisk_CreateViaJsonFilePath.cs | 38 +- ...CIVMVirtualHardDisk_CreateViaJsonString.cs | 38 +- ...StackHCIVMVirtualMachine_CreateExpanded.cs | 39 +- ...IVMVirtualMachine_CreateViaJsonFilePath.cs | 39 +- ...HCIVMVirtualMachine_CreateViaJsonString.cs | 39 +- .../RemoveAzStackHCIVMGalleryImage_Delete.cs | 18 +- ...tackHCIVMGalleryImage_DeleteViaIdentity.cs | 18 +- .../RemoveAzStackHCIVMGuestAgent_Delete.cs | 18 +- ...RemoveAzStackHCIVMLogicalNetwork_Delete.cs | 18 +- ...ckHCIVMLogicalNetwork_DeleteViaIdentity.cs | 18 +- ...moveAzStackHCIVMMachineExtension_Delete.cs | 18 +- ...HCIVMMachineExtension_DeleteViaIdentity.cs | 18 +- ...chineExtension_DeleteViaIdentityMachine.cs | 18 +- .../RemoveAzStackHCIVMMachine_Delete.cs | 4 +- ...veAzStackHCIVMMachine_DeleteViaIdentity.cs | 4 +- ...tackHCIVMMarketplaceGalleryImage_Delete.cs | 18 +- ...rketplaceGalleryImage_DeleteViaIdentity.cs | 18 +- ...moveAzStackHCIVMNetworkInterface_Delete.cs | 18 +- ...HCIVMNetworkInterface_DeleteViaIdentity.cs | 18 +- .../RemoveAzStackHCIVMStoragePath_Delete.cs | 18 +- ...StackHCIVMStoragePath_DeleteViaIdentity.cs | 18 +- ...emoveAzStackHCIVMVirtualHardDisk_Delete.cs | 18 +- ...kHCIVMVirtualHardDisk_DeleteViaIdentity.cs | 18 +- ...RemoveAzStackHCIVMVirtualMachine_Delete.cs | 18 +- ...startAzStackHCIVMVirtualMachine_Restart.cs | 33 +- ...AzStackHCIVMGalleryImage_UpdateExpanded.cs | 37 +- ...HCIVMGalleryImage_UpdateViaJsonFilePath.cs | 37 +- ...ckHCIVMGalleryImage_UpdateViaJsonString.cs | 37 +- ...StackHCIVMLogicalNetwork_UpdateExpanded.cs | 38 +- ...IVMLogicalNetwork_UpdateViaJsonFilePath.cs | 38 +- ...HCIVMLogicalNetwork_UpdateViaJsonString.cs | 38 +- ...ackHCIVMMachineExtension_UpdateExpanded.cs | 37 +- ...MMachineExtension_UpdateViaJsonFilePath.cs | 37 +- ...IVMMachineExtension_UpdateViaJsonString.cs | 37 +- .../SetAzStackHCIVMMachine_UpdateExpanded.cs | 4 +- ...StackHCIVMMachine_UpdateViaJsonFilePath.cs | 4 +- ...AzStackHCIVMMachine_UpdateViaJsonString.cs | 4 +- ...MMarketplaceGalleryImage_UpdateExpanded.cs | 39 +- ...placeGalleryImage_UpdateViaJsonFilePath.cs | 39 +- ...etplaceGalleryImage_UpdateViaJsonString.cs | 39 +- ...ackHCIVMNetworkInterface_UpdateExpanded.cs | 38 +- ...MNetworkInterface_UpdateViaJsonFilePath.cs | 38 +- ...IVMNetworkInterface_UpdateViaJsonString.cs | 38 +- ...ackHCIVMStorageContainer_UpdateExpanded.cs | 38 +- ...MStorageContainer_UpdateViaJsonFilePath.cs | 38 +- ...IVMStorageContainer_UpdateViaJsonString.cs | 38 +- ...tackHCIVMVirtualHardDisk_UpdateExpanded.cs | 38 +- ...VMVirtualHardDisk_UpdateViaJsonFilePath.cs | 38 +- ...CIVMVirtualHardDisk_UpdateViaJsonString.cs | 38 +- ...VMVirtualMachineInstance_UpdateExpanded.cs | 39 +- ...alMachineInstance_UpdateViaJsonFilePath.cs | 39 +- ...tualMachineInstance_UpdateViaJsonString.cs | 39 +- .../StartAzStackHCIVMVirtualMachine_Start.cs | 33 +- .../StopAzStackHCIVMVirtualMachine_Stop.cs | 33 +- .../UpdateAzStackHCIVMExtension_Upgrade.cs | 16 +- ...teAzStackHCIVMExtension_UpgradeExpanded.cs | 16 +- ...zStackHCIVMExtension_UpgradeViaIdentity.cs | 16 +- ...IVMExtension_UpgradeViaIdentityExpanded.cs | 16 +- ...ckHCIVMExtension_UpgradeViaJsonFilePath.cs | 16 +- ...tackHCIVMExtension_UpgradeViaJsonString.cs | 16 +- ...AzStackHCIVMGalleryImage_UpdateExpanded.cs | 33 +- ...MGalleryImage_UpdateViaIdentityExpanded.cs | 33 +- ...HCIVMGalleryImage_UpdateViaJsonFilePath.cs | 33 +- ...ckHCIVMGalleryImage_UpdateViaJsonString.cs | 33 +- ...teAzStackHCIVMGuestAgent_UpdateExpanded.cs | 37 +- ...StackHCIVMLogicalNetwork_UpdateExpanded.cs | 33 +- ...ogicalNetwork_UpdateViaIdentityExpanded.cs | 33 +- ...IVMLogicalNetwork_UpdateViaJsonFilePath.cs | 33 +- ...HCIVMLogicalNetwork_UpdateViaJsonString.cs | 33 +- ...ackHCIVMMachineExtension_UpdateExpanded.cs | 37 +- ...hineExtension_UpdateViaIdentityExpanded.cs | 37 +- ...chineExtension_UpdateViaIdentityMachine.cs | 37 +- ...ension_UpdateViaIdentityMachineExpanded.cs | 37 +- ...MMachineExtension_UpdateViaJsonFilePath.cs | 37 +- ...IVMMachineExtension_UpdateViaJsonString.cs | 37 +- ...MMarketplaceGalleryImage_UpdateExpanded.cs | 33 +- ...eGalleryImage_UpdateViaIdentityExpanded.cs | 33 +- ...placeGalleryImage_UpdateViaJsonFilePath.cs | 33 +- ...etplaceGalleryImage_UpdateViaJsonString.cs | 33 +- ...ackHCIVMNetworkInterface_UpdateExpanded.cs | 33 +- ...workInterface_UpdateViaIdentityExpanded.cs | 33 +- ...MNetworkInterface_UpdateViaJsonFilePath.cs | 33 +- ...IVMNetworkInterface_UpdateViaJsonString.cs | 33 +- ...eAzStackHCIVMStoragePath_UpdateExpanded.cs | 33 +- ...VMStoragePath_UpdateViaIdentityExpanded.cs | 33 +- ...kHCIVMStoragePath_UpdateViaJsonFilePath.cs | 33 +- ...ackHCIVMStoragePath_UpdateViaJsonString.cs | 33 +- ...tackHCIVMVirtualHardDisk_UpdateExpanded.cs | 33 +- ...rtualHardDisk_UpdateViaIdentityExpanded.cs | 33 +- ...VMVirtualHardDisk_UpdateViaJsonFilePath.cs | 33 +- ...CIVMVirtualHardDisk_UpdateViaJsonString.cs | 33 +- ...StackHCIVMVirtualMachine_UpdateExpanded.cs | 33 +- ...IVMVirtualMachine_UpdateViaJsonFilePath.cs | 33 +- ...HCIVMVirtualMachine_UpdateViaJsonString.cs | 33 +- .../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 +- .../internal/Get-AzStackHCIVMAgentVersion.ps1 | 6 + .../Get-AzStackHCIVMExtensionMetadata.ps1 | 8 +- .../internal/Get-AzStackHCIVMGalleryImage.ps1 | 8 +- .../internal/Get-AzStackHCIVMGuestAgent.ps1 | 6 + ...Get-AzStackHCIVMHybridIdentityMetadata.ps1 | 8 +- .../internal/Get-AzStackHCIVMMachine.ps1 | 8 +- .../Get-AzStackHCIVMMachineExtension.ps1 | 8 +- ...et-AzStackHCIVMMarketplaceGalleryImage.ps1 | 8 +- .../Get-AzStackHCIVMNetworkProfile.ps1 | 8 +- .../internal/Get-AzStackHCIVMOperation.ps1 | 6 + .../Get-AzStackHCIVMVirtualMachine.ps1 | 6 + .../internal/New-AzStackHCIVMGalleryImage.ps1 | 12 +- .../internal/New-AzStackHCIVMGuestAgent.ps1 | 6 + .../New-AzStackHCIVMLogicalNetwork.ps1 | 12 +- .../internal/New-AzStackHCIVMMachine.ps1 | 12 +- .../New-AzStackHCIVMMachineExtension.ps1 | 14 +- ...ew-AzStackHCIVMMarketplaceGalleryImage.ps1 | 12 +- .../New-AzStackHCIVMNetworkInterface.ps1 | 12 +- .../internal/New-AzStackHCIVMStoragePath.ps1 | 12 +- .../New-AzStackHCIVMVirtualHardDisk.ps1 | 12 +- .../New-AzStackHCIVMVirtualMachine.ps1 | 10 +- .../internal/ProxyCmdletDefinitions.ps1 | 450 +++++++++++++----- .../Remove-AzStackHCIVMGalleryImage.ps1 | 8 +- .../Remove-AzStackHCIVMGuestAgent.ps1 | 6 + .../Remove-AzStackHCIVMLogicalNetwork.ps1 | 8 +- .../internal/Remove-AzStackHCIVMMachine.ps1 | 8 +- .../Remove-AzStackHCIVMMachineExtension.ps1 | 8 +- ...ve-AzStackHCIVMMarketplaceGalleryImage.ps1 | 8 +- .../Remove-AzStackHCIVMNetworkInterface.ps1 | 8 +- .../Remove-AzStackHCIVMStoragePath.ps1 | 8 +- .../Remove-AzStackHCIVMVirtualHardDisk.ps1 | 8 +- .../Remove-AzStackHCIVMVirtualMachine.ps1 | 6 + .../Restart-AzStackHCIVMVirtualMachine.ps1 | 6 + .../internal/Set-AzStackHCIVMGalleryImage.ps1 | 12 +- .../Set-AzStackHCIVMLogicalNetwork.ps1 | 12 +- .../internal/Set-AzStackHCIVMMachine.ps1 | 12 +- .../Set-AzStackHCIVMMachineExtension.ps1 | 12 +- ...et-AzStackHCIVMMarketplaceGalleryImage.ps1 | 12 +- .../Set-AzStackHCIVMNetworkInterface.ps1 | 12 +- .../Set-AzStackHCIVMStorageContainer.ps1 | 12 +- .../Set-AzStackHCIVMVirtualHardDisk.ps1 | 12 +- ...Set-AzStackHCIVMVirtualMachineInstance.ps1 | 10 +- .../Start-AzStackHCIVMVirtualMachine.ps1 | 6 + .../Stop-AzStackHCIVMVirtualMachine.ps1 | 6 + .../internal/Update-AzStackHCIVMExtension.ps1 | 8 +- .../Update-AzStackHCIVMGalleryImage.ps1 | 8 +- .../Update-AzStackHCIVMGuestAgent.ps1 | 6 + .../internal/Update-AzStackHCIVMMachine.ps1 | 8 +- .../Update-AzStackHCIVMMachineExtension.ps1 | 12 +- ...te-AzStackHCIVMMarketplaceGalleryImage.ps1 | 8 +- .../Update-AzStackHCIVMVirtualMachine.ps1 | 6 + .../StackHCIVM.Autorest}/resources/README.md | 0 .../Get-AzStandbyContainerGroupPool.ps1 | 3 +- .../Get-AzStandbyContainerGroupPoolStatus.ps1 | 3 +- .../exports/Get-AzStandbyVMPool.ps1 | 3 +- .../exports/Get-AzStandbyVMPoolStatus.ps1 | 3 +- .../New-AzStandbyContainerGroupPool.ps1 | 7 +- .../exports/New-AzStandbyVMPool.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 46 +- .../Remove-AzStandbyContainerGroupPool.ps1 | 3 +- .../exports/Remove-AzStandbyVMPool.ps1 | 3 +- .../Update-AzStandbyContainerGroupPool.ps1 | 7 +- .../exports/Update-AzStandbyVMPool.ps1 | 7 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/ProxyResource.cs | 20 +- .../generated/api/Models/Resource.cs | 12 +- .../StandbyContainerGroupPoolPrediction.cs | 2 +- .../StandbyContainerGroupPoolResource.cs | 28 +- ...dbyContainerGroupPoolResourceProperties.cs | 2 +- ...StandbyContainerGroupPoolResourceUpdate.cs | 6 +- ...tainerGroupPoolResourceUpdateProperties.cs | 2 +- ...byContainerGroupPoolRuntimeViewResource.cs | 40 +- ...rGroupPoolRuntimeViewResourceProperties.cs | 12 +- .../StandbyVirtualMachinePoolPrediction.cs | 2 +- .../StandbyVirtualMachinePoolResource.cs | 24 +- ...StandbyVirtualMachinePoolResourceUpdate.cs | 2 +- ...byVirtualMachinePoolRuntimeViewResource.cs | 40 +- ...achinePoolRuntimeViewResourceProperties.cs | 12 +- .../Models/StandbyVirtualMachineResource.cs | 22 +- .../generated/api/Models/TrackedResource.cs | 20 +- ...tandbyContainerGroupPool_CreateExpanded.cs | 33 +- ...ontainerGroupPool_CreateViaJsonFilePath.cs | 33 +- ...yContainerGroupPool_CreateViaJsonString.cs | 33 +- .../NewAzStandbyVMPool_CreateExpanded.cs | 33 +- ...ewAzStandbyVMPool_CreateViaJsonFilePath.cs | 33 +- .../NewAzStandbyVMPool_CreateViaJsonString.cs | 33 +- ...emoveAzStandbyContainerGroupPool_Delete.cs | 18 +- ...dbyContainerGroupPool_DeleteViaIdentity.cs | 18 +- .../cmdlets/RemoveAzStandbyVMPool_Delete.cs | 18 +- ...RemoveAzStandbyVMPool_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 +- .../exports/Get-AzStorageAccountMigration.ps1 | 3 +- .../exports/Get-AzStorageFileServiceUsage.ps1 | 3 +- ...eNetworkSecurityPerimeterConfiguration.ps1 | 3 +- .../exports/Get-AzStorageSku.ps1 | 3 +- .../exports/Get-AzStorageTaskAssignment.ps1 | 3 +- ...AzStorageTaskAssignmentInstancesReport.ps1 | 3 +- ...eNetworkSecurityPerimeterConfiguration.ps1 | 3 +- .../exports/New-AzStorageTaskAssignment.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 33 +- .../Remove-AzStorageTaskAssignment.ps1 | 3 +- .../Start-AzStorageAccountMigration.ps1 | 3 +- .../Update-AzStorageTaskAssignment.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Get-AzStorageActionTask.ps1 | 3 +- .../Get-AzStorageActionTaskAssignment.ps1 | 3 +- .../Get-AzStorageActionTasksReport.ps1 | 3 +- ...nvoke-AzStorageActionTaskPreviewAction.ps1 | 3 +- .../exports/New-AzStorageActionTask.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 21 +- .../exports/Remove-AzStorageActionTask.ps1 | 3 +- .../exports/Update-AzStorageActionTask.ps1 | 3 +- .../NewAzStorageActionTask_CreateExpanded.cs | 33 +- ...StorageActionTask_CreateViaJsonFilePath.cs | 33 +- ...AzStorageActionTask_CreateViaJsonString.cs | 33 +- .../RemoveAzStorageActionTask_Delete.cs | 18 +- ...veAzStorageActionTask_DeleteViaIdentity.cs | 18 +- ...pdateAzStorageActionTask_UpdateExpanded.cs | 33 +- ...ageActionTask_UpdateViaIdentityExpanded.cs | 33 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../Get-AzStorageCacheAmlFileSystem.ps1 | 3 +- ...geCacheAmlFileSystemSubnetRequiredSize.ps1 | 3 +- .../Get-AzStorageCacheAutoExportJob.ps1 | 3 +- .../Get-AzStorageCacheAutoImportJob.ps1 | 3 +- .../exports/Get-AzStorageCacheImportJob.ps1 | 3 +- ...oke-AzStorageCacheAmlFileSystemArchive.ps1 | 3 +- .../New-AzStorageCacheAmlFileSystem.ps1 | 3 +- .../New-AzStorageCacheAutoExportJob.ps1 | 3 +- .../New-AzStorageCacheAutoImportJob.ps1 | 3 +- .../exports/New-AzStorageCacheImportJob.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 60 +-- .../Remove-AzStorageCacheAmlFileSystem.ps1 | 3 +- .../Remove-AzStorageCacheAutoExportJob.ps1 | 3 +- .../Remove-AzStorageCacheAutoImportJob.ps1 | 3 +- .../Remove-AzStorageCacheImportJob.ps1 | 3 +- ...top-AzStorageCacheAmlFilesystemArchive.ps1 | 3 +- ...Test-AzStorageCacheAmlFileSystemSubnet.ps1 | 3 +- .../Update-AzStorageCacheAmlFileSystem.ps1 | 3 +- .../Update-AzStorageCacheAutoExportJob.ps1 | 3 +- .../Update-AzStorageCacheAutoImportJob.ps1 | 3 +- .../Update-AzStorageCacheImportJob.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Get-AzStorageMover.ps1 | 3 +- .../exports/Get-AzStorageMoverAgent.ps1 | 3 +- .../exports/Get-AzStorageMoverEndpoint.ps1 | 3 +- .../Get-AzStorageMoverJobDefinition.ps1 | 3 +- .../exports/Get-AzStorageMoverJobRun.ps1 | 3 +- .../exports/Get-AzStorageMoverProject.ps1 | 3 +- .../exports/New-AzStorageMover.ps1 | 3 +- ...w-AzStorageMoverAzNfsFileShareEndpoint.ps1 | 3 +- ...w-AzStorageMoverAzSmbFileShareEndpoint.ps1 | 3 +- ...StorageMoverAzStorageContainerEndpoint.ps1 | 3 +- .../New-AzStorageMoverJobDefinition.ps1 | 3 +- ...torageMoverMultiCloudConnectorEndpoint.ps1 | 3 +- .../exports/New-AzStorageMoverNfsEndpoint.ps1 | 3 +- .../exports/New-AzStorageMoverProject.ps1 | 3 +- .../exports/New-AzStorageMoverSmbEndpoint.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 96 ++-- .../exports/Remove-AzStorageMover.ps1 | 3 +- .../exports/Remove-AzStorageMoverEndpoint.ps1 | 3 +- .../Remove-AzStorageMoverJobDefinition.ps1 | 3 +- .../exports/Remove-AzStorageMoverProject.ps1 | 3 +- .../Start-AzStorageMoverJobDefinition.ps1 | 3 +- .../Stop-AzStorageMoverJobDefinition.ps1 | 3 +- .../Unregister-AzStorageMoverAgent.ps1 | 3 +- .../exports/Update-AzStorageMover.ps1 | 3 +- .../exports/Update-AzStorageMoverAgent.ps1 | 3 +- ...e-AzStorageMoverAzNfsFileShareEndpoint.ps1 | 3 +- ...e-AzStorageMoverAzSmbFileShareEndpoint.ps1 | 3 +- ...StorageMoverAzStorageContainerEndpoint.ps1 | 3 +- .../Update-AzStorageMoverJobDefinition.ps1 | 3 +- ...torageMoverMultiCloudConnectorEndpoint.ps1 | 3 +- .../Update-AzStorageMoverNfsEndpoint.ps1 | 3 +- .../exports/Update-AzStorageMoverProject.ps1 | 3 +- .../Update-AzStorageMoverSmbEndpoint.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Get-AzStreamAnalyticsCluster.ps1 | 3 +- ...t-AzStreamAnalyticsClusterStreamingJob.ps1 | 3 +- ...reamAnalyticsDefaultFunctionDefinition.ps1 | 3 +- .../exports/Get-AzStreamAnalyticsFunction.ps1 | 3 +- .../exports/Get-AzStreamAnalyticsInput.ps1 | 3 +- .../exports/Get-AzStreamAnalyticsJob.ps1 | 3 +- .../exports/Get-AzStreamAnalyticsOutput.ps1 | 3 +- .../exports/Get-AzStreamAnalyticsQuota.ps1 | 3 +- .../Get-AzStreamAnalyticsTransformation.ps1 | 3 +- .../exports/New-AzStreamAnalyticsCluster.ps1 | 3 +- .../exports/New-AzStreamAnalyticsFunction.ps1 | 3 +- .../exports/New-AzStreamAnalyticsInput.ps1 | 3 +- .../exports/New-AzStreamAnalyticsJob.ps1 | 3 +- .../exports/New-AzStreamAnalyticsOutput.ps1 | 3 +- .../New-AzStreamAnalyticsTransformation.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 93 ++-- .../Remove-AzStreamAnalyticsCluster.ps1 | 3 +- .../Remove-AzStreamAnalyticsFunction.ps1 | 3 +- .../exports/Remove-AzStreamAnalyticsInput.ps1 | 3 +- .../exports/Remove-AzStreamAnalyticsJob.ps1 | 3 +- .../Remove-AzStreamAnalyticsOutput.ps1 | 3 +- .../exports/Start-AzStreamAnalyticsJob.ps1 | 3 +- .../exports/Stop-AzStreamAnalyticsJob.ps1 | 3 +- .../Test-AzStreamAnalyticsFunction.ps1 | 3 +- .../exports/Test-AzStreamAnalyticsInput.ps1 | 3 +- .../exports/Test-AzStreamAnalyticsOutput.ps1 | 3 +- .../Update-AzStreamAnalyticsCluster.ps1 | 3 +- .../Update-AzStreamAnalyticsFunction.ps1 | 3 +- .../exports/Update-AzStreamAnalyticsInput.ps1 | 3 +- .../exports/Update-AzStreamAnalyticsJob.ps1 | 3 +- .../Update-AzStreamAnalyticsOutput.ps1 | 3 +- ...Update-AzStreamAnalyticsTransformation.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Disable-AzSubscription.ps1 | 3 +- .../exports/Enable-AzSubscription.ps1 | 3 +- ...et-AzSubscriptionAcceptOwnershipStatus.ps1 | 3 +- .../exports/Get-AzSubscriptionAlias.ps1 | 3 +- .../exports/Get-AzSubscriptionPolicy.ps1 | 3 +- .../Invoke-AzSubscriptionAcceptOwnership.ps1 | 3 +- .../exports/New-AzSubscriptionAlias.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 27 +- .../exports/Remove-AzSubscriptionAlias.ps1 | 3 +- .../exports/Rename-AzSubscription.ps1 | 3 +- .../Models/BillingAccountPoliciesResponse.cs | 12 +- .../api/Models/GetTenantPolicyResponse.cs | 14 +- .../generated/api/Models/PutAliasRequest.cs | 2 +- .../api/Models/SubscriptionAliasResponse.cs | 18 +- .../cmdlets/GetAzSubscriptionOperation_Get.cs | 2 +- ...tAzSubscriptionOperation_GetViaIdentity.cs | 2 +- ...scriptionAcceptOwnership_AcceptExpanded.cs | 16 +- ...ceptOwnership_AcceptViaIdentityExpanded.cs | 16 +- ...onAcceptOwnership_AcceptViaJsonFilePath.cs | 16 +- ...tionAcceptOwnership_AcceptViaJsonString.cs | 16 +- .../NewAzSubscriptionAlias_CreateExpanded.cs | 33 +- ...criptionAlias_CreateViaIdentityExpanded.cs | 33 +- ...SubscriptionAlias_CreateViaJsonFilePath.cs | 33 +- ...AzSubscriptionAlias_CreateViaJsonString.cs | 33 +- .../RemoveAzSubscriptionAlias_Delete.cs | 4 +- ...veAzSubscriptionAlias_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-AzSubscriptionAlias.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 8 +- .../internal/Update-AzSubscriptionPolicy.ps1 | 4 +- .../Properties/AssemblyInfo.cs | 28 -- .../exports/Get-AzSupportChatTranscript.ps1 | 13 +- ...AzSupportChatTranscriptsNoSubscription.ps1 | 11 + .../exports/Get-AzSupportCommunication.ps1 | 13 +- ...-AzSupportCommunicationsNoSubscription.ps1 | 11 + .../exports/Get-AzSupportFile.ps1 | 13 +- .../exports/Get-AzSupportFileWorkspace.ps1 | 13 +- ...-AzSupportFileWorkspacesNoSubscription.ps1 | 11 + .../Get-AzSupportFilesNoSubscription.ps1 | 11 + .../exports/Get-AzSupportOperation.ps1 | 11 + .../Get-AzSupportProblemClassification.ps1 | 11 + .../exports/Get-AzSupportService.ps1 | 11 + .../exports/Get-AzSupportTicket.ps1 | 13 +- .../Get-AzSupportTicketsNoSubscription.ps1 | 11 + .../exports/New-AzSupportCommunication.ps1 | 13 +- ...-AzSupportCommunicationsNoSubscription.ps1 | 11 + .../exports/New-AzSupportFileAndUpload.ps1 | 13 +- ...w-AzSupportFileAndUploadNoSubscription.ps1 | 11 + .../exports/New-AzSupportFileWorkspace.ps1 | 13 +- ...-AzSupportFileWorkspacesNoSubscription.ps1 | 11 + .../exports/New-AzSupportTicket.ps1 | 13 +- .../New-AzSupportTicketsNoSubscription.ps1 | 11 + .../exports/ProxyCmdletDefinitions.ps1 | 321 ++++++++++++- ...AzSupportCommunicationNameAvailability.ps1 | 13 +- ...icationsNoSubscriptionNameAvailability.ps1 | 11 + .../Test-AzSupportTicketNameAvailability.ps1 | 13 +- ...tTicketsNoSubscriptionNameAvailability.ps1 | 11 + .../exports/Update-AzSupportTicket.ps1 | 13 +- .../Update-AzSupportTicketsNoSubscription.ps1 | 11 + .../api/Models/ChatTranscriptDetails.cs | 42 +- .../api/Models/CommunicationDetails.cs | 6 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/FileDetails.cs | 42 +- .../api/Models/FileWorkspaceDetails.cs | 44 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/ProxyResource.cs | 40 +- .../generated/api/Models/Resource.cs | 30 +- .../api/Models/SupportTicketDetails.cs | 34 +- .../Models/SupportTicketDetailsProperties.cs | 8 +- .../Support.Autorest/generated/api/Support.cs | 144 +++--- .../InvokeAzSupportUploadFile_Upload.cs | 2 +- ...nvokeAzSupportUploadFile_UploadExpanded.cs | 2 +- ...keAzSupportUploadFile_UploadViaIdentity.cs | 2 +- ...ortUploadFile_UploadViaIdentityExpanded.cs | 2 +- ...loadFile_UploadViaIdentityFileWorkspace.cs | 2 +- ..._UploadViaIdentityFileWorkspaceExpanded.cs | 2 +- ...SupportUploadFile_UploadViaJsonFilePath.cs | 2 +- ...AzSupportUploadFile_UploadViaJsonString.cs | 2 +- ...SupportUploadFilesNoSubscription_Upload.cs | 2 +- ...ploadFilesNoSubscription_UploadExpanded.cs | 2 +- ...adFilesNoSubscription_UploadViaIdentity.cs | 2 +- ...oSubscription_UploadViaIdentityExpanded.cs | 2 +- ...cription_UploadViaIdentityFileWorkspace.cs | 2 +- ..._UploadViaIdentityFileWorkspaceExpanded.cs | 2 +- ...lesNoSubscription_UploadViaJsonFilePath.cs | 2 +- ...FilesNoSubscription_UploadViaJsonString.cs | 2 +- ...ewAzSupportCommunication_CreateExpanded.cs | 33 +- ...unicationsNoSubscription_CreateExpanded.cs | 33 +- .../NewAzSupportFileWorkspace_Create.cs | 4 +- ...portFileWorkspacesNoSubscription_Create.cs | 4 +- .../NewAzSupportFile_CreateExpanded.cs | 4 +- ...pportFilesNoSubscription_CreateExpanded.cs | 4 +- .../NewAzSupportTicket_CreateExpanded.cs | 37 +- ...ortTicketsNoSubscription_CreateExpanded.cs | 37 +- .../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 +- .../internal/Get-AzSupportOperation.ps1 | 6 + .../internal/Get-AzSupportTicket.ps1 | 8 +- .../Get-AzSupportTicketsNoSubscription.ps1 | 6 + .../internal/Invoke-AzSupportUploadFile.ps1 | 8 +- ...oke-AzSupportUploadFilesNoSubscription.ps1 | 6 + .../internal/New-AzSupportFile.ps1 | 8 +- .../New-AzSupportFilesNoSubscription.ps1 | 6 + .../internal/ProxyCmdletDefinitions.ps1 | 48 +- .../Support.Autorest}/resources/README.md | 0 .../exports/Export-AzTerraform.ps1 | 13 +- .../New-AzTerraformExportQueryObject.ps1 | 6 + ...w-AzTerraformExportResourceGroupObject.ps1 | 6 + .../New-AzTerraformExportResourceObject.ps1 | 6 + .../exports/ProxyCmdletDefinitions.ps1 | 31 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/OperationStatus.cs | 10 +- .../generated/api/Terraform.cs | 8 +- .../cmdlets/ExportAzTerraform_Export.cs | 33 +- ...ExportAzTerraform_ExportViaJsonFilePath.cs | 33 +- .../ExportAzTerraform_ExportViaJsonString.cs | 33 +- .../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 3 +- .../BuildTime/Cmdlets/NewAssemblyInfo.cs | 75 --- .../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 +- .../Terraform.Autorest}/resources/README.md | 0 .../exports/Get-AzTrustedSigningAccount.ps1 | 3 +- ...Get-AzTrustedSigningCertificateProfile.ps1 | 3 +- .../exports/New-AzTrustedSigningAccount.ps1 | 7 +- ...New-AzTrustedSigningCertificateProfile.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 36 +- .../Remove-AzTrustedSigningAccount.ps1 | 3 +- ...ove-AzTrustedSigningCertificateProfile.ps1 | 3 +- ...zTrustedSigningAccountNameAvailability.ps1 | 3 +- .../Update-AzTrustedSigningAccount.ps1 | 7 +- .../generated/api/Models/Certificate.cs | 2 +- .../api/Models/CertificateProfile.cs | 46 +- .../api/Models/CodeSigningAccount.cs | 48 +- .../api/Models/CodeSigningAccountPatch.cs | 2 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/ProxyResource.cs | 40 +- .../generated/api/Models/Resource.cs | 30 +- .../generated/api/Models/TrackedResource.cs | 42 +- ...wAzTrustedSigningAccount_CreateExpanded.cs | 33 +- ...tedSigningAccount_CreateViaJsonFilePath.cs | 33 +- ...ustedSigningAccount_CreateViaJsonString.cs | 33 +- ...igningCertificateProfile_CreateExpanded.cs | 33 +- ...ertificateProfile_CreateViaJsonFilePath.cs | 33 +- ...gCertificateProfile_CreateViaJsonString.cs | 33 +- .../RemoveAzTrustedSigningAccount_Delete.cs | 18 +- ...TrustedSigningAccount_DeleteViaIdentity.cs | 18 +- ...TrustedSigningCertificateProfile_Delete.cs | 18 +- ...ingCertificateProfile_DeleteViaIdentity.cs | 18 +- ...ile_DeleteViaIdentityCodeSigningAccount.cs | 18 +- ...eAzTrustedSigningAccount_UpdateExpanded.cs | 33 +- ...igningAccount_UpdateViaIdentityExpanded.cs | 33 +- ...tedSigningAccount_UpdateViaJsonFilePath.cs | 33 +- ...ustedSigningAccount_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 +- .../Properties/AssemblyInfo.cs | 2 +- .../exports/Get-AzVMwareAddon.ps1 | 3 +- .../exports/Get-AzVMwareAuthorization.ps1 | 3 +- .../exports/Get-AzVMwareCloudLink.ps1 | 3 +- .../exports/Get-AzVMwareCluster.ps1 | 3 +- .../exports/Get-AzVMwareClusterZone.ps1 | 3 +- .../exports/Get-AzVMwareDatastore.ps1 | 3 +- .../Get-AzVMwareGlobalReachConnection.ps1 | 3 +- .../exports/Get-AzVMwareHost.ps1 | 3 +- .../exports/Get-AzVMwareIscsiPath.ps1 | 3 +- .../exports/Get-AzVMwarePlacementPolicy.ps1 | 3 +- .../exports/Get-AzVMwarePrivateCloud.ps1 | 3 +- ...et-AzVMwarePrivateCloudAdminCredential.ps1 | 3 +- .../Get-AzVMwareProvisionedNetwork.ps1 | 3 +- .../exports/Get-AzVMwarePureStoragePolicy.ps1 | 3 +- .../exports/Get-AzVMwareSku.ps1 | 3 +- .../exports/Get-AzVMwareVirtualMachine.ps1 | 3 +- .../exports/New-AzVMwareAddon.ps1 | 3 +- .../exports/New-AzVMwareAuthorization.ps1 | 3 +- .../exports/New-AzVMwareCloudLink.ps1 | 3 +- .../exports/New-AzVMwareCluster.ps1 | 3 +- .../exports/New-AzVMwareDatastore.ps1 | 3 +- .../New-AzVMwareGlobalReachConnection.ps1 | 3 +- .../exports/New-AzVMwareIscsiPath.ps1 | 3 +- .../exports/New-AzVMwarePlacementPolicy.ps1 | 3 +- .../exports/New-AzVMwarePrivateCloud.ps1 | 3 +- .../New-AzVMwarePrivateCloudNsxtPassword.ps1 | 3 +- ...ew-AzVMwarePrivateCloudVcenterPassword.ps1 | 3 +- .../exports/New-AzVMwarePureStoragePolicy.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 147 ++---- .../exports/Remove-AzVMwareAddon.ps1 | 3 +- .../exports/Remove-AzVMwareAuthorization.ps1 | 3 +- .../exports/Remove-AzVMwareCloudLink.ps1 | 3 +- .../exports/Remove-AzVMwareCluster.ps1 | 3 +- .../exports/Remove-AzVMwareDatastore.ps1 | 3 +- .../Remove-AzVMwareGlobalReachConnection.ps1 | 3 +- .../exports/Remove-AzVMwareIscsiPath.ps1 | 3 +- .../Remove-AzVMwarePlacementPolicy.ps1 | 3 +- .../exports/Remove-AzVMwarePrivateCloud.ps1 | 3 +- .../Remove-AzVMwarePureStoragePolicy.ps1 | 3 +- ...Test-AzVMwareLocationQuotaAvailability.ps1 | 3 +- ...Test-AzVMwareLocationTrialAvailability.ps1 | 3 +- .../exports/Update-AzVMwareAuthorization.ps1 | 3 +- .../exports/Update-AzVMwareCloudLink.ps1 | 3 +- .../exports/Update-AzVMwareCluster.ps1 | 3 +- .../exports/Update-AzVMwareDatastore.ps1 | 3 +- .../Update-AzVMwareGlobalReachConnection.ps1 | 3 +- .../exports/Update-AzVMwareIscsiPath.ps1 | 3 +- .../Update-AzVMwarePlacementPolicy.ps1 | 3 +- .../exports/Update-AzVMwarePrivateCloud.ps1 | 3 +- .../Update-AzVMwarePureStoragePolicy.ps1 | 3 +- ...VirtualMachineMovement_RestrictExpanded.cs | 16 +- ...ment_RestrictViaIdentityClusterExpanded.cs | 16 +- ...ineMovement_RestrictViaIdentityExpanded.cs | 16 +- ...RestrictViaIdentityPrivateCloudExpanded.cs | 16 +- .../NewAzVMwareAddon_CreateExpanded.cs | 33 +- ...AzVMwareAddon_CreateViaIdentityExpanded.cs | 33 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...NewAzVMwareAuthorization_CreateExpanded.cs | 33 +- ...Authorization_CreateViaIdentityExpanded.cs | 33 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- .../NewAzVMwareCloudLink_CreateExpanded.cs | 33 +- ...wareCloudLink_CreateViaIdentityExpanded.cs | 33 +- ...k_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- .../NewAzVMwareCluster_CreateExpanded.cs | 33 +- ...VMwareCluster_CreateViaIdentityExpanded.cs | 33 +- ...r_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- .../NewAzVMwareDatastore_CreateExpanded.cs | 33 +- ...astore_CreateViaIdentityClusterExpanded.cs | 33 +- ...wareDatastore_CreateViaIdentityExpanded.cs | 33 +- ...e_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...areGlobalReachConnection_CreateExpanded.cs | 33 +- ...achConnection_CreateViaIdentityExpanded.cs | 33 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- .../NewAzVMwareIscsiPath_CreateExpanded.cs | 33 +- ...wareIscsiPath_CreateViaIdentityExpanded.cs | 33 +- ...wAzVMwarePlacementPolicy_CreateExpanded.cs | 33 +- ...Policy_CreateViaIdentityClusterExpanded.cs | 33 +- ...acementPolicy_CreateViaIdentityExpanded.cs | 33 +- ...y_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...AzVMwarePrivateCloudNsxtPassword_Rotate.cs | 18 +- ...vateCloudNsxtPassword_RotateViaIdentity.cs | 18 +- ...MwarePrivateCloudVcenterPassword_Rotate.cs | 18 +- ...eCloudVcenterPassword_RotateViaIdentity.cs | 18 +- .../NewAzVMwarePrivateCloud_CreateExpanded.cs | 33 +- ...zVMwarePureStoragePolicy_CreateExpanded.cs | 33 +- ...StoragePolicy_CreateViaIdentityExpanded.cs | 33 +- ...y_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...wAzVMwareScriptExecution_CreateExpanded.cs | 33 +- ...riptExecution_CreateViaIdentityExpanded.cs | 33 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...MwareWorkloadNetworkDhcp_CreateExpanded.cs | 33 +- ...adNetworkDhcp_CreateViaIdentityExpanded.cs | 33 +- ...p_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...orkloadNetworkDnsService_CreateExpanded.cs | 33 +- ...orkDnsService_CreateViaIdentityExpanded.cs | 33 +- ...e_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...reWorkloadNetworkDnsZone_CreateExpanded.cs | 33 +- ...etworkDnsZone_CreateViaIdentityExpanded.cs | 33 +- ...e_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...loadNetworkPortMirroring_CreateExpanded.cs | 33 +- ...PortMirroring_CreateViaIdentityExpanded.cs | 33 +- ...g_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...eWorkloadNetworkPublicIP_CreateExpanded.cs | 33 +- ...tworkPublicIP_CreateViaIdentityExpanded.cs | 33 +- ...P_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...reWorkloadNetworkSegment_CreateExpanded.cs | 33 +- ...etworkSegment_CreateViaIdentityExpanded.cs | 33 +- ...t_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- ...reWorkloadNetworkVMGroup_CreateExpanded.cs | 33 +- ...etworkVMGroup_CreateViaIdentityExpanded.cs | 33 +- ...p_CreateViaIdentityPrivateCloudExpanded.cs | 33 +- .../cmdlets/RemoveAzVMwareAddon_Delete.cs | 18 +- .../RemoveAzVMwareAddon_DeleteViaIdentity.cs | 18 +- ...wareAddon_DeleteViaIdentityPrivateCloud.cs | 18 +- .../RemoveAzVMwareAuthorization_Delete.cs | 18 +- ...AzVMwareAuthorization_DeleteViaIdentity.cs | 18 +- ...orization_DeleteViaIdentityPrivateCloud.cs | 18 +- .../cmdlets/RemoveAzVMwareCloudLink_Delete.cs | 18 +- ...moveAzVMwareCloudLink_DeleteViaIdentity.cs | 18 +- ...CloudLink_DeleteViaIdentityPrivateCloud.cs | 18 +- .../cmdlets/RemoveAzVMwareCluster_Delete.cs | 18 +- ...RemoveAzVMwareCluster_DeleteViaIdentity.cs | 18 +- ...reCluster_DeleteViaIdentityPrivateCloud.cs | 18 +- .../cmdlets/RemoveAzVMwareDatastore_Delete.cs | 18 +- ...moveAzVMwareDatastore_DeleteViaIdentity.cs | 18 +- ...MwareDatastore_DeleteViaIdentityCluster.cs | 18 +- ...Datastore_DeleteViaIdentityPrivateCloud.cs | 18 +- ...oveAzVMwareGlobalReachConnection_Delete.cs | 18 +- ...GlobalReachConnection_DeleteViaIdentity.cs | 18 +- ...onnection_DeleteViaIdentityPrivateCloud.cs | 18 +- .../cmdlets/RemoveAzVMwareIscsiPath_Delete.cs | 18 +- ...moveAzVMwareIscsiPath_DeleteViaIdentity.cs | 18 +- .../RemoveAzVMwarePlacementPolicy_Delete.cs | 18 +- ...VMwarePlacementPolicy_DeleteViaIdentity.cs | 18 +- ...lacementPolicy_DeleteViaIdentityCluster.cs | 18 +- ...entPolicy_DeleteViaIdentityPrivateCloud.cs | 18 +- .../RemoveAzVMwarePrivateCloud_Delete.cs | 18 +- ...eAzVMwarePrivateCloud_DeleteViaIdentity.cs | 18 +- .../RemoveAzVMwarePureStoragePolicy_Delete.cs | 18 +- ...warePureStoragePolicy_DeleteViaIdentity.cs | 18 +- ...agePolicy_DeleteViaIdentityPrivateCloud.cs | 18 +- .../RemoveAzVMwareScriptExecution_Delete.cs | 18 +- ...VMwareScriptExecution_DeleteViaIdentity.cs | 18 +- ...Execution_DeleteViaIdentityPrivateCloud.cs | 18 +- ...emoveAzVMwareWorkloadNetworkDhcp_Delete.cs | 18 +- ...reWorkloadNetworkDhcp_DeleteViaIdentity.cs | 18 +- ...tworkDhcp_DeleteViaIdentityPrivateCloud.cs | 18 +- ...zVMwareWorkloadNetworkDnsService_Delete.cs | 18 +- ...loadNetworkDnsService_DeleteViaIdentity.cs | 18 +- ...kDnsService_DeleteViaIdentityDnsService.cs | 18 +- ...veAzVMwareWorkloadNetworkDnsZone_Delete.cs | 18 +- ...orkloadNetworkDnsZone_DeleteViaIdentity.cs | 18 +- ...NetworkDnsZone_DeleteViaIdentityDnsZone.cs | 18 +- ...wareWorkloadNetworkPortMirroring_Delete.cs | 18 +- ...dNetworkPortMirroring_DeleteViaIdentity.cs | 18 +- ...g_DeleteViaIdentityPortMirroringProfile.cs | 18 +- ...eAzVMwareWorkloadNetworkPublicIP_Delete.cs | 18 +- ...rkloadNetworkPublicIP_DeleteViaIdentity.cs | 18 +- ...tworkPublicIP_DeleteViaIdentityPublicIP.cs | 18 +- ...veAzVMwareWorkloadNetworkSegment_Delete.cs | 18 +- ...orkloadNetworkSegment_DeleteViaIdentity.cs | 18 +- ...rkSegment_DeleteViaIdentityPrivateCloud.cs | 18 +- ...veAzVMwareWorkloadNetworkVMGroup_Delete.cs | 18 +- ...orkloadNetworkVMGroup_DeleteViaIdentity.cs | 18 +- ...NetworkVMGroup_DeleteViaIdentityVMGroup.cs | 18 +- ...ateAzVMwareAuthorization_UpdateExpanded.cs | 33 +- ...Authorization_UpdateViaIdentityExpanded.cs | 33 +- ...n_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- .../UpdateAzVMwareCloudLink_UpdateExpanded.cs | 33 +- ...wareCloudLink_UpdateViaIdentityExpanded.cs | 33 +- ...k_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- .../UpdateAzVMwareCluster_UpdateExpanded.cs | 33 +- ...VMwareCluster_UpdateViaIdentityExpanded.cs | 33 +- ...r_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- .../UpdateAzVMwareDatastore_UpdateExpanded.cs | 33 +- ...astore_UpdateViaIdentityClusterExpanded.cs | 33 +- ...wareDatastore_UpdateViaIdentityExpanded.cs | 33 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...areGlobalReachConnection_UpdateExpanded.cs | 33 +- ...achConnection_UpdateViaIdentityExpanded.cs | 33 +- ...n_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- .../UpdateAzVMwareIscsiPath_UpdateExpanded.cs | 33 +- ...wareIscsiPath_UpdateViaIdentityExpanded.cs | 33 +- ...eAzVMwarePlacementPolicy_UpdateExpanded.cs | 33 +- ...Policy_UpdateViaIdentityClusterExpanded.cs | 33 +- ...acementPolicy_UpdateViaIdentityExpanded.cs | 33 +- ...y_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...dateAzVMwarePrivateCloud_UpdateExpanded.cs | 33 +- ...ePrivateCloud_UpdateViaIdentityExpanded.cs | 33 +- ...zVMwarePureStoragePolicy_UpdateExpanded.cs | 33 +- ...StoragePolicy_UpdateViaIdentityExpanded.cs | 33 +- ...y_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...MwareWorkloadNetworkDhcp_UpdateExpanded.cs | 33 +- ...adNetworkDhcp_UpdateViaIdentityExpanded.cs | 33 +- ...p_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...orkloadNetworkDnsService_UpdateExpanded.cs | 33 +- ...orkDnsService_UpdateViaIdentityExpanded.cs | 33 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...reWorkloadNetworkDnsZone_UpdateExpanded.cs | 33 +- ...etworkDnsZone_UpdateViaIdentityExpanded.cs | 33 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...loadNetworkPortMirroring_UpdateExpanded.cs | 33 +- ...PortMirroring_UpdateViaIdentityExpanded.cs | 33 +- ...g_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...reWorkloadNetworkSegment_UpdateExpanded.cs | 33 +- ...etworkSegment_UpdateViaIdentityExpanded.cs | 33 +- ...t_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- ...reWorkloadNetworkVMGroup_UpdateExpanded.cs | 33 +- ...etworkVMGroup_UpdateViaIdentityExpanded.cs | 33 +- ...p_UpdateViaIdentityPrivateCloudExpanded.cs | 33 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- ...t-AzVoiceServicesCommunicationsGateway.ps1 | 3 +- ...-AzVoiceServicesCommunicationsTestLine.ps1 | 3 +- ...w-AzVoiceServicesCommunicationsGateway.ps1 | 9 +- ...-AzVoiceServicesCommunicationsTestLine.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 45 +- ...e-AzVoiceServicesCommunicationsGateway.ps1 | 3 +- ...-AzVoiceServicesCommunicationsTestLine.ps1 | 3 +- .../Test-AzVoiceServicesNameAvailability.ps1 | 3 +- ...e-AzVoiceServicesCommunicationsGateway.ps1 | 7 +- ...-AzVoiceServicesCommunicationsTestLine.ps1 | 7 +- .../api/Models/CommunicationsGateway.cs | 50 +- .../Models/CommunicationsGatewayProperties.cs | 2 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/Resource.cs | 30 +- .../api/Models/ServiceRegionProperties.cs | 2 +- .../generated/api/Models/TestLine.cs | 44 +- .../generated/api/Models/TrackedResource.cs | 42 +- ...cesCommunicationsGateway_CreateExpanded.cs | 33 +- ...unicationsGateway_CreateViaJsonFilePath.cs | 33 +- ...mmunicationsGateway_CreateViaJsonString.cs | 33 +- ...esCommunicationsTestLine_CreateExpanded.cs | 33 +- ...iaIdentityCommunicationsGatewayExpanded.cs | 33 +- ...nicationsTestLine_CreateViaJsonFilePath.cs | 33 +- ...municationsTestLine_CreateViaJsonString.cs | 33 +- ...iceServicesCommunicationsGateway_Delete.cs | 18 +- ...CommunicationsGateway_DeleteViaIdentity.cs | 18 +- ...ceServicesCommunicationsTestLine_Delete.cs | 18 +- ...ommunicationsTestLine_DeleteViaIdentity.cs | 18 +- ..._DeleteViaIdentityCommunicationsGateway.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 +- .../Get-AzWeightsAndBiasesInstance.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 3 +- ...rassignedidentitiesAdditionalproperties.cs | 4 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../api/Models/InstanceProperties.cs | 4 +- .../generated/api/Models/InstanceResource.cs | 60 ++- .../generated/api/Models/Operation.cs | 8 +- .../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 +- .../Get-AzWindowsIotServicesDevice.ps1 | 3 +- .../New-AzWindowsIotServicesDevice.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 20 +- .../Remove-AzWindowsIotServicesDevice.ps1 | 3 +- .../Update-AzWindowsIotServicesDevice.ps1 | 7 +- .../generated/api/Models/DeviceService.cs | 8 +- .../generated/api/Models/ProxyResource.cs | 6 +- .../generated/api/Models/TrackedResource.cs | 6 +- .../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-AzWorkloadsMonitor.ps1 | 3 +- .../Get-AzWorkloadsProviderInstance.ps1 | 3 +- .../Get-AzWorkloadsSapLandscapeMonitor.ps1 | 3 +- .../exports/New-AzWorkloadsMonitor.ps1 | 3 +- .../New-AzWorkloadsProviderInstance.ps1 | 3 +- .../New-AzWorkloadsSapLandscapeMonitor.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 36 +- .../exports/Remove-AzWorkloadsMonitor.ps1 | 3 +- .../Remove-AzWorkloadsProviderInstance.ps1 | 3 +- .../Remove-AzWorkloadsSapLandscapeMonitor.ps1 | 3 +- .../exports/Update-AzWorkloadsMonitor.ps1 | 3 +- .../Update-AzWorkloadsProviderInstance.ps1 | 3 +- .../Update-AzWorkloadsSapLandscapeMonitor.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../Get-AzWorkloadsSapApplicationInstance.ps1 | 3 +- .../Get-AzWorkloadsSapCentralInstance.ps1 | 3 +- .../Get-AzWorkloadsSapDatabaseInstance.ps1 | 3 +- .../Get-AzWorkloadsSapVirtualInstance.ps1 | 3 +- ...Invoke-AzWorkloadsSapDiskConfiguration.ps1 | 3 +- ...oke-AzWorkloadsSapSizingRecommendation.ps1 | 3 +- .../Invoke-AzWorkloadsSapSupportedSku.ps1 | 3 +- .../New-AzWorkloadsSapVirtualInstance.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 63 +-- .../Remove-AzWorkloadsSapVirtualInstance.ps1 | 3 +- ...tart-AzWorkloadsSapApplicationInstance.ps1 | 3 +- .../Start-AzWorkloadsSapCentralInstance.ps1 | 3 +- .../Start-AzWorkloadsSapDatabaseInstance.ps1 | 3 +- .../Start-AzWorkloadsSapVirtualInstance.ps1 | 3 +- ...Stop-AzWorkloadsSapApplicationInstance.ps1 | 3 +- .../Stop-AzWorkloadsSapCentralInstance.ps1 | 3 +- .../Stop-AzWorkloadsSapDatabaseInstance.ps1 | 3 +- .../Stop-AzWorkloadsSapVirtualInstance.ps1 | 3 +- ...date-AzWorkloadsSapApplicationInstance.ps1 | 3 +- .../Update-AzWorkloadsSapCentralInstance.ps1 | 3 +- .../Update-AzWorkloadsSapDatabaseInstance.ps1 | 3 +- .../Update-AzWorkloadsSapVirtualInstance.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../Properties/AssemblyInfo.cs | 6 +- .../ServiceBus.Autorest/docs/Az.ServiceBus.md | 14 +- .../New-AzServiceBusGeoDRConfiguration.md | 4 +- .../docs/New-AzServiceBusQueue.md | 4 +- .../docs/New-AzServiceBusRule.md | 4 +- .../docs/New-AzServiceBusSubscription.md | 4 +- .../docs/New-AzServiceBusTopic.md | 4 +- .../docs/Start-AzServiceBusMigration.md | 4 +- .../ServiceBus/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 9 +- .../docs/Az.ServiceLinker.md | 8 +- ...rviceLinkerConfigurationForContainerApp.md | 4 +- ...erviceLinkerConfigurationForSpringCloud.md | 4 +- ...t-AzServiceLinkerConfigurationForWebApp.md | 4 +- .../Remove-AzServiceLinkerForSpringcloud.md | 21 +- .../ServiceLinker/AutorestUpgradeLog.md | 2 + .../Site.Autorest/Properties/AssemblyInfo.cs | 9 +- src/Site/Site.Autorest/docs/Az.Site.md | 2 +- src/Site/Site.Autorest/test/loadEnv.ps1 | 17 +- src/Site/Site/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 26 + src/Sphere/Sphere.Autorest/docs/Az.Sphere.md | 2 +- src/Sphere/Sphere/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.SpringCloud.md | 40 +- .../docs/New-AzSpringCloud.md | 4 +- .../docs/New-AzSpringCloudApp.md | 4 +- .../docs/New-AzSpringCloudAppBinding.md | 4 +- .../docs/New-AzSpringCloudAppCustomDomain.md | 4 +- .../docs/New-AzSpringCloudAppDeployment.md | 4 +- .../New-AzSpringCloudBuildServiceAgentPool.md | 4 +- .../New-AzSpringCloudBuildServiceBuilder.md | 4 +- .../docs/New-AzSpringCloudBuildpackBinding.md | 4 +- .../docs/New-AzSpringCloudCertificate.md | 4 +- .../New-AzSpringCloudConfigurationService.md | 4 +- .../docs/New-AzSpringCloudRegistry.md | 4 +- .../Update-AzSpringCloudAppCustomDomain.md | 4 +- ...date-AzSpringCloudBuildServiceAgentPool.md | 4 +- ...Update-AzSpringCloudBuildServiceBuilder.md | 4 +- .../Update-AzSpringCloudBuildpackBinding.md | 4 +- .../docs/Update-AzSpringCloudCertificate.md | 4 +- .../docs/Update-AzSpringCloudConfigServer.md | 4 +- ...pdate-AzSpringCloudConfigurationService.md | 4 +- .../Update-AzSpringCloudMonitoringSetting.md | 4 +- .../SpringCloud/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 26 + .../StackHCIVM.Autorest/docs/Az.StackHCIVM.md | 2 +- .../StackHCIVM/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../custom/Az.StandbyPool.custom.psm1 | 4 +- .../StandbyPool.Autorest/custom/README.md | 8 +- .../docs/Az.StandbyPool.md | 10 +- .../docs/New-AzStandbyContainerGroupPool.md | 4 +- .../docs/New-AzStandbyVMPool.md | 4 +- .../StandbyPool.Autorest/docs/README.md | 4 +- .../Update-AzStandbyContainerGroupPool.md | 4 +- .../docs/Update-AzStandbyVMPool.md | 4 +- .../StandbyPool.Autorest/resources/README.md | 11 - .../StandbyPool.Autorest/test/README.md | 2 +- .../StandbyPool/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../Storage.Autorest/docs/Az.Storage.md | 2 +- .../Storage.Autorest/resources/README.md | 11 - src/Storage/Storage/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 10 +- .../docs/Az.StorageAction.md | 2 +- .../docs/Update-AzStorageActionTask.md | 2 +- .../resources/README.md | 11 - .../StorageAction/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 16 +- .../docs/Az.StorageCache.md | 2 +- .../StorageCache.Autorest/resources/README.md | 11 - .../StorageCache/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 7 +- .../docs/Az.StorageMover.md | 2 +- .../StorageMover.Autorest/resources/README.md | 11 - .../StorageMover/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.StreamAnalytics.md | 2 +- .../resources/README.md | 11 - .../StreamAnalytics/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.Subscription.md | 2 +- .../Subscription.Autorest/resources/README.md | 11 - .../Subscription/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 26 + .../Support.Autorest/docs/Az.Support.md | 2 +- src/Support/Support/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 26 + .../New-AzTerraformExportQueryObject.ps1 | 1 + ...w-AzTerraformExportResourceGroupObject.ps1 | 1 + .../New-AzTerraformExportResourceObject.ps1 | 1 + .../Terraform.Autorest/docs/Az.Terraform.md | 2 +- src/Terraform/Terraform/AutorestUpgradeLog.md | 2 + .../TrustedSigning.Autorest/.gitignore | 1 - .../Properties/AssemblyInfo.cs | 34 +- .../docs/Az.TrustedSigning.md | 8 +- .../docs/New-AzTrustedSigningAccount.md | 4 +- .../New-AzTrustedSigningCertificateProfile.md | 4 +- .../docs/Update-AzTrustedSigningAccount.md | 4 +- .../resources/README.md | 11 - .../TrustedSigning/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- src/VMware/VMware.Autorest/docs/Az.VMware.md | 2 +- .../docs/New-AzVMwareAuthorization.md | 4 +- .../docs/Update-AzVMwarePrivateCloud.md | 2 +- .../VMware.Autorest/resources/README.md | 11 - src/VMware/VMware/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.VoiceServices.md | 10 +- ...ew-AzVoiceServicesCommunicationsGateway.md | 4 +- ...w-AzVoiceServicesCommunicationsTestLine.md | 4 +- ...te-AzVoiceServicesCommunicationsGateway.md | 4 +- ...e-AzVoiceServicesCommunicationsTestLine.md | 4 +- .../resources/README.md | 11 - .../VoiceServices/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 10 +- .../custom/Az.WeightsAndBiases.custom.psm1 | 4 +- .../custom/README.md | 8 +- .../docs/Az.WeightsAndBiases.md | 2 +- .../WeightsAndBiases.Autorest/docs/README.md | 4 +- .../resources/README.md | 11 - .../WeightsAndBiases.Autorest/test/README.md | 2 +- .../WeightsAndBiases/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.WindowsIotServices.md | 6 +- .../docs/New-AzWindowsIotServicesDevice.md | 4 +- .../docs/Update-AzWindowsIotServicesDevice.md | 4 +- .../resources/README.md | 11 - .../WindowsIotServices/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../Monitors.Autorest/docs/Az.Monitors.md | 2 +- .../docs/Update-AzWorkloadsMonitor.md | 2 +- .../Update-AzWorkloadsProviderInstance.md | 2 +- .../Monitors.Autorest/resources/README.md | 11 - .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.SapVirtualInstance.md | 2 +- .../Update-AzWorkloadsSapVirtualInstance.md | 2 +- .../resources/README.md | 11 - src/Workloads/Workloads/AutorestUpgradeLog.md | 2 + 1746 files changed, 8987 insertions(+), 21609 deletions(-) delete mode 100644 generated/Sphere/Sphere.Autorest/Properties/AssemblyInfo.cs rename {src/ServiceBus/ServiceBus.Autorest => generated/Sphere/Sphere.Autorest}/resources/README.md (100%) delete mode 100644 generated/StackHCIVM/StackHCIVM.Autorest/Properties/AssemblyInfo.cs rename {src/ServiceLinker/ServiceLinker.Autorest => generated/StackHCIVM/StackHCIVM.Autorest}/resources/README.md (100%) delete mode 100644 generated/Support/Support.Autorest/Properties/AssemblyInfo.cs rename {src/Site/Site.Autorest => generated/Support/Support.Autorest}/resources/README.md (100%) delete mode 100644 generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs rename {src/SpringCloud/SpringCloud.Autorest => generated/Terraform/Terraform.Autorest}/resources/README.md (100%) create mode 100644 src/ServiceBus/ServiceBus/AutorestUpgradeLog.md create mode 100644 src/ServiceLinker/ServiceLinker/AutorestUpgradeLog.md create mode 100644 src/Site/Site/AutorestUpgradeLog.md create mode 100644 src/Sphere/Sphere.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Sphere/Sphere/AutorestUpgradeLog.md create mode 100644 src/SpringCloud/SpringCloud/AutorestUpgradeLog.md create mode 100644 src/StackHCIVM/StackHCIVM.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/StackHCIVM/StackHCIVM/AutorestUpgradeLog.md delete mode 100644 src/StandbyPool/StandbyPool.Autorest/resources/README.md create mode 100644 src/StandbyPool/StandbyPool/AutorestUpgradeLog.md delete mode 100644 src/Storage/Storage.Autorest/resources/README.md create mode 100644 src/Storage/Storage/AutorestUpgradeLog.md delete mode 100644 src/StorageAction/StorageAction.Autorest/resources/README.md create mode 100644 src/StorageAction/StorageAction/AutorestUpgradeLog.md delete mode 100644 src/StorageCache/StorageCache.Autorest/resources/README.md create mode 100644 src/StorageCache/StorageCache/AutorestUpgradeLog.md delete mode 100644 src/StorageMover/StorageMover.Autorest/resources/README.md create mode 100644 src/StorageMover/StorageMover/AutorestUpgradeLog.md delete mode 100644 src/StreamAnalytics/StreamAnalytics.Autorest/resources/README.md create mode 100644 src/StreamAnalytics/StreamAnalytics/AutorestUpgradeLog.md delete mode 100644 src/Subscription/Subscription.Autorest/resources/README.md create mode 100644 src/Subscription/Subscription/AutorestUpgradeLog.md create mode 100644 src/Support/Support.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Support/Support/AutorestUpgradeLog.md create mode 100644 src/Terraform/Terraform.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Terraform/Terraform/AutorestUpgradeLog.md delete mode 100644 src/TrustedSigning/TrustedSigning.Autorest/resources/README.md create mode 100644 src/TrustedSigning/TrustedSigning/AutorestUpgradeLog.md delete mode 100644 src/VMware/VMware.Autorest/resources/README.md create mode 100644 src/VMware/VMware/AutorestUpgradeLog.md delete mode 100644 src/VoiceServices/VoiceServices.Autorest/resources/README.md create mode 100644 src/VoiceServices/VoiceServices/AutorestUpgradeLog.md delete mode 100644 src/WeightsAndBiases/WeightsAndBiases.Autorest/resources/README.md create mode 100644 src/WeightsAndBiases/WeightsAndBiases/AutorestUpgradeLog.md delete mode 100644 src/WindowsIotServices/WindowsIotServices.Autorest/resources/README.md create mode 100644 src/WindowsIotServices/WindowsIotServices/AutorestUpgradeLog.md delete mode 100644 src/Workloads/Monitors.Autorest/resources/README.md delete mode 100644 src/Workloads/SapVirtualInstance.Autorest/resources/README.md create mode 100644 src/Workloads/Workloads/AutorestUpgradeLog.md diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/Approve-AzServiceBusPrivateEndpointConnection.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Approve-AzServiceBusPrivateEndpointConnection.ps1 index ed3762ef44ae..a22805541f6d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Approve-AzServiceBusPrivateEndpointConnection.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Approve-AzServiceBusPrivateEndpointConnection.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/ServiceBus/ServiceBus.Autorest/exports/Complete-AzServiceBusMigration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Complete-AzServiceBusMigration.ps1 index 10f7452c614f..6534208dd156 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Complete-AzServiceBusMigration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Complete-AzServiceBusMigration.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/ServiceBus/ServiceBus.Autorest/exports/Deny-AzServiceBusPrivateEndpointConnection.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Deny-AzServiceBusPrivateEndpointConnection.ps1 index 2e5c2c3267de..d65a9d9ede82 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Deny-AzServiceBusPrivateEndpointConnection.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Deny-AzServiceBusPrivateEndpointConnection.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusAuthorizationRule.ps1 index 58b99b4eaaf0..6783e4d6479e 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusAuthorizationRule.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusGeoDRConfiguration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusGeoDRConfiguration.ps1 index f2ceeabd88cd..a29ba80bf6ff 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusGeoDRConfiguration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusGeoDRConfiguration.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusKey.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusKey.ps1 index b205a1dee42d..60b9699e6543 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusKey.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusKey.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusMigration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusMigration.ps1 index 7b7e8bc9ed7d..8817934cbd06 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusMigration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusMigration.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNamespace.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNamespace.ps1 index e3fbf8d2a71e..c84d36f2798a 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNamespace.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNamespace.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNetworkRuleSet.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNetworkRuleSet.ps1 index 80e3d09ec614..f1b88da03ea5 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNetworkRuleSet.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusNetworkRuleSet.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateEndpointConnection.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateEndpointConnection.ps1 index 692147409d8d..59f175c78159 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateEndpointConnection.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateEndpointConnection.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateLink.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateLink.ps1 index 546382eaa5f2..9b604df50973 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateLink.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusPrivateLink.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusQueue.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusQueue.ps1 index 7fb7f825f611..72d690ace141 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusQueue.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusQueue.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusRule.ps1 index 548aa35b96c3..b108d0aecb77 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusRule.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusSubscription.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusSubscription.ps1 index 11cea3270855..e0df1b59d482 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusSubscription.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusSubscription.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/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusTopic.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusTopic.ps1 index 9a08608564fd..c177624bacba 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusTopic.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Get-AzServiceBusTopic.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/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusAuthorizationRule.ps1 index a6ace4c44c14..b3100220db5e 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusAuthorizationRule.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/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusGeoDRConfiguration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusGeoDRConfiguration.ps1 index e939bbd8b934..dd0ef6cbe5f1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusGeoDRConfiguration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusGeoDRConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Description -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Example New-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace "/subscriptions/0000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace" @@ -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/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusKey.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusKey.ps1 index cbc4f3c1ca14..7f577a8c0469 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusKey.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusKey.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/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusNamespace.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusNamespace.ps1 index e0d6f193eadc..e846962bcc52 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusNamespace.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusNamespace.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/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusQueue.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusQueue.ps1 index 718fa844e1ce..36dcdadc3501 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusQueue.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusQueue.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Description -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Example New-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 5) -EnablePartitioning @@ -299,8 +299,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusRule.ps1 index a56d6096ce88..8161f4ea2dab 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusRule.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new rule and create an existing rule +Create a new rule and create an existing rule .Description -create a new rule and create an existing rule +Create a new rule and create an existing rule .Example New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid .Example @@ -380,8 +380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusSubscription.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusSubscription.ps1 index 1f0b173c3d6e..5050e5f65cd3 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusSubscription.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a topic subscription. +Create a topic subscription. .Description -create a topic subscription. +Create a topic subscription. .Example New-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 6) -EnableBatchedOperations @@ -338,8 +338,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusTopic.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusTopic.ps1 index cb7b3083441c..ca4862e6e514 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusTopic.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/New-AzServiceBusTopic.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a topic in the specified namespace. +Create a topic in the specified namespace. .Description -create a topic in the specified namespace. +Create a topic in the specified namespace. .Example New-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 18) -EnableBatchedOperations @@ -254,8 +254,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/ProxyCmdletDefinitions.ps1 index 8a6b373c251a..bed6a5c37a87 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -387,8 +386,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -602,8 +600,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -1041,8 +1037,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1289,8 +1284,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1477,8 +1471,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1736,8 +1729,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2053,8 +2045,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2346,8 +2337,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2609,8 +2599,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2698,9 +2687,9 @@ end { <# .Synopsis -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Description -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Example New-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace "/subscriptions/0000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace" @@ -2860,8 +2849,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2948,10 +2936,10 @@ end { <# .Synopsis -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Description -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Example New-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 5) -EnablePartitioning @@ -3231,8 +3219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3319,9 +3306,9 @@ end { <# .Synopsis -create a new rule and create an existing rule +Create a new rule and create an existing rule .Description -create a new rule and create an existing rule +Create a new rule and create an existing rule .Example New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid .Example @@ -3683,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) { @@ -3775,9 +3761,9 @@ end { <# .Synopsis -create a topic subscription. +Create a topic subscription. .Description -create a topic subscription. +Create a topic subscription. .Example New-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 6) -EnableBatchedOperations @@ -4097,8 +4083,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4187,9 +4172,9 @@ end { <# .Synopsis -create a topic in the specified namespace. +Create a topic in the specified namespace. .Description -create a topic in the specified namespace. +Create a topic in the specified namespace. .Example New-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 18) -EnableBatchedOperations @@ -4425,8 +4410,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4669,8 +4653,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4886,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) { @@ -5123,8 +5105,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5381,8 +5362,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5628,8 +5608,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5930,8 +5909,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6207,8 +6185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6455,8 +6432,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6543,9 +6519,9 @@ end { <# .Synopsis -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Description -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Example Start-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -PostMigrationName myStandardNamespace2 -TargetNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPremiumNamespace @@ -6664,8 +6640,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6879,8 +6854,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7117,8 +7091,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7355,8 +7328,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7606,8 +7578,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7833,8 +7804,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8057,8 +8027,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8403,8 +8372,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8835,8 +8803,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9199,8 +9166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9458,8 +9424,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9688,8 +9653,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9916,8 +9880,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10228,8 +10191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10499,8 +10461,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10820,8 +10781,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11158,8 +11118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11469,8 +11428,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11763,8 +11721,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11965,8 +11922,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusAuthorizationRule.ps1 index d315cdcab9ae..a20f2bf5ea87 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusAuthorizationRule.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusGeoDRConfiguration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusGeoDRConfiguration.ps1 index 95481f4f085d..ccf63320323b 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusGeoDRConfiguration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusGeoDRConfiguration.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusMigration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusMigration.ps1 index 8d85faa46e57..a9cdffaa9207 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusMigration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusMigration.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusNamespace.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusNamespace.ps1 index 4167aa913f56..ec3f3c516d82 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusNamespace.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusNamespace.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusPrivateEndpointConnection.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusPrivateEndpointConnection.ps1 index fbad0c090ecc..39eed11a0432 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusPrivateEndpointConnection.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusPrivateEndpointConnection.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusQueue.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusQueue.ps1 index 29ca5c42423f..cbd11cae1b0d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusQueue.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusQueue.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusRule.ps1 index a9d50ddd986f..f69e14883169 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusRule.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusSubscription.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusSubscription.ps1 index b890d56a5122..c7c70fc98f09 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusSubscription.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusSubscription.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/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusTopic.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusTopic.ps1 index 5a66ea60ac20..b5df6f6b86ba 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusTopic.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Remove-AzServiceBusTopic.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusAuthorizationRule.ps1 index 4461490d0841..2a891f6ef63c 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusAuthorizationRule.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1 index 27a23f4848fc..1775d901f198 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationBreakPair.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationFailOver.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationFailOver.ps1 index ccbdf77898e9..401b08a8e064 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationFailOver.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusGeoDRConfigurationFailOver.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNamespace.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNamespace.ps1 index 459bd8289c68..4054ac4bef3d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNamespace.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNamespace.ps1 @@ -241,8 +241,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNetworkRuleSet.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNetworkRuleSet.ps1 index 084611ddd0d5..92fcfece71cb 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNetworkRuleSet.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusNetworkRuleSet.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusQueue.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusQueue.ps1 index 2e8ed201ba7e..122046adcdc4 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusQueue.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusQueue.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusRule.ps1 index 5d76cebff643..73d3a179cd92 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusRule.ps1 @@ -267,8 +267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusSubscription.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusSubscription.ps1 index d208939a7810..7bb199e0701f 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusSubscription.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusSubscription.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/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusTopic.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusTopic.ps1 index ef712ee005d0..03742c620405 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusTopic.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Set-AzServiceBusTopic.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/ServiceBus/ServiceBus.Autorest/exports/Start-AzServiceBusMigration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Start-AzServiceBusMigration.ps1 index 417f9c17caa7..65864dc88bb8 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Start-AzServiceBusMigration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Start-AzServiceBusMigration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Description -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Example Start-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -PostMigrationName myStandardNamespace2 -TargetNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPremiumNamespace @@ -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/ServiceBus/ServiceBus.Autorest/exports/Stop-AzServiceBusMigration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Stop-AzServiceBusMigration.ps1 index f0b282d4b062..f716fd5bdf65 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Stop-AzServiceBusMigration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Stop-AzServiceBusMigration.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/ServiceBus/ServiceBus.Autorest/exports/Test-AzServiceBusName.ps1 b/generated/ServiceBus/ServiceBus.Autorest/exports/Test-AzServiceBusName.ps1 index 89e77692c9ed..11ca95bb6cdf 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/exports/Test-AzServiceBusName.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/exports/Test-AzServiceBusName.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/ServiceBus/ServiceBus.Autorest/generated/api/Models/ArmDisasterRecovery.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ArmDisasterRecovery.cs index c1f5b149ab86..fd04486c7851 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ArmDisasterRecovery.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ArmDisasterRecovery.cs @@ -34,31 +34,49 @@ public partial class ArmDisasterRecovery : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; } /// Internal Acessors for PendingReplicationOperationsCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.PendingReplicationOperationsCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).PendingReplicationOperationsCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).PendingReplicationOperationsCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.PendingReplicationOperationsCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).PendingReplicationOperationsCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).PendingReplicationOperationsCount = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ArmDisasterRecoveryProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Role - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).Role = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryPropertiesInternal)Property).Role = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IArmDisasterRecoveryInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -108,27 +126,27 @@ public partial class ArmDisasterRecovery : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ErrorResponse.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ErrorResponse.cs index c123a1b27ab0..ee694346c305 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ErrorResponse.cs @@ -38,22 +38,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseError Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ErrorResponseError()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IErrorResponseErrorInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/MigrationConfigProperties.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/MigrationConfigProperties.cs index 626ef17bf874..1ed786226379 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/MigrationConfigProperties.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/MigrationConfigProperties.cs @@ -30,31 +30,49 @@ public partial class MigrationConfigProperties : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; } /// Internal Acessors for MigrationState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.MigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).MigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).MigrationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.MigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).MigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).MigrationState = value ?? null; } /// Internal Acessors for PendingReplicationOperationsCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.PendingReplicationOperationsCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).PendingReplicationOperationsCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).PendingReplicationOperationsCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.PendingReplicationOperationsCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).PendingReplicationOperationsCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).PendingReplicationOperationsCount = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1 Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.MigrationConfigProperties1()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties1Internal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigPropertiesInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// /// State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, @@ -99,27 +117,27 @@ public partial class MigrationConfigProperties : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// Existing premium Namespace ARM Id name which has no entities, will be used for migration diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/NetworkRuleSet.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/NetworkRuleSet.cs index 74a3671e7a1d..df3315e1b208 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/NetworkRuleSet.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/NetworkRuleSet.cs @@ -43,17 +43,35 @@ public partial class NetworkRuleSet : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.INetworkRuleSetInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -85,27 +103,27 @@ public partial class NetworkRuleSet : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Value that indicates whether Trusted Service Access is Enabled or not. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Operation.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Operation.cs index 38cde7fb7ae1..2156ef851de8 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Operation.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Operation.cs @@ -48,16 +48,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/PrivateEndpointConnection.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/PrivateEndpointConnection.cs index 9db0e7e38fad..54427905e7af 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/PrivateEndpointConnection.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/PrivateEndpointConnection.cs @@ -38,10 +38,10 @@ public partial class PrivateEndpointConnection : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; } /// Internal Acessors for PrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for PrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IConnectionState Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IConnectionState Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } } @@ -49,17 +49,35 @@ public partial class PrivateEndpointConnection : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnectionInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -93,27 +111,27 @@ public partial class PrivateEndpointConnection : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ResourceNamespacePatch.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ResourceNamespacePatch.cs index 652f9c49fd7e..24c3d3f71752 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ResourceNamespacePatch.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/ResourceNamespacePatch.cs @@ -31,13 +31,13 @@ public partial class ResourceNamespacePatch : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type = value ?? null; } /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Rule.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Rule.cs index b20a01fe95a5..64b6eca09203 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Rule.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/Rule.cs @@ -72,32 +72,50 @@ public partial class Rule : public string MessageId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).CorrelationFilterMessageId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).CorrelationFilterMessageId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IAction Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IAction Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).Action = value ?? null /* model class */; } /// Internal Acessors for CorrelationFilter - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ICorrelationFilter Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.CorrelationFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).CorrelationFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).CorrelationFilter = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ICorrelationFilter Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.CorrelationFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).CorrelationFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).CorrelationFilter = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleproperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Ruleproperties()); set { {_property = value;} } } /// Internal Acessors for SqlFilter - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISqlFilter Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SqlFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).SqlFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).SqlFilter = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISqlFilter Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SqlFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).SqlFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRulepropertiesInternal)Property).SqlFilter = value ?? null /* model class */; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IRuleInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; } @@ -148,27 +166,27 @@ public partial class Rule : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Address to send to. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbAuthorizationRule.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbAuthorizationRule.cs index efb4499a139b..36dbfea9686f 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbAuthorizationRule.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbAuthorizationRule.cs @@ -30,16 +30,16 @@ public partial class SbAuthorizationRule : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbAuthorizationRuleProperties()); set { {_property = value;} } } @@ -47,6 +47,24 @@ public partial class SbAuthorizationRule : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRuleInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; } @@ -75,27 +93,27 @@ public partial class SbAuthorizationRule : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespace.cs index 71073557c621..89eb0fd4e098 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespace.cs @@ -56,59 +56,77 @@ public partial class SbNamespace : /// The Geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Identifier for Azure Insights metrics [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] public string MetricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).MetricId; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for CreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for Encryption - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Encryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Encryption = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for MetricId - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.MetricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).MetricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).MetricId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.MetricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).MetricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).MetricId = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbNamespaceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for ServiceBusEndpoint - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.ServiceBusEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ServiceBusEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ServiceBusEndpoint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.ServiceBusEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ServiceBusEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).ServiceBusEndpoint = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSku Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbSku()); set { {_sku = value;} } } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for UpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).UpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespacePropertiesInternal)Property).UpdatedAt = value ?? default(global::System.DateTime); } /// The minimum TLS version for the cluster to support, e.g. '1.2' [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] @@ -198,27 +216,27 @@ public partial class SbNamespace : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Resource tags [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespaceUpdateParameters.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespaceUpdateParameters.cs index 4136acc9b135..c94f9b2ca91f 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespaceUpdateParameters.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbNamespaceUpdateParameters.cs @@ -80,49 +80,49 @@ public partial class SbNamespaceUpdateParameters : public string MetricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).MetricId; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resourceNamespacePatch).Type = value ?? null; } /// Internal Acessors for CreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for Encryption - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Encryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Encryption = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for MetricId - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.MetricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).MetricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).MetricId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.MetricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).MetricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).MetricId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbNamespaceUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for ServiceBusEndpoint - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.ServiceBusEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ServiceBusEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ServiceBusEndpoint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.ServiceBusEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ServiceBusEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).ServiceBusEndpoint = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSku Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbSku()); set { {_sku = value;} } } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for UpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).UpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdateParametersInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespaceUpdatePropertiesInternal)Property).UpdatedAt = value ?? default(global::System.DateTime); } /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueue.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueue.cs index 34d4c582d0be..38cd13bdfc51 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueue.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueue.cs @@ -141,55 +141,73 @@ public partial class SbQueue : public long? MessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).MessageCount; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for AccessedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.AccessedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).AccessedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).AccessedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.AccessedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).AccessedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).AccessedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for CountDetail - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetail = value ?? null /* model class */; } /// Internal Acessors for CountDetailActiveMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailActiveMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailActiveMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailScheduledMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailScheduledMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailScheduledMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CountDetailTransferMessageCount = value ?? default(long); } /// Internal Acessors for CreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for MessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.MessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).MessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).MessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.MessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).MessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).MessageCount = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbQueueProperties()); set { {_property = value;} } } /// Internal Acessors for SizeInByte - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SizeInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).SizeInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).SizeInByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SizeInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).SizeInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).SizeInByte = value ?? default(long); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for UpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).UpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueueInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal)Property).UpdatedAt = value ?? default(global::System.DateTime); } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -231,27 +249,27 @@ public partial class SbQueue : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueueProperties.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueueProperties.cs index c84e968eb1b0..5ed8879cfd34 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueueProperties.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbQueueProperties.cs @@ -187,19 +187,19 @@ public partial class SbQueueProperties : Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetail { get => (this._countDetail = this._countDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.MessageCountDetails()); set { {_countDetail = value;} } } /// Internal Acessors for CountDetailActiveMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailScheduledMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount = value ?? default(long); } /// Internal Acessors for CreatedAt global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbQueuePropertiesInternal.CreatedAt { get => this._createdAt; set { {_createdAt = value;} } } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscription.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscription.cs index c51deca74ed1..943140ba7bd7 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscription.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscription.cs @@ -137,46 +137,46 @@ public partial class SbSubscription : public long? MessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).MessageCount; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for AccessedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.AccessedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).AccessedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).AccessedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.AccessedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).AccessedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).AccessedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for ClientAffineProperty - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbClientAffineProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.ClientAffineProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).ClientAffineProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).ClientAffineProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbClientAffineProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.ClientAffineProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).ClientAffineProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).ClientAffineProperty = value ?? null /* model class */; } /// Internal Acessors for CountDetail - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetail = value ?? null /* model class */; } /// Internal Acessors for CountDetailActiveMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailActiveMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailActiveMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailScheduledMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailScheduledMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailScheduledMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CountDetailTransferMessageCount = value ?? default(long); } /// Internal Acessors for CreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for MessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.MessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).MessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).MessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.MessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).MessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).MessageCount = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbSubscriptionProperties()); set { {_property = value;} } } @@ -184,8 +184,26 @@ public partial class SbSubscription : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for UpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).UpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal)Property).UpdatedAt = value ?? default(global::System.DateTime); } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -219,27 +237,27 @@ public partial class SbSubscription : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscriptionProperties.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscriptionProperties.cs index 43a8e65ffaca..da52914a3f40 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscriptionProperties.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbSubscriptionProperties.cs @@ -189,19 +189,19 @@ public partial class SbSubscriptionProperties : Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetail { get => (this._countDetail = this._countDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.MessageCountDetails()); set { {_countDetail = value;} } } /// Internal Acessors for CountDetailActiveMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailScheduledMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount = value ?? default(long); } /// Internal Acessors for CreatedAt global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbSubscriptionPropertiesInternal.CreatedAt { get => this._createdAt; set { {_createdAt = value;} } } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopic.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopic.cs index 856c21cb01f6..d181334de6b9 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopic.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopic.cs @@ -107,55 +107,73 @@ public partial class SbTopic : public int? MaxSizeInMegabytes { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).MaxSizeInMegabytes; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).MaxSizeInMegabytes = value ?? default(int); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IProxyResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for AccessedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.AccessedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).AccessedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).AccessedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.AccessedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).AccessedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).AccessedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for CountDetail - Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetail = value ?? null /* model class */; } /// Internal Acessors for CountDetailActiveMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailActiveMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailActiveMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailScheduledMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailScheduledMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailScheduledMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CountDetailTransferMessageCount = value ?? default(long); } /// Internal Acessors for CreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbTopicProperties()); set { {_property = value;} } } /// Internal Acessors for SizeInByte - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SizeInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SizeInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SizeInByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SizeInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SizeInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SizeInByte = value ?? default(long); } /// Internal Acessors for SubscriptionCount - int? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SubscriptionCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SubscriptionCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SubscriptionCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SubscriptionCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SubscriptionCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).SubscriptionCount = value ?? default(int); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for UpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).UpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicInternal.UpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).UpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal)Property).UpdatedAt = value ?? default(global::System.DateTime); } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -201,27 +219,27 @@ public partial class SbTopic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopicProperties.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopicProperties.cs index f929e3006d3f..403934f9f7b4 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopicProperties.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/SbTopicProperties.cs @@ -135,19 +135,19 @@ public partial class SbTopicProperties : Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetails Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetail { get => (this._countDetail = this._countDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.MessageCountDetails()); set { {_countDetail = value;} } } /// Internal Acessors for CountDetailActiveMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailActiveMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ActiveMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).DeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailScheduledMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailScheduledMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).ScheduledMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferDeadLetterMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailTransferDeadLetterMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferDeadLetterMessageCount = value ?? default(long); } /// Internal Acessors for CountDetailTransferMessageCount - long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CountDetailTransferMessageCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMessageCountDetailsInternal)CountDetail).TransferMessageCount = value ?? default(long); } /// Internal Acessors for CreatedAt global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbTopicPropertiesInternal.CreatedAt { get => this._createdAt; set { {_createdAt = value;} } } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/TrackedResource.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/TrackedResource.cs index d8f4f207e482..02aaec48fdfb 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/api/Models/TrackedResource.cs @@ -31,13 +31,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IResourceInternal)__resource).Type = value ?? null; } /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.PropertyOrigin.Inherited)] @@ -79,7 +79,7 @@ public partial interface ITrackedResource : { /// The Geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_Complete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_Complete.cs index db7517346173..484239a233fe 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_Complete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_Complete.cs @@ -491,7 +491,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_CompleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_CompleteViaIdentity.cs index 7f6d32c990b6..3fba91985639 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_CompleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/CompleteAzServiceBusMigration_CompleteViaIdentity.cs @@ -469,7 +469,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_Break.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_Break.cs index e86bf27d51e3..20f43966939c 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_Break.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_Break.cs @@ -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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs index 348b429b4da5..b36c8c213d02 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentity.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs index 7c8951c2acd1..0d3a44b45f2d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_Fail.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_Fail.cs index 41e82b67fee6..b64486f01938 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_Fail.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_Fail.cs @@ -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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailExpanded.cs index 6c7cd757fced..f748a2f67808 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailExpanded.cs @@ -523,7 +523,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentity.cs index ea760e61c27e..ca5041efc18d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentity.cs @@ -489,7 +489,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityExpanded.cs index a6a1dccf4e13..9d2778697b9c 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityExpanded.cs @@ -491,7 +491,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs index 732d150ad65c..66b3b72a3c63 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs @@ -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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespaceExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespaceExpanded.cs index dcbdb39450ba..c26a19e414f0 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespaceExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaIdentityNamespaceExpanded.cs @@ -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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonFilePath.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonFilePath.cs index a35786e506eb..b35d6458dce0 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonFilePath.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonFilePath.cs @@ -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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonString.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonString.cs index 3fb2ac33b61a..ecbdafa2e6a2 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonString.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/InvokeAzServiceBusFailDisasterRecoveryConfigOver_FailViaJsonString.cs @@ -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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateExpanded.cs index 9a22e83c2017..c564e4d14bd1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateExpanded.cs @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentity.cs index b279d2bd29b7..6b770e7e8b53 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentity.cs @@ -454,7 +454,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespace.cs index a529971051ba..139f80e00645 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespace.cs @@ -464,7 +464,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespaceExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespaceExpanded.cs index 57c547688f1f..0e4ee14d2874 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespaceExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusGeoDRConfiguration_CreateViaIdentityNamespaceExpanded.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateExpanded.cs index a41608512fc3..88a052576186 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateExpanded.cs @@ -44,18 +44,9 @@ public partial class NewAzServiceBusNamespace_CreateExpanded : 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; - /// Description of a namespace resource. private Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespace _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.SbNamespace(); - /// - /// 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; - /// Alternate name for namespace [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Alternate name for namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Body)] @@ -465,11 +456,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.NewAzServiceBusName /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -785,24 +771,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbNamespace 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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateViaIdentity.cs index ed3bca28383f..a343a96065e7 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/NewAzServiceBusNamespace_CreateViaIdentity.cs @@ -44,15 +44,6 @@ public partial class NewAzServiceBusNamespace_CreateViaIdentity : 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.NewAzServiceBusName /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.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.ServiceBus.Models.ISbNamespace 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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_Delete.cs index 06c6817fe572..4f18b4bce078 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentity.cs index 54944b602eee..e8d48effc4ba 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentity.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); } @@ -503,7 +503,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentityNamespace.cs index bc6c40757e59..958c224a78b1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusGeoDRConfiguration_DeleteViaIdentityNamespace.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); } @@ -515,7 +515,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_Delete.cs index 808a2e93d2db..572785520a55 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_DeleteViaIdentity.cs index 45cfa8b8682b..154184236626 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusMigration_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_Delete.cs index edba351a4e8a..a12fff8ec5c0 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_Delete.cs @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -537,7 +537,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentity.cs index 815dc8330fb8..673773294a73 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs index 919f11d7a6c3..3971b196365a 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespaceAuthorizationRule_DeleteViaIdentityNamespace.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_Delete.cs index fd9d0e9c29c5..f3baa298ae09 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_Delete.cs @@ -44,15 +44,6 @@ public partial class RemoveAzServiceBusNamespace_Delete : 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.RemoveAzServiceBusN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,7 +570,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -608,7 +594,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_DeleteViaIdentity.cs index 263d4f020d17..25ebc49b9cbf 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusNamespace_DeleteViaIdentity.cs @@ -44,15 +44,6 @@ public partial class RemoveAzServiceBusNamespace_DeleteViaIdentity : 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.RemoveAzServiceBusN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_Delete.cs index e27b63c403ae..74016a926562 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzServiceBusPrivateEndpointConnection_Delete : 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.RemoveAzServiceBusP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,7 +582,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -620,7 +606,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentity.cs index 03500277f0ba..bb62e96a9971 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdenti /// 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.RemoveAzServiceBusP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,7 +548,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -586,7 +572,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentityNamespace.cs index f6e496d33abd..c1835179495e 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdentityNamespace.cs @@ -41,15 +41,6 @@ public partial class RemoveAzServiceBusPrivateEndpointConnection_DeleteViaIdenti /// 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.RemoveAzServiceBusP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,7 +561,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -599,7 +585,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_Delete.cs index 763a3dc612c0..0754baa8a510 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_Delete.cs @@ -527,7 +527,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -551,7 +551,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentity.cs index 4c8e11ec964b..48050cf24fcd 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityNamespace.cs index 39125d60f025..06399c513fde 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityNamespace.cs @@ -507,7 +507,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -531,7 +531,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityQueue.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityQueue.cs index 01e078aca29f..d7d7a143bd62 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityQueue.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueueAuthorizationRule_DeleteViaIdentityQueue.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_Delete.cs index 972a1001e077..5304daca65ae 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_Delete.cs @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -537,7 +537,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentity.cs index aeb42ae15f85..bbc89e12ac4e 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentityNamespace.cs index b243d2213195..3269c6c1afc5 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusQueue_DeleteViaIdentityNamespace.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_Delete.cs index 704d748d518d..2a95b7db1d20 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_Delete.cs @@ -540,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); } @@ -564,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentity.cs index 12651670630f..1d9e777799b6 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentity.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityNamespace.cs index ebaed9ca301a..7bce41b358cd 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityNamespace.cs @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -543,7 +543,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentitySubscription.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentitySubscription.cs index af2a2fca2290..a664a94a0e61 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentitySubscription.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentitySubscription.cs @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -523,7 +523,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityTopic.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityTopic.cs index 3c9ea11c0360..258a6f9b5294 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityTopic.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusRule_DeleteViaIdentityTopic.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_Delete.cs index a8dcbe09cc94..055e56f3a157 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_Delete.cs @@ -527,7 +527,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -551,7 +551,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentity.cs index d37fb0e87000..486cf691190f 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentity.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityNamespace.cs index 9e4ee4109d68..b5335c86d339 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityNamespace.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityTopic.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityTopic.cs index 45f8737959ba..5377fdeb0ca1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityTopic.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusSubscription_DeleteViaIdentityTopic.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_Delete.cs index 2e1c48148fd7..53c2593a508d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_Delete.cs @@ -527,7 +527,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -551,7 +551,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentity.cs index 548a1342251d..8d3b31f865e1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityNamespace.cs index 34e24c515c4c..4926e0499baa 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityNamespace.cs @@ -507,7 +507,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -531,7 +531,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityTopic.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityTopic.cs index 50b117f6fa26..f6cb7c5baca3 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityTopic.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopicAuthorizationRule_DeleteViaIdentityTopic.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_Delete.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_Delete.cs index 98ee1f611546..37a330a3854e 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_Delete.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_Delete.cs @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -537,7 +537,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentity.cs index 1b1731cc994d..8759294d32ee 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentityNamespace.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentityNamespace.cs index 80ecb8a80da8..55240d788dfe 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentityNamespace.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/RemoveAzServiceBusTopic_DeleteViaIdentityNamespace.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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateExpanded.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateExpanded.cs index 9476e3b8c94d..b6ee0d5df193 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateExpanded.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateExpanded.cs @@ -42,18 +42,9 @@ public partial class StartAzServiceBusMigration_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; - /// Single item in List or Get Migration Config operation private Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IMigrationConfigProperties _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.MigrationConfigProperties(); - /// - /// 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.StartAzServiceBusMi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.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.ServiceBus.Models.IMigrationConfigProperties 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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateViaIdentity.cs index d754c6b0b6af..04e5126b8cad 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StartAzServiceBusMigration_CreateViaIdentity.cs @@ -43,15 +43,6 @@ public partial class StartAzServiceBusMigration_CreateViaIdentity : 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.ServiceBus.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Cmdlets.StartAzServiceBusMi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.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.ServiceBus.Models.IMigrationConfigProperties 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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_Revert.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_Revert.cs index 8c01241a1ad2..e932f6d38f41 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_Revert.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_Revert.cs @@ -487,7 +487,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/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_RevertViaIdentity.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_RevertViaIdentity.cs index ca41e432e878..eb1393b10b1e 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_RevertViaIdentity.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/cmdlets/StopAzServiceBusMigration_RevertViaIdentity.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/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index d590e4fb5b35..168a85e5c3c0 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ServiceBus/ServiceBus.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/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 9ceebe651d44..2a11871c110a 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ServiceBus/ServiceBus.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/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 4bdb5c9c93d4..cdbdc42d5035 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ServiceBus/ServiceBus.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/ServiceBus/ServiceBus.Autorest/generated/runtime/Context.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/Context.cs index 06bb8c533452..b74aa86cd40d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/Context.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.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/ServiceBus/ServiceBus.Autorest/generated/runtime/MessageAttribute.cs b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/MessageAttribute.cs index 3142671f3018..8f022541e82d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.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.ServiceBus" : @""; + //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/ServiceBus/ServiceBus.Autorest/generated/runtime/Properties/Resources.resx b/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ServiceBus/ServiceBus.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/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusGeoDRConfiguration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusGeoDRConfiguration.ps1 index 36e7ea2607a0..d596b20b62f1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusGeoDRConfiguration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusGeoDRConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Description -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Example New-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace "/subscriptions/0000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace" diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespace.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespace.ps1 index 00b7b1cde535..08368b1c4cd1 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespace.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespace.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -create a service namespace. +Create a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. .Description -create a service namespace. +Create a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. .Example @@ -66,7 +66,7 @@ KEYVAULTPROPERTY : Properties of KeyVault [UserAssignedIdentity ]: ARM ID of user Identity selected for encryption PARAMETER : Description of a namespace resource. - Location : The Geo-location where the resource lives + [Location ]: The Geo-location where the resource lives [Tag ]: Resource tags [(Any) ]: This indicates any property can be added to this object. [AlternateName ]: Alternate name for namespace diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespaceAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespaceAuthorizationRule.ps1 index cf09b6046b47..696e76f31e66 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespaceAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNamespaceAuthorizationRule.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create an authorization rule for a namespace. +Create an authorization rule for a namespace. .Description -create an authorization rule for a namespace. +Create an authorization rule for a namespace. .Example {{ Add code here }} .Example diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNetworkRuleSet.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNetworkRuleSet.ps1 index 1ca9ea00afae..2b6942831993 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNetworkRuleSet.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusNetworkRuleSet.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create NetworkRuleSet for a Namespace. +Create NetworkRuleSet for a Namespace. .Description -create NetworkRuleSet for a Namespace. +Create NetworkRuleSet for a Namespace. .Example {{ Add code here }} .Example diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusPrivateEndpointConnection.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusPrivateEndpointConnection.ps1 index 4ceeba58caaa..9cfce20e52e6 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusPrivateEndpointConnection.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusPrivateEndpointConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create PrivateEndpointConnections of service namespace. +Create PrivateEndpointConnections of service namespace. .Description -create PrivateEndpointConnections of service namespace. +Create PrivateEndpointConnections of service namespace. .Example {{ Add code here }} .Example diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueue.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueue.ps1 index fc3836edf428..c72156c6365f 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueue.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueue.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Description -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Example New-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 5) -EnablePartitioning diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueueAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueueAuthorizationRule.ps1 index ee0f4e9c27f3..8d63ae44c887 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueueAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusQueueAuthorizationRule.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create an authorization rule for a queue. +Create an authorization rule for a queue. .Description -create an authorization rule for a queue. +Create an authorization rule for a queue. .Example {{ Add code here }} .Example diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusRule.ps1 index fee5f1a92d18..84ffa3b3e091 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusRule.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new rule and create an existing rule +Create a new rule and create an existing rule .Description -create a new rule and create an existing rule +Create a new rule and create an existing rule .Example New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid .Example diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusSubscription.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusSubscription.ps1 index 3f07c1bfb5a8..0145e25d89b6 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusSubscription.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a topic subscription. +Create a topic subscription. .Description -create a topic subscription. +Create a topic subscription. .Example New-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 6) -EnableBatchedOperations diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopic.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopic.ps1 index 33206b2f12b5..e8c3862f7a4d 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopic.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopic.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a topic in the specified namespace. +Create a topic in the specified namespace. .Description -create a topic in the specified namespace. +Create a topic in the specified namespace. .Example New-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 18) -EnableBatchedOperations diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopicAuthorizationRule.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopicAuthorizationRule.ps1 index d972e8a8b0eb..99b78c3f9e9a 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopicAuthorizationRule.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/New-AzServiceBusTopicAuthorizationRule.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create an authorization rule for the specified topic. +Create an authorization rule for the specified topic. .Description -create an authorization rule for the specified topic. +Create an authorization rule for the specified topic. .Example {{ Add code here }} .Example diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/ProxyCmdletDefinitions.ps1 index 22602f2b0218..bf45225bfbca 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -2129,9 +2129,9 @@ end { <# .Synopsis -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Description -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) .Example New-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace "/subscriptions/0000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace" @@ -2287,9 +2287,9 @@ end { <# .Synopsis -create an authorization rule for a namespace. +Create an authorization rule for a namespace. .Description -create an authorization rule for a namespace. +Create an authorization rule for a namespace. .Example {{ Add code here }} .Example @@ -2737,11 +2737,11 @@ end { <# .Synopsis -create a service namespace. +Create a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. .Description -create a service namespace. +Create a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. .Example @@ -2787,7 +2787,7 @@ KEYVAULTPROPERTY : Properties of KeyVault [UserAssignedIdentity ]: ARM ID of user Identity selected for encryption PARAMETER : Description of a namespace resource. - Location : The Geo-location where the resource lives + [Location ]: The Geo-location where the resource lives [Tag ]: Resource tags [(Any) ]: This indicates any property can be added to this object. [AlternateName ]: Alternate name for namespace @@ -3100,9 +3100,9 @@ end { <# .Synopsis -create NetworkRuleSet for a Namespace. +Create NetworkRuleSet for a Namespace. .Description -create NetworkRuleSet for a Namespace. +Create NetworkRuleSet for a Namespace. .Example {{ Add code here }} .Example @@ -3332,9 +3332,9 @@ end { <# .Synopsis -create PrivateEndpointConnections of service namespace. +Create PrivateEndpointConnections of service namespace. .Description -create PrivateEndpointConnections of service namespace. +Create PrivateEndpointConnections of service namespace. .Example {{ Add code here }} .Example @@ -3581,9 +3581,9 @@ end { <# .Synopsis -create an authorization rule for a queue. +Create an authorization rule for a queue. .Description -create an authorization rule for a queue. +Create an authorization rule for a queue. .Example {{ Add code here }} .Example @@ -4100,10 +4100,10 @@ end { <# .Synopsis -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Description -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. .Example New-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 5) -EnablePartitioning @@ -4270,9 +4270,9 @@ end { <# .Synopsis -create a new rule and create an existing rule +Create a new rule and create an existing rule .Description -create a new rule and create an existing rule +Create a new rule and create an existing rule .Example New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid .Example @@ -4440,9 +4440,9 @@ end { <# .Synopsis -create a topic subscription. +Create a topic subscription. .Description -create a topic subscription. +Create a topic subscription. .Example New-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 6) -EnableBatchedOperations @@ -4608,9 +4608,9 @@ end { <# .Synopsis -create an authorization rule for the specified topic. +Create an authorization rule for the specified topic. .Description -create an authorization rule for the specified topic. +Create an authorization rule for the specified topic. .Example {{ Add code here }} .Example @@ -5129,9 +5129,9 @@ end { <# .Synopsis -create a topic in the specified namespace. +Create a topic in the specified namespace. .Description -create a topic in the specified namespace. +Create a topic in the specified namespace. .Example New-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 18) -EnableBatchedOperations @@ -5968,9 +5968,9 @@ end { <# .Synopsis -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Description -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Example Start-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -PostMigrationName myStandardNamespace2 -TargetNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPremiumNamespace diff --git a/generated/ServiceBus/ServiceBus.Autorest/internal/Start-AzServiceBusMigration.ps1 b/generated/ServiceBus/ServiceBus.Autorest/internal/Start-AzServiceBusMigration.ps1 index ebed520e933d..9594d1b74b23 100644 --- a/generated/ServiceBus/ServiceBus.Autorest/internal/Start-AzServiceBusMigration.ps1 +++ b/generated/ServiceBus/ServiceBus.Autorest/internal/Start-AzServiceBusMigration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Description -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace .Example Start-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -PostMigrationName myStandardNamespace2 -TargetNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPremiumNamespace diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 index 5ce7561edfae..6c4bd641c941 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -list source configurations for a linker in container app. +List source configurations for a linker in container app. .Description -list source configurations for a linker in container app. +List source configurations for a linker in container app. .Example Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List @@ -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/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 index e32566e6092f..c85042b782b4 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -list source configurations for a linker in spring cloud. +List source configurations for a linker in spring cloud. .Description -list source configurations for a linker in spring cloud. +List source configurations for a linker in spring cloud. .Example Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List @@ -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/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 index 454d35933e2c..dbdda9aea777 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -list source configurations for a linker in webapp. +List source configurations for a linker in webapp. .Description -list source configurations for a linker in webapp. +List source configurations for a linker in webapp. .Example Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List @@ -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/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1 index 8bf1d01f2532..250abfd673f6 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.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/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1 index 1b6010065faa..e77b96fff41e 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.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/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1 index 9f24b05bb8f7..f34fbe0a0807 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.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/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1 index e41214834428..266cd2d639d2 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.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/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1 index 9ef2e49ef275..6031dd3b6fcb 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1 @@ -266,8 +266,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1 index 4e93721c1bfd..e69d14c0adfa 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1 @@ -281,8 +281,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1 index 7ad4beb11b02..2177175b19f8 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1 @@ -267,8 +267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 index 34b2bb0199a9..16f37b48a032 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 @@ -62,7 +62,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] - # The name of secret in keyvault refenced by -SecretStoreKeyVaultId. + # The name of secret in keyvault referenced by -SecretStoreKeyVaultId. ${SecretNameInKeyVault} ) diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1 index 0368a5f2c26f..dbef1fd10fe1 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -184,9 +183,9 @@ end { <# .Synopsis -list source configurations for a linker in container app. +List source configurations for a linker in container app. .Description -list source configurations for a linker in container app. +List source configurations for a linker in container app. .Example Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List @@ -292,8 +291,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -378,9 +376,9 @@ end { <# .Synopsis -list source configurations for a linker in spring cloud. +List source configurations for a linker in spring cloud. .Description -list source configurations for a linker in spring cloud. +List source configurations for a linker in spring cloud. .Example Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List @@ -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) { @@ -588,9 +585,9 @@ end { <# .Synopsis -list source configurations for a linker in webapp. +List source configurations for a linker in webapp. .Description -list source configurations for a linker in webapp. +List source configurations for a linker in webapp. .Example Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List @@ -696,8 +693,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -925,8 +921,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1171,8 +1166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1405,8 +1399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2084,8 +2077,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2441,8 +2433,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2787,8 +2778,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2925,7 +2915,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] - # The name of secret in keyvault refenced by -SecretStoreKeyVaultId. + # The name of secret in keyvault referenced by -SecretStoreKeyVaultId. ${SecretNameInKeyVault} ) @@ -3538,8 +3528,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +3777,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4028,8 +4016,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4259,8 +4246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4503,8 +4489,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4737,8 +4722,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5022,8 +5006,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5320,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) { @@ -5608,8 +5590,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1 index cbd5a14fef20..685872e63b48 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.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/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1 index e5193d657ecc..a5b39cf21189 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.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/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1 index a2bd9c67240e..8d7e36625708 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.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/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1 index dfe6268a1fab..a5bd5410e611 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.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/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1 index ec76e53b6977..999525b84b7e 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.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/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1 index 32e8ead2d5b0..ac24943d031f 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.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/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1 index f35347b09378..a9c8f2271934 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.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/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1 index 883e60274b29..c72057eb071a 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.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/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1 index fb2056242d2f..8b64a87a6555 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs index e2124b443122..26960a4cde09 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzServiceLinkerDryrun_CreateExpanded : 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 dryrun job resource private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunResource(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.NewAzServiceLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.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.ServiceLinker.Models.IDryrunResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateViaIdentityExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateViaIdentityExpanded.cs index ba9b262f7011..8c081fb7d4fe 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateViaIdentityExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzServiceLinkerDryrun_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 dryrun job resource private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunResource(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -208,11 +199,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.NewAzServiceLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -544,24 +530,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs index 8d6172013b92..db4b9e891d3a 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzServiceLinker_CreateExpanded : 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; - /// Linker of source and target resource private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerResource(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -483,11 +474,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.NewAzServiceLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -815,24 +801,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateViaIdentityExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateViaIdentityExpanded.cs index 36b79d749180..ce72abc48c16 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateViaIdentityExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzServiceLinker_CreateViaIdentityExpanded : 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; - /// Linker of source and target resource private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerResource(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -453,11 +444,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.NewAzServiceLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -801,24 +787,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs index 4196b394f402..b544746f5e4c 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_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); } @@ -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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs index 9e647b7bf155..86413d69b159 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinkerDryrun_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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_Delete.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_Delete.cs index b95a1339c79a..5d7f6118d3c1 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_Delete.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzServiceLinker_Delete : global::System.Management.Au /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.RemoveAzServiceL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs index 94991d3a2905..74eae37b1f50 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzServiceLinker_DeleteViaIdentity : 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.RemoveAzServiceL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,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); } @@ -575,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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_Validate.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_Validate.cs index fbc07477c728..b75e02f8e943 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_Validate.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_Validate.cs @@ -41,15 +41,6 @@ public partial class TestAzServiceLinker_Validate : global::System.Management.Au /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.TestAzServiceLin /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,24 +535,7 @@ public TestAzServiceLinker_Validate() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateOperationResult 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs index ad054bbb66ed..47bd53e918f4 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class TestAzServiceLinker_ValidateViaIdentity : 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -204,11 +195,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.TestAzServiceLin /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -540,24 +526,7 @@ public TestAzServiceLinker_ValidateViaIdentity() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateOperationResult 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs index 80a3ea12c3a2..5f6df5692d0f 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzServiceLinkerDryrun_UpdateExpanded : 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 dryrun job to be updated. private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunPatch(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.UpdateAzServiceL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -552,24 +538,7 @@ public UpdateAzServiceLinkerDryrun_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs index fd8c89e849f0..00fb3c547ac4 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded : 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 dryrun job to be updated. private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunPatch(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -208,11 +199,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.UpdateAzServiceL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -544,24 +530,7 @@ public UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IDryrunResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs index b2580a03d777..b0a725563ce3 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : 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 Linker to be updated. private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerPatch(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -473,11 +464,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.UpdateAzServiceL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -805,24 +791,7 @@ public UpdateAzServiceLinker_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource 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/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs index fcea55d1d59e..0817c771b43d 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : 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 Linker to be updated. private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerPatch(); - /// - /// 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.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] @@ -448,11 +439,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.UpdateAzServiceL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -796,24 +782,7 @@ public UpdateAzServiceLinker_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource 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/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index ea2f0ea0d231..09a1f47a6017 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ServiceLinker/ServiceLinker.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/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index dc569d652819..700f7d7a6248 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ServiceLinker/ServiceLinker.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/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 00a3a954772e..8c58154ebc48 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ServiceLinker/ServiceLinker.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/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Context.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Context.cs index 6b5663f9b757..503880d6a9ca 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Context.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.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/ServiceLinker/ServiceLinker.Autorest/generated/runtime/MessageAttribute.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/MessageAttribute.cs index 4bec3adec4b6..b3f34eae3241 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.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.ServiceLinker" : @""; + //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/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Properties/Resources.resx b/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ServiceLinker/ServiceLinker.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/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerConfiguration.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerConfiguration.ps1 index 4b4605f80abb..b175f7f0bc7a 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerConfiguration.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -list source configurations for a Linker. +List source configurations for a Linker. .Description -list source configurations for a Linker. +List source configurations for a Linker. .Example {{ Add code here }} .Example diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerDryrun.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerDryrun.ps1 index ca75aa5c462e..12703e1c1bac 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerDryrun.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Get-AzServiceLinkerDryrun.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -get a dryrun job +Get a dryrun job .Description -get a dryrun job +Get a dryrun job .Example {{ Add code here }} .Example diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinker.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinker.ps1 index b1123f93dad3..57af9bab6fec 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinker.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create Linker resource. +Create Linker resource. .Description -create Linker resource. +Create Linker resource. .Example {{ Add code here }} .Example diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinkerDryrun.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinkerDryrun.ps1 index a847ac8cd975..02568e9a64b4 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinkerDryrun.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/New-AzServiceLinkerDryrun.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a dryrun job to do necessary check before actual creation +Create a dryrun job to do necessary check before actual creation .Description -create a dryrun job to do necessary check before actual creation +Create a dryrun job to do necessary check before actual creation .Example {{ Add code here }} .Example diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/ProxyCmdletDefinitions.ps1 index c8bc91ee0eae..58d0e5ad76f9 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -list source configurations for a Linker. +List source configurations for a Linker. .Description -list source configurations for a Linker. +List source configurations for a Linker. .Example {{ Add code here }} .Example @@ -144,9 +144,9 @@ end { <# .Synopsis -get a dryrun job +Get a dryrun job .Description -get a dryrun job +Get a dryrun job .Example {{ Add code here }} .Example @@ -788,9 +788,9 @@ end { <# .Synopsis -create a dryrun job to do necessary check before actual creation +Create a dryrun job to do necessary check before actual creation .Description -create a dryrun job to do necessary check before actual creation +Create a dryrun job to do necessary check before actual creation .Example {{ Add code here }} .Example @@ -951,9 +951,9 @@ end { <# .Synopsis -create Linker resource. +Create Linker resource. .Description -create Linker resource. +Create Linker resource. .Example {{ Add code here }} .Example @@ -1239,9 +1239,9 @@ end { <# .Synopsis -delete a dryrun job +Delete a dryrun job .Description -delete a dryrun job +Delete a dryrun job .Example {{ Add code here }} .Example @@ -1730,9 +1730,9 @@ end { <# .Synopsis -add a dryrun job to do necessary check before actual creation +Add a dryrun job to do necessary check before actual creation .Description -add a dryrun job to do necessary check before actual creation +Add a dryrun job to do necessary check before actual creation .Example {{ Add code here }} .Example diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Remove-AzServiceLinkerDryrun.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Remove-AzServiceLinkerDryrun.ps1 index d7051e9f1f25..d2272678cefe 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Remove-AzServiceLinkerDryrun.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Remove-AzServiceLinkerDryrun.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -delete a dryrun job +Delete a dryrun job .Description -delete a dryrun job +Delete a dryrun job .Example {{ Add code here }} .Example diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Update-AzServiceLinkerDryrun.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Update-AzServiceLinkerDryrun.ps1 index 70b28a146326..4fd6d63335cf 100644 --- a/generated/ServiceLinker/ServiceLinker.Autorest/internal/Update-AzServiceLinkerDryrun.ps1 +++ b/generated/ServiceLinker/ServiceLinker.Autorest/internal/Update-AzServiceLinkerDryrun.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -add a dryrun job to do necessary check before actual creation +Add a dryrun job to do necessary check before actual creation .Description -add a dryrun job to do necessary check before actual creation +Add a dryrun job to do necessary check before actual creation .Example {{ Add code here }} .Example diff --git a/generated/Site/Site.Autorest/exports/Get-AzSite.ps1 b/generated/Site/Site.Autorest/exports/Get-AzSite.ps1 index 190b91a61ad6..73a3a48da9b9 100644 --- a/generated/Site/Site.Autorest/exports/Get-AzSite.ps1 +++ b/generated/Site/Site.Autorest/exports/Get-AzSite.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/Site/Site.Autorest/exports/New-AzSite.ps1 b/generated/Site/Site.Autorest/exports/New-AzSite.ps1 index 00aaecc395ff..872e61415dc5 100644 --- a/generated/Site/Site.Autorest/exports/New-AzSite.ps1 +++ b/generated/Site/Site.Autorest/exports/New-AzSite.ps1 @@ -275,8 +275,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1 index f3feef820e3f..2b7d9b400d38 100644 --- a/generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -492,8 +491,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -725,8 +723,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1063,8 +1060,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Site/Site.Autorest/exports/Remove-AzSite.ps1 b/generated/Site/Site.Autorest/exports/Remove-AzSite.ps1 index be0f1a00b056..a4f36ab1ab5a 100644 --- a/generated/Site/Site.Autorest/exports/Remove-AzSite.ps1 +++ b/generated/Site/Site.Autorest/exports/Remove-AzSite.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/Site/Site.Autorest/exports/Update-AzSite.ps1 b/generated/Site/Site.Autorest/exports/Update-AzSite.ps1 index bf4f1a5baf93..409cebed0a8b 100644 --- a/generated/Site/Site.Autorest/exports/Update-AzSite.ps1 +++ b/generated/Site/Site.Autorest/exports/Update-AzSite.ps1 @@ -268,8 +268,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index a8351c500f81..de90d87bff04 100644 --- a/generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Site/Site.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/Sphere/Sphere.Autorest/Properties/AssemblyInfo.cs b/generated/Sphere/Sphere.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 0187e9545120..000000000000 --- a/generated/Sphere/Sphere.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 - Sphere")] -[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("2d4d75b7-e471-4b99-b740-0ca87cf9e649")] -[assembly: AssemblyVersion("0.1.3")] -[assembly: AssemblyFileVersion("0.1.3")] diff --git a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalog.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalog.ps1 index b1c4a6e38e6d..b92cac598337 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalog.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalog.ps1 @@ -140,6 +140,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.private\Get-AzSphereCatalog_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.Sphere.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/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDevice.ps1 index 4672ab6b617a..43ddd6f521f1 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDevice.ps1 @@ -132,6 +132,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -153,8 +161,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereCatalogDevice_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -168,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/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceGroup.ps1 index 9e6f49717664..541c90dba4df 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceGroup.ps1 @@ -138,6 +138,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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,8 +167,6 @@ begin { ListExpanded = 'Az.Sphere.private\Get-AzSphereCatalogDeviceGroup_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -174,6 +180,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/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceInsight.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceInsight.ps1 index 755875123eaa..5e0620fe78e6 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceInsight.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCatalogDeviceInsight.ps1 @@ -132,6 +132,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -153,8 +161,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereCatalogDeviceInsight_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -168,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/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificate.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificate.ps1 index 8e17e4f1f449..6e2c84b05185 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificate.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificate.ps1 @@ -185,6 +185,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -209,8 +217,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereCertificate_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -224,6 +230,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/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateCertChain.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateCertChain.ps1 index 696342f6a3d9..9158821323b1 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateCertChain.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateCertChain.ps1 @@ -158,6 +158,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -181,8 +189,6 @@ begin { RetrieveViaIdentityCatalog = 'Az.Sphere.private\Get-AzSphereCertificateCertChain_RetrieveViaIdentityCatalog'; } if (('Retrieve') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,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/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateProof.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateProof.ps1 index 9b95254a4425..0746ff2268aa 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateProof.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereCertificateProof.ps1 @@ -164,6 +164,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -187,8 +195,6 @@ begin { RetrieveViaIdentityExpanded = 'Az.Sphere.private\Get-AzSphereCertificateProof_RetrieveViaIdentityExpanded'; } if (('RetrieveExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -202,6 +208,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/Sphere/Sphere.Autorest/exports/Get-AzSphereDeployment.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDeployment.ps1 index 5c70d2d2a1b1..3e4082091466 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDeployment.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDeployment.ps1 @@ -245,6 +245,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -271,8 +279,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereDeployment_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -286,6 +292,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/Sphere/Sphere.Autorest/exports/Get-AzSphereDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDevice.ps1 index fd9b4ecd62f8..b129b93a8fa5 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDevice.ps1 @@ -221,6 +221,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -247,8 +255,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereDevice_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -262,6 +268,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/Sphere/Sphere.Autorest/exports/Get-AzSphereDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDeviceGroup.ps1 index f6e6b81dd634..263f65e96b4c 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereDeviceGroup.ps1 @@ -216,6 +216,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -241,8 +249,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereDeviceGroup_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -256,6 +262,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/Sphere/Sphere.Autorest/exports/Get-AzSphereImage.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereImage.ps1 index 572927bfefd6..2c7b3b74fdc3 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereImage.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereImage.ps1 @@ -188,6 +188,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -212,8 +220,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereImage_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -227,6 +233,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/Sphere/Sphere.Autorest/exports/Get-AzSphereProduct.ps1 b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereProduct.ps1 index 77093fd28717..b8531886f79b 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereProduct.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Get-AzSphereProduct.ps1 @@ -165,6 +165,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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 { List = 'Az.Sphere.private\Get-AzSphereProduct_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.Sphere.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/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountCatalogDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountCatalogDevice.ps1 index e7ab6e2b2551..4070878debe4 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountCatalogDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountCatalogDevice.ps1 @@ -132,6 +132,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -154,8 +162,6 @@ begin { CountDeviceViaIdentity = 'Az.Sphere.private\Invoke-AzSphereCountCatalogDevice_CountDeviceViaIdentity'; } if (('CountDevice') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -169,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/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountDeviceGroupDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountDeviceGroupDevice.ps1 index 05fc1df78a77..6d8547066811 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountDeviceGroupDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountDeviceGroupDevice.ps1 @@ -185,6 +185,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -209,8 +217,6 @@ begin { CountDeviceViaIdentityProduct = 'Az.Sphere.private\Invoke-AzSphereCountDeviceGroupDevice_CountDeviceViaIdentityProduct'; } if (('CountDevice') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -224,6 +230,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/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountProductDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountProductDevice.ps1 index 4f859ee12bd4..7b4ffc7ff527 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountProductDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Invoke-AzSphereCountProductDevice.ps1 @@ -159,6 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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 { CountDeviceViaIdentityCatalog = 'Az.Sphere.private\Invoke-AzSphereCountProductDevice_CountDeviceViaIdentityCatalog'; } if (('CountDevice') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/exports/New-AzSphereCatalog.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereCatalog.ps1 index 6f91c4cdacf0..d9c70cc002bc 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereCatalog.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereCatalog.ps1 @@ -146,6 +146,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -169,8 +177,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereCatalog_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -184,6 +190,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/Sphere/Sphere.Autorest/exports/New-AzSphereDeployment.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeployment.ps1 index 37290e96c434..f255e3cad686 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeployment.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeployment.ps1 @@ -177,6 +177,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -200,8 +208,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereDeployment_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -215,6 +221,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/Sphere/Sphere.Autorest/exports/New-AzSphereDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDevice.ps1 index 8234aa9e5c3b..55438094c4a6 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDevice.ps1 @@ -160,6 +160,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -183,8 +191,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereDevice_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -198,6 +204,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/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceCapabilityImage.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceCapabilityImage.ps1 index 625e6a5f3ead..8255958eb0e5 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceCapabilityImage.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceCapabilityImage.ps1 @@ -236,6 +236,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -262,8 +270,6 @@ begin { GenerateViaJsonString = 'Az.Sphere.private\New-AzSphereDeviceCapabilityImage_GenerateViaJsonString'; } if (('GenerateExpanded', 'GenerateViaJsonFilePath', 'GenerateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -277,6 +283,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/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceGroup.ps1 index ca4952d89c7e..4c989b65caca 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereDeviceGroup.ps1 @@ -181,6 +181,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -204,8 +212,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereDeviceGroup_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -219,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/Sphere/Sphere.Autorest/exports/New-AzSphereImage.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereImage.ps1 index 434ec6dbcf29..279c93b5806d 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereImage.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereImage.ps1 @@ -163,6 +163,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -186,8 +194,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereImage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -201,6 +207,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/Sphere/Sphere.Autorest/exports/New-AzSphereProduct.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereProduct.ps1 index df39761ffc3e..19c0e54f474a 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereProduct.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereProduct.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -170,8 +178,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereProduct_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -185,6 +191,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/Sphere/Sphere.Autorest/exports/New-AzSphereProductDefaultDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereProductDefaultDeviceGroup.ps1 index e01e11dc3474..b7b95f001329 100644 --- a/generated/Sphere/Sphere.Autorest/exports/New-AzSphereProductDefaultDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/New-AzSphereProductDefaultDeviceGroup.ps1 @@ -159,6 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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 { GenerateViaIdentityCatalog = 'Az.Sphere.private\New-AzSphereProductDefaultDeviceGroup_GenerateViaIdentityCatalog'; } if (('Generate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Sphere/Sphere.Autorest/exports/ProxyCmdletDefinitions.ps1 index 552b53172c8c..acaa8d00dd34 100644 --- a/generated/Sphere/Sphere.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -138,6 +138,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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,8 +167,6 @@ begin { ListExpanded = 'Az.Sphere.private\Get-AzSphereCatalogDeviceGroup_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -174,6 +180,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) @@ -335,6 +344,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -356,8 +373,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereCatalogDeviceInsight_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -371,6 +386,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) @@ -532,6 +550,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -553,8 +579,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereCatalogDevice_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -568,6 +592,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) @@ -737,6 +764,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -761,8 +796,6 @@ begin { List1 = 'Az.Sphere.private\Get-AzSphereCatalog_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -776,6 +809,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) @@ -963,6 +999,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -986,8 +1030,6 @@ begin { RetrieveViaIdentityCatalog = 'Az.Sphere.private\Get-AzSphereCertificateCertChain_RetrieveViaIdentityCatalog'; } if (('Retrieve') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1001,6 +1043,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) @@ -1194,6 +1239,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -1217,8 +1270,6 @@ begin { RetrieveViaIdentityExpanded = 'Az.Sphere.private\Get-AzSphereCertificateProof_RetrieveViaIdentityExpanded'; } if (('RetrieveExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1232,6 +1283,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) @@ -1446,6 +1500,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -1470,8 +1532,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereCertificate_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1485,6 +1545,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) @@ -1759,6 +1822,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -1785,8 +1856,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereDeployment_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1800,6 +1869,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) @@ -2045,6 +2117,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -2070,8 +2150,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereDeviceGroup_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2085,6 +2163,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) @@ -2335,6 +2416,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -2361,8 +2450,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereDevice_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2376,6 +2463,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) @@ -2593,6 +2683,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -2617,8 +2715,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereImage_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2632,6 +2728,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) @@ -2826,6 +2925,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -2850,8 +2957,6 @@ begin { List = 'Az.Sphere.private\Get-AzSphereProduct_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.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2865,6 +2970,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) @@ -3026,6 +3134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -3048,8 +3164,6 @@ begin { CountDeviceViaIdentity = 'Az.Sphere.private\Invoke-AzSphereCountCatalogDevice_CountDeviceViaIdentity'; } if (('CountDevice') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3063,6 +3177,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) @@ -3277,6 +3394,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -3301,8 +3426,6 @@ begin { CountDeviceViaIdentityProduct = 'Az.Sphere.private\Invoke-AzSphereCountDeviceGroupDevice_CountDeviceViaIdentityProduct'; } if (('CountDevice') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3316,6 +3439,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) @@ -3504,6 +3630,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -3527,8 +3661,6 @@ begin { CountDeviceViaIdentityCatalog = 'Az.Sphere.private\Invoke-AzSphereCountProductDevice_CountDeviceViaIdentityCatalog'; } if (('CountDevice') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3542,6 +3674,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) @@ -3717,6 +3852,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -3740,8 +3883,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereCatalog_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3755,6 +3896,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) @@ -3961,6 +4105,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -3984,8 +4136,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereDeployment_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3999,6 +4149,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) @@ -4264,6 +4417,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -4290,8 +4451,6 @@ begin { GenerateViaJsonString = 'Az.Sphere.private\New-AzSphereDeviceCapabilityImage_GenerateViaJsonString'; } if (('GenerateExpanded', 'GenerateViaJsonFilePath', 'GenerateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4305,6 +4464,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) @@ -4515,6 +4677,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -4538,8 +4708,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereDeviceGroup_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4553,6 +4721,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) @@ -4742,6 +4913,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -4765,8 +4944,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereDevice_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4780,6 +4957,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) @@ -4972,6 +5152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -4995,8 +5183,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereImage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5010,6 +5196,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) @@ -5198,6 +5387,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -5221,8 +5418,6 @@ begin { GenerateViaIdentityCatalog = 'Az.Sphere.private\New-AzSphereProductDefaultDeviceGroup_GenerateViaIdentityCatalog'; } if (('Generate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5236,6 +5431,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) @@ -5412,6 +5610,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -5435,8 +5641,6 @@ begin { CreateViaJsonString = 'Az.Sphere.private\New-AzSphereProduct_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5450,6 +5654,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) @@ -5630,6 +5837,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -5652,8 +5867,6 @@ begin { DeleteViaIdentity = 'Az.Sphere.private\Remove-AzSphereCatalog_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5667,6 +5880,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) @@ -5900,6 +6116,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -5924,8 +6148,6 @@ begin { DeleteViaIdentityProduct = 'Az.Sphere.private\Remove-AzSphereDeviceGroup_DeleteViaIdentityProduct'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5939,6 +6161,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) @@ -6146,6 +6371,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -6169,8 +6402,6 @@ begin { DeleteViaIdentityCatalog = 'Az.Sphere.private\Remove-AzSphereProduct_DeleteViaIdentityCatalog'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6184,6 +6415,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) @@ -6372,6 +6606,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -6396,8 +6638,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereCatalog_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6411,6 +6651,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) @@ -6709,6 +6952,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -6735,8 +6986,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereDeviceGroup_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6750,6 +6999,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) @@ -7041,6 +7293,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -7068,8 +7328,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereDevice_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7083,6 +7341,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) @@ -7312,6 +7573,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -7337,8 +7606,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereProduct_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7352,6 +7619,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/Sphere/Sphere.Autorest/exports/Remove-AzSphereCatalog.ps1 b/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereCatalog.ps1 index 8e77e77503af..f612c5213db9 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereCatalog.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereCatalog.ps1 @@ -151,6 +151,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -173,8 +181,6 @@ begin { DeleteViaIdentity = 'Az.Sphere.private\Remove-AzSphereCatalog_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -188,6 +194,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/Sphere/Sphere.Autorest/exports/Remove-AzSphereDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereDeviceGroup.ps1 index caaa32e8548c..e2808aae2898 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereDeviceGroup.ps1 @@ -204,6 +204,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -228,8 +236,6 @@ begin { DeleteViaIdentityProduct = 'Az.Sphere.private\Remove-AzSphereDeviceGroup_DeleteViaIdentityProduct'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -243,6 +249,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/Sphere/Sphere.Autorest/exports/Remove-AzSphereProduct.ps1 b/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereProduct.ps1 index db3aeae881d0..e5f954678923 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereProduct.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Remove-AzSphereProduct.ps1 @@ -178,6 +178,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -201,8 +209,6 @@ begin { DeleteViaIdentityCatalog = 'Az.Sphere.private\Remove-AzSphereProduct_DeleteViaIdentityCatalog'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -216,6 +222,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/Sphere/Sphere.Autorest/exports/Update-AzSphereCatalog.ps1 b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereCatalog.ps1 index c04389885a0b..1e6907fcbec4 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereCatalog.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereCatalog.ps1 @@ -159,6 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -183,8 +191,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereCatalog_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -198,6 +204,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/Sphere/Sphere.Autorest/exports/Update-AzSphereDevice.ps1 b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereDevice.ps1 index 24cd7b6aa8c6..779f08767866 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereDevice.ps1 @@ -262,6 +262,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -289,8 +297,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereDevice_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -304,6 +310,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/Sphere/Sphere.Autorest/exports/Update-AzSphereDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereDeviceGroup.ps1 index 87e8445b6132..fa7d83be563a 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereDeviceGroup.ps1 @@ -269,6 +269,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -295,8 +303,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereDeviceGroup_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -310,6 +316,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/Sphere/Sphere.Autorest/exports/Update-AzSphereProduct.ps1 b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereProduct.ps1 index 129fd73a58ee..acee019a693b 100644 --- a/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereProduct.ps1 +++ b/generated/Sphere/Sphere.Autorest/exports/Update-AzSphereProduct.ps1 @@ -200,6 +200,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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() } @@ -225,8 +233,6 @@ begin { UpdateViaJsonString = 'Az.Sphere.private\Update-AzSphereProduct_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -240,6 +246,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/Sphere/Sphere.Autorest/generated/api/Models/Catalog.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Catalog.cs index 1173a966e7c6..0758d3685ec4 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Catalog.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Catalog.cs @@ -26,28 +26,46 @@ public partial class Catalog : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.CatalogProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalogPropertiesInternal)Property).TenantId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -72,31 +90,31 @@ public partial class Catalog : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Certificate.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Certificate.cs index b981204af997..1c42658a2d31 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Certificate.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Certificate.cs @@ -29,40 +29,58 @@ public partial class Certificate : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for ExpiryUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.ExpiryUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ExpiryUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ExpiryUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.ExpiryUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ExpiryUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ExpiryUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for NotBeforeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.NotBeforeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).NotBeforeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).NotBeforeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.NotBeforeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).NotBeforeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).NotBeforeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for PropertiesCertificate - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.PropertiesCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Certificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Certificate = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.PropertiesCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Certificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Certificate = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.CertificateProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for Subject - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Subject { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Subject; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Subject = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Subject { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Subject; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Subject = value ?? null; } /// Internal Acessors for Thumbprint - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Thumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Thumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Thumbprint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificateInternal.Thumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Thumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)Property).Thumbprint = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -103,31 +121,31 @@ public partial class Certificate : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// The certificate thumbprint. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Deployment.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Deployment.cs index 4606a379e8ee..8931d2d908ff 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Deployment.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Deployment.cs @@ -37,25 +37,43 @@ public partial class Deployment : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for DateUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentInternal.DateUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).DeploymentDateUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).DeploymentDateUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentInternal.DateUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).DeploymentDateUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).DeploymentDateUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeploymentProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeploymentPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -80,31 +98,31 @@ public partial class Deployment : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Device.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Device.cs index c5740328aeed..b00d25ba6943 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Device.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Device.cs @@ -49,37 +49,55 @@ public partial class Device : public global::System.DateTime? LastUpdateRequestUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastUpdateRequestUtc; } /// Internal Acessors for ChipSku - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.ChipSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ChipSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ChipSku = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.ChipSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ChipSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ChipSku = value ?? null; } /// Internal Acessors for LastAvailableOSVersion - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastAvailableOSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastAvailableOSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastAvailableOSVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastAvailableOSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastAvailableOSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastAvailableOSVersion = value ?? null; } /// Internal Acessors for LastInstalledOSVersion - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastInstalledOSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastInstalledOSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastInstalledOSVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastInstalledOSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastInstalledOSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastInstalledOSVersion = value ?? null; } /// Internal Acessors for LastOSUpdateUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastOSUpdateUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastOSUpdateUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastOSUpdateUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastOSUpdateUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastOSUpdateUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastOSUpdateUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for LastUpdateRequestUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastUpdateRequestUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastUpdateRequestUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastUpdateRequestUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.LastUpdateRequestUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastUpdateRequestUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).LastUpdateRequestUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevicePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -104,31 +122,31 @@ public partial class Device : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/DeviceGroup.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/DeviceGroup.cs index 16c924ac87c5..179c8a73171c 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/DeviceGroup.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/DeviceGroup.cs @@ -37,25 +37,43 @@ public partial class DeviceGroup : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for HasDeployment - bool? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupInternal.HasDeployment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).HasDeployment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).HasDeployment = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupInternal.HasDeployment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).HasDeployment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).HasDeployment = value ?? default(bool); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroupProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -88,31 +106,31 @@ public partial class DeviceGroup : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/ErrorResponse.cs index ed9fb2124bfe..d82af0be1225 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Image.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Image.cs index 02c6c20fb412..c9a2fb4cfa3f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Image.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Image.cs @@ -45,37 +45,55 @@ public partial class Image : public string ImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageType; } /// Internal Acessors for ComponentId - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ComponentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ComponentId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ComponentId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ComponentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ComponentId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ComponentId = value ?? null; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for ImageName - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ImageName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ImageName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageName = value ?? null; } /// Internal Acessors for ImageType - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ImageType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ImageProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Uri - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Uri = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImageInternal.Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImagePropertiesInternal)Property).Uri = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -110,31 +128,31 @@ public partial class Image : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Operation.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Operation.cs index 370e856ab278..55dc10e2eda6 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Operation.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Product.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Product.cs index b2951624a856..6d500da60ce1 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Product.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Product.cs @@ -32,19 +32,37 @@ public partial class Product : Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductProperties Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProductProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -69,31 +87,31 @@ public partial class Product : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/ProofOfPossessionNonceResponse.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/ProofOfPossessionNonceResponse.cs index dbd85d39988d..e17240f29110 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/ProofOfPossessionNonceResponse.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/ProofOfPossessionNonceResponse.cs @@ -28,25 +28,25 @@ public partial class ProofOfPossessionNonceResponse : public global::System.DateTime? ExpiryUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ExpiryUtc; } /// Internal Acessors for Certificate - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Certificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Certificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Certificate = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Certificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Certificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Certificate = value ?? null; } /// Internal Acessors for ExpiryUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.ExpiryUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ExpiryUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ExpiryUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.ExpiryUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ExpiryUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ExpiryUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for NotBeforeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.NotBeforeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).NotBeforeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).NotBeforeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.NotBeforeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).NotBeforeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).NotBeforeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).ProvisioningState = value ?? null; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Status = value ?? null; } /// Internal Acessors for Subject - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Subject { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Subject; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Subject = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Subject { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Subject; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Subject = value ?? null; } /// Internal Acessors for Thumbprint - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Thumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Thumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Thumbprint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal.Thumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Thumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICertificatePropertiesInternal)__certificateProperties).Thumbprint = value ?? null; } /// The certificate not before date. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/ProxyResource.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/ProxyResource.cs index fcd6a27f3cd4..bb1900030483 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/Resource.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/Resource.cs index 3010da14030e..e79df210b9ff 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/Resource.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Models/TrackedResource.cs b/generated/Sphere/Sphere.Autorest/generated/api/Models/TrackedResource.cs index ae8b4088357d..1f1092535f76 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Sphere/Sphere.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.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Origin(Microsoft.Azure.PowerShell.Cmdlets.Sphere.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Sphere/Sphere.Autorest/generated/api/Sphere.cs b/generated/Sphere/Sphere.Autorest/generated/api/Sphere.cs index e35f71b899fa..02477e48f2e9 100644 --- a/generated/Sphere/Sphere.Autorest/generated/api/Sphere.cs +++ b/generated/Sphere/Sphere.Autorest/generated/api/Sphere.cs @@ -341,7 +341,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -390,7 +390,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -449,7 +449,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// /// Resource create parameters. /// an instance that will receive events. @@ -506,7 +506,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -554,7 +554,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -600,7 +600,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -662,13 +662,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -816,13 +816,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -1085,13 +1085,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -3846,7 +3846,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -3895,7 +3895,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -3954,7 +3954,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// /// The resource properties to be updated. /// an instance that will receive events. @@ -4011,7 +4011,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -4059,7 +4059,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -4105,7 +4105,7 @@ public partial class Sphere } } - /// Update a Catalog + /// update a Catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -4290,11 +4290,12 @@ public partial class Sphere } } - /// Upload an image. Use this action when the image ID is unknown. + /// upload an image. Use this action when the image ID is unknown. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog /// Image upload request body. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4303,7 +4304,7 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsUploadImage(string subscriptionId, string resourceGroupName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task CatalogsUploadImage(string subscriptionId, string resourceGroupName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2024-04-01"; // Constant Parameters @@ -4335,13 +4336,14 @@ public partial class Sphere request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsUploadImage_Call (request, onDefault,eventListener,sender); + await this.CatalogsUploadImage_Call (request, onOk,onDefault,eventListener,sender); } } - /// Upload an image. Use this action when the image ID is unknown. + /// upload an image. Use this action when the image ID is unknown. /// /// Image upload request body. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4350,7 +4352,7 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsUploadImageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task CatalogsUploadImageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2024-04-01"; // Constant Parameters @@ -4394,15 +4396,16 @@ public partial class Sphere request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsUploadImage_Call (request, onDefault,eventListener,sender); + await this.CatalogsUploadImage_Call (request, onOk,onDefault,eventListener,sender); } } - /// Upload an image. Use this action when the image ID is unknown. + /// upload an image. Use this action when the image ID is unknown. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog /// Json string supplied to the CatalogsUploadImage operation + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4410,7 +4413,7 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsUploadImageViaJsonString(string subscriptionId, string resourceGroupName, string catalogName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsUploadImageViaJsonString(string subscriptionId, string resourceGroupName, string catalogName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) { var apiVersion = @"2024-04-01"; // Constant Parameters @@ -4442,12 +4445,13 @@ public partial class Sphere request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsUploadImage_Call (request, onDefault,eventListener,sender); + await this.CatalogsUploadImage_Call (request, onOk,onDefault,eventListener,sender); } } /// Actual wire call for method. /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4455,20 +4459,20 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsUploadImage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsUploadImage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -4564,6 +4568,12 @@ public partial class Sphere switch ( _response.StatusCode ) { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6147,7 +6157,7 @@ public partial class Sphere } /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// The ID of the target subscription. @@ -6209,7 +6219,7 @@ public partial class Sphere } /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -6280,7 +6290,7 @@ public partial class Sphere } /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -6349,7 +6359,7 @@ public partial class Sphere } /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// The ID of the target subscription. @@ -6410,7 +6420,7 @@ public partial class Sphere } /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// The ID of the target subscription. @@ -6469,7 +6479,7 @@ public partial class Sphere } /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// The ID of the target subscription. @@ -6545,13 +6555,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -6699,13 +6709,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -7002,13 +7012,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -7984,6 +7994,7 @@ public partial class Sphere /// Name of product. /// Name of device group. /// Bulk claim devices request body. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -7992,7 +8003,7 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DeviceGroupsClaimDevices(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IClaimDevicesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task DeviceGroupsClaimDevices(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IClaimDevicesRequest body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2024-04-01"; // Constant Parameters @@ -8028,7 +8039,7 @@ public partial class Sphere request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DeviceGroupsClaimDevices_Call (request, onDefault,eventListener,sender); + await this.DeviceGroupsClaimDevices_Call (request, onOk,onDefault,eventListener,sender); } } @@ -8038,6 +8049,7 @@ public partial class Sphere /// /// /// Bulk claim devices request body. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8046,7 +8058,7 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DeviceGroupsClaimDevicesViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IClaimDevicesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task DeviceGroupsClaimDevicesViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IClaimDevicesRequest body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2024-04-01"; // Constant Parameters @@ -8096,7 +8108,7 @@ public partial class Sphere request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DeviceGroupsClaimDevices_Call (request, onDefault,eventListener,sender); + await this.DeviceGroupsClaimDevices_Call (request, onOk,onDefault,eventListener,sender); } } @@ -8110,6 +8122,7 @@ public partial class Sphere /// Name of product. /// Name of device group. /// Json string supplied to the DeviceGroupsClaimDevices operation + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8117,7 +8130,7 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DeviceGroupsClaimDevicesViaJsonString(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DeviceGroupsClaimDevicesViaJsonString(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) { var apiVersion = @"2024-04-01"; // Constant Parameters @@ -8153,12 +8166,13 @@ public partial class Sphere request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DeviceGroupsClaimDevices_Call (request, onDefault,eventListener,sender); + await this.DeviceGroupsClaimDevices_Call (request, onOk,onDefault,eventListener,sender); } } /// Actual wire call for method. /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8166,20 +8180,20 @@ public partial class Sphere /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DeviceGroupsClaimDevices_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DeviceGroupsClaimDevices_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -8275,6 +8289,12 @@ public partial class Sphere switch ( _response.StatusCode ) { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8697,7 +8717,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -8755,7 +8775,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -8823,7 +8843,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -8889,7 +8909,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -8946,7 +8966,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -9001,7 +9021,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -9073,13 +9093,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -9227,13 +9247,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -9520,13 +9540,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -10458,7 +10478,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -10516,7 +10536,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -10584,7 +10604,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -10650,7 +10670,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -10707,7 +10727,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -10762,7 +10782,7 @@ public partial class Sphere } /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// The ID of the target subscription. @@ -10832,13 +10852,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -10987,13 +11007,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -11148,7 +11168,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// The ID of the target subscription. @@ -11209,7 +11229,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -11280,7 +11300,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -11349,7 +11369,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// The ID of the target subscription. @@ -11409,7 +11429,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// The ID of the target subscription. @@ -11467,7 +11487,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// The ID of the target subscription. @@ -11540,13 +11560,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -11694,13 +11714,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -11990,13 +12010,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -12557,13 +12577,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -12712,13 +12732,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -13625,7 +13645,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// The ID of the target subscription. @@ -13686,7 +13706,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -13757,7 +13777,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -13826,7 +13846,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// The ID of the target subscription. @@ -13886,7 +13906,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// The ID of the target subscription. @@ -13944,7 +13964,7 @@ public partial class Sphere } /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// The ID of the target subscription. @@ -14017,13 +14037,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -14172,13 +14192,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -14335,7 +14355,7 @@ public partial class Sphere } } - /// Update a Image + /// update a Image /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -14387,7 +14407,7 @@ public partial class Sphere } } - /// Update a Image + /// update a Image /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -14449,7 +14469,7 @@ public partial class Sphere } } - /// Update a Image + /// update a Image /// /// Resource create parameters. /// an instance that will receive events. @@ -14509,7 +14529,7 @@ public partial class Sphere } } - /// Update a Image + /// update a Image /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -14560,7 +14580,7 @@ public partial class Sphere } } - /// Update a Image + /// update a Image /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -14609,7 +14629,7 @@ public partial class Sphere } } - /// Update a Image + /// update a Image /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of catalog @@ -14674,13 +14694,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -14828,13 +14848,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -15105,13 +15125,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -16614,7 +16634,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16668,7 +16688,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// Resource create parameters. @@ -16732,7 +16752,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// Resource create parameters. @@ -16794,7 +16814,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16847,7 +16867,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16898,7 +16918,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16964,13 +16984,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -17118,13 +17138,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -17400,13 +17420,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -18592,7 +18612,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -18646,7 +18666,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// The resource properties to be updated. @@ -18710,7 +18730,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// The resource properties to be updated. @@ -18772,7 +18792,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -18825,7 +18845,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -18876,7 +18896,7 @@ public partial class Sphere } /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -18942,13 +18962,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); @@ -19097,13 +19117,13 @@ public partial class Sphere 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.Sphere.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.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"); diff --git a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateExpanded.cs index 803c20cb7afc..551ece9fd0c8 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Create a Catalog + /// create a Catalog /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereCatalog_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] public partial class NewAzSphereCatalog_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzSphereCatalog_CreateExpanded : 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; - /// An Azure Sphere catalog private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Catalog(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -273,11 +264,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereCatalog_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ICatalog 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonFilePath.cs index b386f9c92586..5863ca465389 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Create a Catalog + /// create a Catalog /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereCatalog_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzSphereCatalog_CreateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereCatalog_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ICatalog 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonString.cs index da62e0ae00ec..1d179eab706b 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereCatalog_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Create a Catalog + /// create a Catalog /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereCatalog_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzSphereCatalog_CreateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereCatalog_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ICatalog 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateExpanded.cs index fc568998f1a4..533fc488df75 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDeployment_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", ApiVersion = "2024-04-01")] public partial class NewAzSphereDeployment_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class NewAzSphereDeployment_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; - /// An deployment resource belonging to a device group resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Deployment(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -323,11 +314,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeployment_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonFilePath.cs index b9c85edfa54b..2df9ffa31b00 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDeployment_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class NewAzSphereDeployment_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -313,11 +304,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeployment_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -633,24 +619,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonString.cs index 73f9eac9ecba..5ae476f9302f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeployment_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDeployment_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class NewAzSphereDeployment_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeployment_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs index 9bd78500013e..12160daac54f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateExpanded : 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; - /// Request of the action to create a signed device capability image private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -630,24 +616,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISignedCapabilityImageResponse 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs index 0d0d52a49b8d..b910c07451f4 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalog /// 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; - /// Request of the action to create a signed device capability image private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -270,11 +261,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISignedCapabilityImageResponse 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs index 44720ec3aeb8..467f623b4733 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceG /// 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; - /// Request of the action to create a signed device capability image private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -240,11 +231,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ISignedCapabilityImageResponse 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs index 807dc8a06a78..69b43728e8dd 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProduct /// 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; - /// Request of the action to create a signed device capability image private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -255,11 +246,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ISignedCapabilityImageResponse 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonFilePath.cs index 781faf2072b9..7f58425b4b9b 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonFilePath.cs @@ -44,17 +44,8 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaJsonFilePath : /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -312,11 +303,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ISignedCapabilityImageResponse 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonString.cs index 05074bf51e56..8383eb838fb4 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaJsonString.cs @@ -44,15 +44,6 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISignedCapabilityImageResponse 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateExpanded.cs index f24833ac6540..4e93fd4930ab 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDeviceGroup_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] public partial class NewAzSphereDeviceGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class NewAzSphereDeviceGroup_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; - /// An device group resource belonging to a product resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroup(); - /// - /// 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; - /// Flag to define if the user allows for crash dump collection. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to define if the user allows for crash dump collection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Body)] @@ -342,11 +333,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceGroup_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -662,24 +648,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonFilePath.cs index ce125c4abb8e..b8d728f82ea1 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDeviceGroup_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class NewAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceGroup_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonString.cs index 33226c197ba8..76ef7b77caad 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDeviceGroup_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDeviceGroup_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class NewAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceGroup_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateExpanded.cs index 1d0c5f1a8c62..5b8211f78fa1 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDevice_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class NewAzSphereDevice_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class NewAzSphereDevice_CreateExpanded : 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; - /// An device resource belonging to a device group resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Device(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDevice_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -630,24 +616,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonFilePath.cs index 9e54ae14ecc7..9092e27026dd 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDevice_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class NewAzSphereDevice_CreateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -312,11 +303,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDevice_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonString.cs index 712d3c8f77de..17c2663fb493 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereDevice_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereDevice_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class NewAzSphereDevice_CreateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDevice_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -630,24 +616,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateExpanded.cs index 1392dcc8b32b..48d85396fb8d 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Create a Image + /// create a Image /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereImage_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Image")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Image")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", ApiVersion = "2024-04-01")] public partial class NewAzSphereImage_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzSphereImage_CreateExpanded : 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; - /// An image resource belonging to a catalog resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Image(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -301,11 +292,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereImage_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -621,24 +607,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonFilePath.cs index 4d611a2a8198..bde3cc8d10d7 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Create a Image + /// create a Image /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereImage_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Image")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Image")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzSphereImage_CreateViaJsonFilePath : 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; - 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereImage_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IImage 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonString.cs index eb088f69c3d2..49636390b8a1 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereImage_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Create a Image + /// create a Image /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereImage_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Image")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Image")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzSphereImage_CreateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereImage_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IImage 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateExpanded.cs index 3b8a1ea164d2..5a678c16cac1 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereProduct_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] public partial class NewAzSphereProduct_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -42,18 +42,9 @@ public partial class NewAzSphereProduct_CreateExpanded : 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; - /// An product resource belonging to a catalog resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Product(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereProduct_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonFilePath.cs index efa45703f49b..40fe9c05141a 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonFilePath.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereProduct_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -43,17 +43,8 @@ public partial class NewAzSphereProduct_CreateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereProduct_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonString.cs index cd0107e74c1c..81afb77eee98 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/NewAzSphereProduct_CreateViaJsonString.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSphereProduct_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -43,15 +43,6 @@ public partial class NewAzSphereProduct_CreateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereProduct_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_Delete.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_Delete.cs index 90b07bcfa5c0..f0f99c18d41c 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_Delete.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzSphereCatalog_Delete : global::System.Management.Au /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereCatalog_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_DeleteViaIdentity.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_DeleteViaIdentity.cs index 6df6fb54a3cb..21576875fb2d 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_DeleteViaIdentity.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereCatalog_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzSphereCatalog_DeleteViaIdentity : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereCatalog_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_Delete.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_Delete.cs index da35f9be3401..929246cedc33 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_Delete.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_Delete.cs @@ -43,15 +43,6 @@ public partial class RemoveAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -610,7 +596,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -634,7 +620,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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentity.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentity.cs index 3f2b34b81109..442e4f0866fd 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentity.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentity.cs @@ -43,15 +43,6 @@ public partial class RemoveAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,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); } @@ -589,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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityCatalog.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityCatalog.cs index ec0b4fd011b8..ddfc6d4c899a 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityCatalog.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityCatalog.cs @@ -43,15 +43,6 @@ public partial class RemoveAzSphereDeviceGroup_DeleteViaIdentityCatalog : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -252,11 +243,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,7 +575,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -613,7 +599,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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityProduct.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityProduct.cs index e8778cadc546..58debb32467d 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityProduct.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereDeviceGroup_DeleteViaIdentityProduct.cs @@ -43,15 +43,6 @@ public partial class RemoveAzSphereDeviceGroup_DeleteViaIdentityProduct : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_Delete.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_Delete.cs index 0da20aa0bd8b..109972dd46c3 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_Delete.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_Delete.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSphereProduct_Delete : global::System.Management.Au /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereProduct_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -618,7 +604,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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentity.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentity.cs index cf38fbf96c99..f0b2f43e5480 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentity.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentity.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSphereProduct_DeleteViaIdentity : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereProduct_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentityCatalog.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentityCatalog.cs index d9ac4ec3453e..f3c65293c804 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentityCatalog.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/RemoveAzSphereProduct_DeleteViaIdentityCatalog.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSphereProduct_DeleteViaIdentityCatalog : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.RemoveAzSphereProduct_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateExpanded.cs index 2d4c8bcb1a29..72fc97d0bb29 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereCatalog_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] public partial class SetAzSphereCatalog_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -41,18 +41,9 @@ public partial class SetAzSphereCatalog_UpdateExpanded : 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; - /// An Azure Sphere catalog private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Catalog(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereCatalog_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -594,24 +580,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonFilePath.cs index 58ae7f79a80e..0b9bc3bcc641 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonFilePath.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereCatalog_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -42,17 +42,8 @@ public partial class SetAzSphereCatalog_UpdateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereCatalog_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ICatalog 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonString.cs index d3cae2420300..b1706fb66aae 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereCatalog_UpdateViaJsonString.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereCatalog_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -42,15 +42,6 @@ public partial class SetAzSphereCatalog_UpdateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereCatalog_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.ICatalog 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateExpanded.cs index b0c765825382..ae2bca9d3e4f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDeployment_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", ApiVersion = "2024-04-01")] public partial class SetAzSphereDeployment_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +44,9 @@ public partial class SetAzSphereDeployment_UpdateExpanded : 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; - /// An deployment resource belonging to a device group resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Deployment(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -324,11 +315,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDeployment_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IDeployment 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonFilePath.cs index 5b7e67273568..78ae8c025133 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDeployment_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class SetAzSphereDeployment_UpdateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -314,11 +305,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDeployment_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -634,24 +620,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonString.cs index 3d24778c06ca..e61f7bf025f8 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeployment_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group + /// update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group /// name. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDeployment_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeployment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class SetAzSphereDeployment_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -312,11 +303,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDeployment_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IDeployment 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateExpanded.cs index d01d9b73f45a..05aa8b2c84e2 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDeviceGroup_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] public partial class SetAzSphereDeviceGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +44,9 @@ public partial class SetAzSphereDeviceGroup_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; - /// An device group resource belonging to a product resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroup(); - /// - /// 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; - /// Flag to define if the user allows for crash dump collection. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to define if the user allows for crash dump collection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Body)] @@ -343,11 +334,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDeviceGroup_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -663,24 +649,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonFilePath.cs index 69be3220f8e6..3ad80bd6ead2 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDeviceGroup_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class SetAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDeviceGroup_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonString.cs index 5fa64791c254..f12f7f05eb19 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDeviceGroup_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDeviceGroup_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class SetAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -295,11 +286,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDeviceGroup_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateExpanded.cs index a625e605fa43..19ac2f8fa8a0 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDevice_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class SetAzSphereDevice_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +44,9 @@ public partial class SetAzSphereDevice_UpdateExpanded : 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; - /// An device resource belonging to a device group resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Device(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDevice_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonFilePath.cs index 2871c27237fe..e4bb8d55a8e6 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDevice_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class SetAzSphereDevice_UpdateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -313,11 +304,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDevice_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -633,24 +619,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonString.cs index 819d61f67cef..dd368c082004 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereDevice_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog /// only. /// /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereDevice_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class SetAzSphereDevice_UpdateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereDevice_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateExpanded.cs index a9bb4badce3d..9b07b9bd4498 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Image + /// update a Image /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereImage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Image")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Image")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", ApiVersion = "2024-04-01")] public partial class SetAzSphereImage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -41,18 +41,9 @@ public partial class SetAzSphereImage_UpdateExpanded : 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; - /// An image resource belonging to a catalog resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Image(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -302,11 +293,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereImage_Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -622,24 +608,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonFilePath.cs index d283d9f3cea2..c08800cc8204 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonFilePath.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Image + /// update a Image /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereImage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Image")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Image")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -42,17 +42,8 @@ public partial class SetAzSphereImage_UpdateViaJsonFilePath : 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; - 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereImage_Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonString.cs index ba511f41edc5..c41cefafbf1e 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereImage_UpdateViaJsonString.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Image + /// update a Image /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereImage_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Image")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Image")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -42,15 +42,6 @@ public partial class SetAzSphereImage_UpdateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereImage_Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IImage 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateExpanded.cs index a64d8bf1f6bc..8474fa5e8505 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereProduct_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] public partial class SetAzSphereProduct_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class SetAzSphereProduct_UpdateExpanded : 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; - /// An product resource belonging to a catalog resource. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.Product(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereProduct_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonFilePath.cs index 8bd6d1467413..1b13cd026381 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereProduct_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class SetAzSphereProduct_UpdateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereProduct_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonString.cs index 099b5ac4d688..f81e4b33ff2f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/SetAzSphereProduct_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzSphereProduct_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class SetAzSphereProduct_UpdateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.SetAzSphereProduct_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateExpanded.cs index 55f411f011b1..b2adf6f4276e 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereCatalog_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereCatalog_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaIdentityExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaIdentityExpanded.cs index 2caaa933cc4d..689723fb5303 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaIdentityExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereCatalog_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereCatalog_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonFilePath.cs index 6ffb4610c7ac..e4a737aa7bc0 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereCatalog_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] diff --git a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonString.cs index cd72ae4ce7fe..b43c6878c0c8 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereCatalog_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Cmdlets; using System; - /// Update a Catalog + /// update a Catalog /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereCatalog_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ICatalog))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] diff --git a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateExpanded.cs index 546216ee9f54..d11c90397e1a 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDeviceGroup_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDeviceGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDeviceGroup_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; - /// The type used for update operations of the DeviceGroup. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroupUpdate(); - /// - /// 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; - /// Flag to define if the user allows for crash dump collection. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to define if the user allows for crash dump collection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Body)] @@ -342,11 +333,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -662,24 +648,7 @@ public UpdateAzSphereDeviceGroup_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded.cs index f1ec19cf46ee..ac7b9c0f364a 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded /// 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 type used for update operations of the DeviceGroup. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroupUpdate(); - /// - /// 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; - /// Flag to define if the user allows for crash dump collection. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to define if the user allows for crash dump collection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Body)] @@ -302,11 +293,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ public UpdateAzSphereDeviceGroup_UpdateViaIdentityCatalogExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityExpanded.cs index 670e2bebff70..bcd9bd1d14ea 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDeviceGroup_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDeviceGroup_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDeviceGroup_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; - /// The type used for update operations of the DeviceGroup. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroupUpdate(); - /// - /// 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; - /// Flag to define if the user allows for crash dump collection. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to define if the user allows for crash dump collection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Body)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ public UpdateAzSphereDeviceGroup_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded.cs index 965755b0236d..2f038dfec853 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDeviceGroup_UpdateViaIdentityProductExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded /// 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 type used for update operations of the DeviceGroup. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroupUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceGroupUpdate(); - /// - /// 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; - /// Flag to define if the user allows for crash dump collection. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to define if the user allows for crash dump collection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Body)] @@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -632,24 +618,7 @@ public UpdateAzSphereDeviceGroup_UpdateViaIdentityProductExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonFilePath.cs index fd2dc3469b08..f9f0e4ca9af6 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDeviceGroup_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class UpdateAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ public UpdateAzSphereDeviceGroup_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonString.cs index 55249e834b68..1bd3409bbb9f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDeviceGroup_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device + /// update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device /// group name. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDeviceGroup_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class UpdateAzSphereDeviceGroup_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDeviceGro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,24 +600,7 @@ public UpdateAzSphereDeviceGroup_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceGroup 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateExpanded.cs index be4d66378ba1..c4a664c4eff7 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDevice_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDevice_UpdateExpanded : 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; - /// The type used for update operations of the Device. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -630,24 +616,7 @@ public UpdateAzSphereDevice_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded.cs index 0cf24adab376..2665bba153bc 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateViaIdentityCatalogExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded : 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; - /// The type used for update operations of the Device. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -609,24 +595,7 @@ public UpdateAzSphereDevice_UpdateViaIdentityCatalogExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded.cs index 1578c62ac6bc..c6b694e2f956 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateViaIdentityDeviceGroupExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded : /// 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 type used for update operations of the Device. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ public UpdateAzSphereDevice_UpdateViaIdentityDeviceGroupExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityExpanded.cs index 9144b1587405..cd00f8612842 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDevice_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDevice_UpdateViaIdentityExpanded : 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; - /// The type used for update operations of the Device. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,24 +559,7 @@ public UpdateAzSphereDevice_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityProductExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityProductExpanded.cs index d72e5032e3ad..11ce73edb28a 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityProductExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaIdentityProductExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateViaIdentityProductExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereDevice_UpdateViaIdentityProductExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class UpdateAzSphereDevice_UpdateViaIdentityProductExpanded : 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; - /// The type used for update operations of the Device. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDeviceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -253,11 +244,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ public UpdateAzSphereDevice_UpdateViaIdentityProductExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonFilePath.cs index 279d33606446..e3edc2a52397 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class UpdateAzSphereDevice_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -312,11 +303,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -632,24 +618,7 @@ public UpdateAzSphereDevice_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonString.cs index 34e79030dbf7..471af9bd6b16 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereDevice_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog + /// update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog /// level. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereDevice_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class UpdateAzSphereDevice_UpdateViaJsonString : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereDevice_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -630,24 +616,7 @@ public UpdateAzSphereDevice_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateExpanded.cs index e6f212f7872f..6ea509690fe8 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereProduct_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereProduct_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -42,18 +42,9 @@ public partial class UpdateAzSphereProduct_UpdateExpanded : 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 type used for update operations of the Product. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProductUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereProduct_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ public UpdateAzSphereProduct_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded.cs index 6f870ba3fdb8..ea051f4589b6 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereProduct_UpdateViaIdentityCatalogExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded : global::System.Management.Automation.PSCmdlet, @@ -42,18 +42,9 @@ public partial class UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded : 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; - /// The type used for update operations of the Product. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProductUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereProduct_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ public UpdateAzSphereProduct_UpdateViaIdentityCatalogExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityExpanded.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityExpanded.cs index 35c571046590..13d7dc4c5655 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityExpanded.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaIdentityExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereProduct_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] public partial class UpdateAzSphereProduct_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -42,18 +42,9 @@ public partial class UpdateAzSphereProduct_UpdateViaIdentityExpanded : 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; - /// The type used for update operations of the Product. private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProductUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProductUpdate(); - /// - /// 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereProduct_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,24 +550,7 @@ public UpdateAzSphereProduct_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonFilePath.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonFilePath.cs index a89116eeed23..10e90199b97b 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonFilePath.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonFilePath.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereProduct_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -43,17 +43,8 @@ public partial class UpdateAzSphereProduct_UpdateViaJsonFilePath : 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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereProduct_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ public UpdateAzSphereProduct_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonString.cs b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonString.cs index 4ef932337dd4..ca49f915cfeb 100644 --- a/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonString.cs +++ b/generated/Sphere/Sphere.Autorest/generated/cmdlets/UpdateAzSphereProduct_UpdateViaJsonString.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets using System; /// - /// Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. + /// update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. /// /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSphereProduct_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Description(@"update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", ApiVersion = "2024-04-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.NotSuggestDefaultParameterSet] @@ -43,15 +43,6 @@ public partial class UpdateAzSphereProduct_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.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.UpdateAzSphereProduct_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ public UpdateAzSphereProduct_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProduct 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/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index d9990731402f..7112a5d3ed4f 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Sphere/Sphere.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/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 8a8f74ac5682..e18a63be3e42 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere.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.Sphere.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/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index f4d90e0d7c8d..1546aeb66a37 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Sphere/Sphere.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/Sphere/Sphere.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/PsAttributes.cs index a4804e9d67d7..10e80a8f0f37 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Sphere/Sphere.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/Sphere/Sphere.Autorest/generated/runtime/Context.cs b/generated/Sphere/Sphere.Autorest/generated/runtime/Context.cs index 6307b17a66ed..e781cce98ba5 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/Context.cs +++ b/generated/Sphere/Sphere.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.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/Sphere/Sphere.Autorest/generated/runtime/MessageAttribute.cs b/generated/Sphere/Sphere.Autorest/generated/runtime/MessageAttribute.cs index 0aea2cb4f32c..82f7e2504013 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Sphere/Sphere.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Sphere.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.Sphere" : @""; + //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/Sphere/Sphere.Autorest/generated/runtime/Properties/Resources.resx b/generated/Sphere/Sphere.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Sphere/Sphere.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Sphere/Sphere.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/Sphere/Sphere.Autorest/internal/Get-AzSphereOperation.ps1 b/generated/Sphere/Sphere.Autorest/internal/Get-AzSphereOperation.ps1 index ec79c93fad52..3e6397eadea0 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Get-AzSphereOperation.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Get-AzSphereOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Sphere.private\Get-AzSphereOperation_List'; } $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/Sphere/Sphere.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Sphere/Sphere.Autorest/internal/ProxyCmdletDefinitions.ps1 index d42d8197c1ca..c09ab2f89439 100644 --- a/generated/Sphere/Sphere.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Sphere.private\Get-AzSphereOperation_List'; } $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) @@ -258,14 +264,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereCatalog_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereCatalog_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereCatalog_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -274,6 +281,9 @@ begin { } $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) @@ -467,14 +477,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereDeployment_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereDeployment_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereDeployment_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -483,6 +494,9 @@ begin { } $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) @@ -681,14 +695,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereDeviceGroup_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereDeviceGroup_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereDeviceGroup_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -697,6 +712,9 @@ begin { } $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) @@ -874,14 +892,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereDevice_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereDevice_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereDevice_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -890,6 +909,9 @@ begin { } $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) @@ -1067,14 +1089,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereImage_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereImage_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1083,6 +1106,9 @@ begin { } $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) @@ -1247,14 +1273,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereProduct_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereProduct_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereProduct_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1263,6 +1290,9 @@ begin { } $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/Sphere/Sphere.Autorest/internal/Set-AzSphereCatalog.ps1 b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereCatalog.ps1 index 38becf8cff89..471881066039 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereCatalog.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereCatalog.ps1 @@ -148,14 +148,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereCatalog_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereCatalog_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereCatalog_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +165,9 @@ begin { } $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/Sphere/Sphere.Autorest/internal/Set-AzSphereDeployment.ps1 b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDeployment.ps1 index ea21d9db1568..4418f859a8c2 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDeployment.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDeployment.ps1 @@ -178,14 +178,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereDeployment_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereDeployment_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereDeployment_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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 +195,9 @@ begin { } $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/Sphere/Sphere.Autorest/internal/Set-AzSphereDevice.ps1 b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDevice.ps1 index 3f73466a7b12..29b88ceab5b5 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDevice.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDevice.ps1 @@ -162,14 +162,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereDevice_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereDevice_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereDevice_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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 +179,9 @@ begin { } $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/Sphere/Sphere.Autorest/internal/Set-AzSphereDeviceGroup.ps1 b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDeviceGroup.ps1 index 37edfce2a336..7ec9c18add2e 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDeviceGroup.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereDeviceGroup.ps1 @@ -183,14 +183,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereDeviceGroup_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereDeviceGroup_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereDeviceGroup_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -199,6 +200,9 @@ begin { } $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/Sphere/Sphere.Autorest/internal/Set-AzSphereImage.ps1 b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereImage.ps1 index b604cd146077..5a47d3ef3999 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereImage.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereImage.ps1 @@ -162,14 +162,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereImage_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereImage_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.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 +179,9 @@ begin { } $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/Sphere/Sphere.Autorest/internal/Set-AzSphereProduct.ps1 b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereProduct.ps1 index 5230d5d3b301..a9e3e982e0d4 100644 --- a/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereProduct.ps1 +++ b/generated/Sphere/Sphere.Autorest/internal/Set-AzSphereProduct.ps1 @@ -149,14 +149,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.Sphere.private\Set-AzSphereProduct_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.Sphere.private\Set-AzSphereProduct_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.Sphere.private\Set-AzSphereProduct_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +166,9 @@ begin { } $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/src/ServiceBus/ServiceBus.Autorest/resources/README.md b/generated/Sphere/Sphere.Autorest/resources/README.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/resources/README.md rename to generated/Sphere/Sphere.Autorest/resources/README.md diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Deploy-AzSpringCloudApp.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Deploy-AzSpringCloudApp.ps1 index 1e016decf0ba..90ee4d52be1d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Deploy-AzSpringCloudApp.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Deploy-AzSpringCloudApp.ps1 @@ -64,7 +64,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')] [System.String] - # The path of the file need to be deploied. + # The path of the file need to be deployed. # The file supports Jar, NetcoreZip and Source. ${FilePath}, @@ -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/SpringCloud/SpringCloud.Autorest/exports/Disable-AzSpringCloudTestEndpoint.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Disable-AzSpringCloudTestEndpoint.ps1 index 681406d14e16..64f552587cc2 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Disable-AzSpringCloudTestEndpoint.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Disable-AzSpringCloudTestEndpoint.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/SpringCloud/SpringCloud.Autorest/exports/Enable-AzSpringCloudTestEndpoint.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Enable-AzSpringCloudTestEndpoint.ps1 index f8966a5a2337..008891b64dfc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Enable-AzSpringCloudTestEndpoint.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Enable-AzSpringCloudTestEndpoint.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloud.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloud.ps1 index 2200dc152ffc..fdf0b5fabede 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloud.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloud.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudApp.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudApp.ps1 index 00fe9ae1748e..e2d313d7f03c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudApp.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudApp.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppBinding.ps1 index ee69c888ddf0..0f3e36e083af 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppBinding.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppCustomDomain.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppCustomDomain.ps1 index d7ad75ce0b75..7771f28aa571 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppCustomDomain.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppCustomDomain.ps1 @@ -225,8 +225,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeployment.ps1 index 5165710abac0..ee5d3a97b7a3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeployment.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeploymentLogFileUrl.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeploymentLogFileUrl.ps1 index 2adaa7ea1564..7510d65a0a75 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeploymentLogFileUrl.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudAppDeploymentLogFileUrl.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildService.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildService.ps1 index 2f563b943b56..bc8bb04dca6a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildService.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildService.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceAgentPool.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceAgentPool.ps1 index 667245b533e6..fdbd009cb544 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceAgentPool.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceAgentPool.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceBuilder.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceBuilder.ps1 index fcda1c219db1..fade79431ebd 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceBuilder.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceBuilder.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedBuildpack.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedBuildpack.ps1 index af70b7cfcf41..7b998f1c100a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedBuildpack.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedBuildpack.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedStack.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedStack.ps1 index 364bd94f07b4..69f1bcb043a6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedStack.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildServiceSupportedStack.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildpackBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildpackBinding.ps1 index 4c62c030618c..f5869812ec17 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildpackBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudBuildpackBinding.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudCertificate.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudCertificate.ps1 index 2604bb81e833..9a69474a7eae 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudCertificate.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudCertificate.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigServer.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigServer.ps1 index cf8a2af367ef..d23569b714fb 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigServer.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigServer.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigurationService.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigurationService.ps1 index 2f0fc8fe323d..04447821172c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigurationService.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudConfigurationService.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudMonitoringSetting.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudMonitoringSetting.ps1 index 6939dfd08ca3..ee2ca3bd3f75 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudMonitoringSetting.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudMonitoringSetting.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRegistry.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRegistry.ps1 index 75c3ddffffd6..8e8b862a80a0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRegistry.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRegistry.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRuntimeVersion.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRuntimeVersion.ps1 index 4fd2ef701372..d836ea9cb2f3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRuntimeVersion.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudRuntimeVersion.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/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudSku.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudSku.ps1 index 93966e514e96..4d7b73d4751a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudSku.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudSku.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudTestKey.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudTestKey.ps1 index 7d1adab1575c..5d52a860d2b0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudTestKey.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Get-AzSpringCloudTestKey.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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloud.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloud.ps1 index 0b56ce7b9be6..d19edc7ac6a1 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloud.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Service or update an exiting Service. +Create a new Service or update an exiting Service. .Description -create a new Service or update an exiting Service. +Create a new Service or update an exiting Service. .Example New-AzSpringCloud -ResourceGroupName springcloudrg -Name spring-pwsh01 -Location eastus .Example @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudApp.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudApp.ps1 index 92d5cc90eb86..227837c32f12 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudApp.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudApp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new App or update an exiting App. +Create a new App or update an exiting App. .Description -create a new App or update an exiting App. +Create a new App or update an exiting App. .Example New-AzSpringCloudApp -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -Name tools @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppBinding.ps1 index bf4f802379af..8dc6ed341791 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppBinding.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Binding or create an exiting Binding. +Create a new Binding or create an exiting Binding. .Description -create a new Binding or create an exiting Binding. +Create a new Binding or create an exiting Binding. .Example New-AzSpringCloudAppBinding -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -name redis -Key myKey -ResourceId myResourceId -AppName tools -BindingParameter @{ "useSsl"= "true" } @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppCustomDomain.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppCustomDomain.ps1 index a9f79ccf4efa..ed90498dbfd8 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppCustomDomain.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppCustomDomain.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. .Description -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. .Example New-AzSpringCloudAppCustomDomain -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -AppName gateway -Name springcloud-service.azuremicroservices.io @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppDeployment.ps1 index fba7629937d4..cdc5f3c93b20 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudAppDeployment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. .Description -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. .Example New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -ServiceName spring-cloud-service -AppName gateway -Name default @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceAgentPool.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceAgentPool.ps1 index 0b0c92fc069c..baf559cd55a7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceAgentPool.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceAgentPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update build service agent pool. +Update build service agent pool. .Description -update build service agent pool. +Update build service agent pool. .Example New-AzSpringCloudBuildServiceAgentPool -ResourceGroupName springcloudrg -ServiceName espring-pwsh01 -PoolSizeName "S1" @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceBuilder.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceBuilder.ps1 index 687e24a7f452..1aacd99ede98 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceBuilder.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildServiceBuilder.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a KPack builder. +Create a KPack builder. .Description -create a KPack builder. +Create a KPack builder. .Example New-AzSpringCloudBuildServiceBuilder -ResourceGroupName springcloudrg -ServiceName sspring-portal01 -Name builder01 -StackId 'io.buildpacks.stacks.bionic' -StackVersion 'base' @@ -242,8 +242,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildpackBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildpackBinding.ps1 index aa8cd77c20ea..135c92dca902 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildpackBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudBuildpackBinding.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a buildpack binding. +Create a buildpack binding. .Description -create a buildpack binding. +Create a buildpack binding. .Example New-AzSpringCloudBuildpackBinding -ResourceGroupName springcloudrg -ServiceName sspring-portal0 -BuilderName default -Name binging01 -BindingType 'AppDynamics' @@ -281,8 +281,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudCertificate.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudCertificate.ps1 index adf9fa447f47..7aecc499d71b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudCertificate.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudCertificate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create certificate resource. +Create certificate resource. .Description -create certificate resource. +Create certificate resource. .Example $cert = New-AzSpringCloudKeyVaultCertificateObject -Name "cert01" -VaultUri "https://xxxxxx.vault.azure.net" -Version "xxxxxxxxxxxxxxxxxxxxx" -ExcludePrivateKey $false New-AzSpringCloudCertificate -ResourceGroupName spring-rg-test -ServiceName springapp-pwsh01 -Name cert01 -Property $cert @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudConfigurationService.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudConfigurationService.ps1 index a9b5f76b665d..f2c11a494904 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudConfigurationService.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudConfigurationService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. .Description -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. .Example New-AzSpringCloudConfigurationService -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-01 @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudRegistry.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudRegistry.ps1 index 2e06f5c3cf91..8293c6ac5413 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudRegistry.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudRegistry.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. .Description -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. .Example New-AzSpringCloudRegistry -ResourceGroupName -ServiceName @@ -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/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudTestKey.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudTestKey.ps1 index 3b8cc1dfd505..a8b2b7d61d76 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudTestKey.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/New-AzSpringCloudTestKey.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/SpringCloud/SpringCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 index dd1275dba527..1f229c4265c1 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -377,8 +376,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -676,8 +674,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -975,8 +972,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -1589,8 +1584,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1863,8 +1857,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2164,8 +2157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2391,8 +2383,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2658,8 +2649,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2924,8 +2914,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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,8 +3179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3444,8 +3432,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3708,8 +3695,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3929,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) { @@ -4150,8 +4135,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4374,8 +4358,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4595,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) { @@ -4762,8 +4744,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4926,8 +4907,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5110,8 +5090,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5338,8 +5317,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5427,9 +5405,9 @@ end { <# .Synopsis -create a new Binding or create an exiting Binding. +Create a new Binding or create an exiting Binding. .Description -create a new Binding or create an exiting Binding. +Create a new Binding or create an exiting Binding. .Example New-AzSpringCloudAppBinding -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -name redis -Key myKey -ResourceId myResourceId -AppName tools -BindingParameter @{ "useSsl"= "true" } @@ -5658,8 +5636,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5748,9 +5725,9 @@ end { <# .Synopsis -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. .Description -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. .Example New-AzSpringCloudAppCustomDomain -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -AppName gateway -Name springcloud-service.azuremicroservices.io @@ -5969,8 +5946,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6059,9 +6035,9 @@ end { <# .Synopsis -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. .Description -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. .Example New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -ServiceName spring-cloud-service -AppName gateway -Name default @@ -6348,8 +6324,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6438,9 +6413,9 @@ end { <# .Synopsis -create a buildpack binding. +Create a buildpack binding. .Description -create a buildpack binding. +Create a buildpack binding. .Example New-AzSpringCloudBuildpackBinding -ResourceGroupName springcloudrg -ServiceName sspring-portal0 -BuilderName default -Name binging01 -BindingType 'AppDynamics' @@ -6703,8 +6678,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6797,9 +6771,9 @@ end { <# .Synopsis -update build service agent pool. +Update build service agent pool. .Description -update build service agent pool. +Update build service agent pool. .Example New-AzSpringCloudBuildServiceAgentPool -ResourceGroupName springcloudrg -ServiceName espring-pwsh01 -PoolSizeName "S1" @@ -7024,8 +6998,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7121,9 +7094,9 @@ end { <# .Synopsis -create a KPack builder. +Create a KPack builder. .Description -create a KPack builder. +Create a KPack builder. .Example New-AzSpringCloudBuildServiceBuilder -ResourceGroupName springcloudrg -ServiceName sspring-portal01 -Name builder01 -StackId 'io.buildpacks.stacks.bionic' -StackVersion 'base' @@ -7347,8 +7320,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7440,9 +7412,9 @@ end { <# .Synopsis -create certificate resource. +Create certificate resource. .Description -create certificate resource. +Create certificate resource. .Example $cert = New-AzSpringCloudKeyVaultCertificateObject -Name "cert01" -VaultUri "https://xxxxxx.vault.azure.net" -Version "xxxxxxxxxxxxxxxxxxxxx" -ExcludePrivateKey $false New-AzSpringCloudCertificate -ResourceGroupName spring-rg-test -ServiceName springapp-pwsh01 -Name cert01 -Property $cert @@ -7620,8 +7592,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7709,9 +7680,9 @@ end { <# .Synopsis -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. .Description -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. .Example New-AzSpringCloudConfigurationService -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-01 @@ -7892,8 +7863,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7984,9 +7954,9 @@ end { <# .Synopsis -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. .Description -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. .Example New-AzSpringCloudRegistry -ResourceGroupName -ServiceName @@ -8156,8 +8126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8405,8 +8374,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8718,8 +8686,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9030,8 +8997,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9343,8 +9309,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9620,8 +9585,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9962,8 +9926,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10271,8 +10234,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10551,8 +10513,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10819,8 +10780,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11063,8 +11023,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11374,8 +11333,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11757,8 +11715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12075,8 +12032,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12388,8 +12344,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12674,8 +12629,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13013,8 +12967,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13314,8 +13267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13510,8 +13462,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13806,8 +13757,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14164,8 +14114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14255,9 +14204,9 @@ end { <# .Synopsis -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. .Description -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. .Example Update-AzSpringCloudAppCustomDomain -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -AppName gateway -Name springcloud-service.azuremicroservices.io .Example @@ -14512,8 +14461,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14935,8 +14883,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15339,8 +15286,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15429,9 +15375,9 @@ end { <# .Synopsis -update a buildpack binding. +Update a buildpack binding. .Description -update a buildpack binding. +Update a buildpack binding. .Example Update-AzSpringCloudBuildpackBinding -ResourceGroupName springcloudrg -ServiceName sspring-portal0 -BuilderName default -Name binging01 -BindingType 'AppDynamics' @@ -15696,8 +15642,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15789,9 +15734,9 @@ end { <# .Synopsis -update build service agent pool. +Update build service agent pool. .Description -update build service agent pool. +Update build service agent pool. .Example Update-AzSpringCloudBuildServiceAgentPool -ResourceGroupName springcloudrg -ServiceName espring-pwsh01 -PoolSizeName "S1" @@ -15995,8 +15940,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16090,9 +16034,9 @@ end { <# .Synopsis -update a KPack builder. +Update a KPack builder. .Description -update a KPack builder. +Update a KPack builder. .Example Update-AzSpringCloudBuildServiceBuilder -ResourceGroupName springcloudrg -ServiceName sspring-portal01 -Name builder01 -StackId 'io.buildpacks.stacks.bionic' -StackVersion 'base' @@ -16322,8 +16266,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16414,9 +16357,9 @@ end { <# .Synopsis -update certificate resource. +Update certificate resource. .Description -update certificate resource. +Update certificate resource. .Example $cert = New-AzSpringCloudKeyVaultCertificateObject -Name "cert01" -VaultUri "https://xxxxxx.vault.azure.net" -Version "xxxxxxxxxxxxxxxxxxxxx" -ExcludePrivateKey $false Update-AzSpringCloudCertificate -ResourceGroupName spring-rg-test -ServiceName springapp-pwsh01 -Name cert01 -Property $cert @@ -16604,8 +16547,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16692,9 +16634,9 @@ end { <# .Synopsis -update the config server. +Update the config server. .Description -update the config server. +Update the config server. .Example Update-AzSpringCloudConfigServer -ResourceGroupName SpringCloud-gp-junxi -Name springcloud-service .Example @@ -16955,8 +16897,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17044,9 +16985,9 @@ end { <# .Synopsis -update the default Application Configuration Service or update the existing Application Configuration Service. +Update the default Application Configuration Service or update the existing Application Configuration Service. .Description -update the default Application Configuration Service or update the existing Application Configuration Service. +Update the default Application Configuration Service or update the existing Application Configuration Service. .Example Update-AzSpringCloudConfigurationService -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-01 -GitRepository *** @@ -17236,8 +17177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17327,9 +17267,9 @@ end { <# .Synopsis -update the Monitoring Setting. +Update the Monitoring Setting. .Description -update the Monitoring Setting. +Update the Monitoring Setting. .Example Update-AzSpringCloudMonitoringSetting -ResourceGroupName SpringCloud-gp-junxi -Name springcloud-service -AppInsightsInstrumentationKey "InstrumentationKey=xxxxxxxxxxxxxxxxxxx;IngestionEndpoint=https://xxxxxx.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/" -TraceEnabled .Example @@ -17527,8 +17467,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17817,8 +17756,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17954,7 +17892,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')] [System.String] - # The path of the file need to be deploied. + # The path of the file need to be deployed. # The file supports Jar, NetcoreZip and Source. ${FilePath}, @@ -18051,8 +17989,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18138,9 +18075,9 @@ end { <# .Synopsis -create a new Service or update an exiting Service. +Create a new Service or update an exiting Service. .Description -create a new Service or update an exiting Service. +Create a new Service or update an exiting Service. .Example New-AzSpringCloud -ResourceGroupName springcloudrg -Name spring-pwsh01 -Location eastus .Example @@ -18318,8 +18255,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18404,9 +18340,9 @@ end { <# .Synopsis -create a new App or update an exiting App. +Create a new App or update an exiting App. .Description -create a new App or update an exiting App. +Create a new App or update an exiting App. .Example New-AzSpringCloudApp -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -Name tools @@ -18615,8 +18551,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloud.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloud.ps1 index 00ad936c3118..cdc02297c811 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloud.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloud.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudApp.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudApp.ps1 index ae876f807192..055e9e66b21c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudApp.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudApp.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppBinding.ps1 index cc90cb8bd781..a1811e108747 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppBinding.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppCustomDomain.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppCustomDomain.ps1 index ecc4315fdaa4..1d7af10f3edc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppCustomDomain.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppCustomDomain.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppDeployment.ps1 index c4792cd5e267..35201fc105eb 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudAppDeployment.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildServiceBuilder.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildServiceBuilder.ps1 index a3137f394a07..3920255bc783 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildServiceBuilder.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildServiceBuilder.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildpackBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildpackBinding.ps1 index be0aee8a3786..f1f0b8f22c19 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildpackBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudBuildpackBinding.ps1 @@ -270,8 +270,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudCertificate.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudCertificate.ps1 index b7123618df4f..bec1adb736be 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudCertificate.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudCertificate.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/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudConfigurationService.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudConfigurationService.ps1 index fdd60a6848a7..02e46744295f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudConfigurationService.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Remove-AzSpringCloudConfigurationService.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/SpringCloud/SpringCloud.Autorest/exports/Restart-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Restart-AzSpringCloudAppDeployment.ps1 index c27f6b39df28..a09410d69cd9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Restart-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Restart-AzSpringCloudAppDeployment.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/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeployment.ps1 index 56d34bb223ee..4ae1780fdab7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeployment.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/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeploymentJfr.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeploymentJfr.ps1 index 24ea718128e1..018a3696a989 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeploymentJfr.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Start-AzSpringCloudAppDeploymentJfr.ps1 @@ -310,8 +310,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Stop-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Stop-AzSpringCloudAppDeployment.ps1 index ce625b16f1fe..051bd332faf4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Stop-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Stop-AzSpringCloudAppDeployment.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/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudAppCustomDomain.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudAppCustomDomain.ps1 index 5ca1ba93de14..8ea426de1c6a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudAppCustomDomain.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudAppCustomDomain.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/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigServer.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigServer.ps1 index bacf203b1230..0f39230b576b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigServer.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigServer.ps1 @@ -265,8 +265,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigurationService.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigurationService.ps1 index a1b8910dfe9a..7fb83ed93f9d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigurationService.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudConfigurationService.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/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudNameAvailability.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudNameAvailability.ps1 index 45de71296126..6454d954341d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudNameAvailability.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Test-AzSpringCloudNameAvailability.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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloud.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloud.ps1 index 43a0b47c7018..760aa00bc3ae 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloud.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloud.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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudApp.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudApp.ps1 index 8dc15cb75866..2d11d505681c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudApp.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudApp.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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppActiveDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppActiveDeployment.ps1 index aad9cb910e7b..15ab830205a7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppActiveDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppActiveDeployment.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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppBinding.ps1 index 02af8777bf42..e162abddfdbf 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppBinding.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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppCustomDomain.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppCustomDomain.ps1 index cf80e39d5cb1..29e2d7eed62d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppCustomDomain.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppCustomDomain.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. .Description -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. .Example Update-AzSpringCloudAppCustomDomain -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -AppName gateway -Name springcloud-service.azuremicroservices.io .Example @@ -273,8 +273,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppDeployment.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppDeployment.ps1 index c5ec6116780e..eb8d401fa886 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppDeployment.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudAppDeployment.ps1 @@ -348,8 +348,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceAgentPool.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceAgentPool.ps1 index 3154adc9eff3..186f3c412046 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceAgentPool.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceAgentPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update build service agent pool. +Update build service agent pool. .Description -update build service agent pool. +Update build service agent pool. .Example Update-AzSpringCloudBuildServiceAgentPool -ResourceGroupName springcloudrg -ServiceName espring-pwsh01 -PoolSizeName "S1" @@ -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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceBuilder.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceBuilder.ps1 index 7f3a71880f8a..8e6806fb48df 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceBuilder.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildServiceBuilder.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a KPack builder. +Update a KPack builder. .Description -update a KPack builder. +Update a KPack builder. .Example Update-AzSpringCloudBuildServiceBuilder -ResourceGroupName springcloudrg -ServiceName sspring-portal01 -Name builder01 -StackId 'io.buildpacks.stacks.bionic' -StackVersion 'base' @@ -248,8 +248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildpackBinding.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildpackBinding.ps1 index b62e191fa02d..3b9b610a1b8e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildpackBinding.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudBuildpackBinding.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a buildpack binding. +Update a buildpack binding. .Description -update a buildpack binding. +Update a buildpack binding. .Example Update-AzSpringCloudBuildpackBinding -ResourceGroupName springcloudrg -ServiceName sspring-portal0 -BuilderName default -Name binging01 -BindingType 'AppDynamics' @@ -283,8 +283,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudCertificate.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudCertificate.ps1 index 03839463e5da..8e3c5b2a7a4a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudCertificate.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudCertificate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update certificate resource. +Update certificate resource. .Description -update certificate resource. +Update certificate resource. .Example $cert = New-AzSpringCloudKeyVaultCertificateObject -Name "cert01" -VaultUri "https://xxxxxx.vault.azure.net" -Version "xxxxxxxxxxxxxxxxxxxxx" -ExcludePrivateKey $false Update-AzSpringCloudCertificate -ResourceGroupName spring-rg-test -ServiceName springapp-pwsh01 -Name cert01 -Property $cert @@ -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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigServer.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigServer.ps1 index 06f7dd6ebc72..cb4dab254d8e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigServer.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigServer.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the config server. +Update the config server. .Description -update the config server. +Update the config server. .Example Update-AzSpringCloudConfigServer -ResourceGroupName SpringCloud-gp-junxi -Name springcloud-service .Example @@ -279,8 +279,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigurationService.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigurationService.ps1 index 5e106d6633aa..af822e91815c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigurationService.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudConfigurationService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the default Application Configuration Service or update the existing Application Configuration Service. +Update the default Application Configuration Service or update the existing Application Configuration Service. .Description -update the default Application Configuration Service or update the existing Application Configuration Service. +Update the default Application Configuration Service or update the existing Application Configuration Service. .Example Update-AzSpringCloudConfigurationService -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-01 -GitRepository *** @@ -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/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudMonitoringSetting.ps1 b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudMonitoringSetting.ps1 index bd9c5e155676..4de6635fad47 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudMonitoringSetting.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/exports/Update-AzSpringCloudMonitoringSetting.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the Monitoring Setting. +Update the Monitoring Setting. .Description -update the Monitoring Setting. +Update the Monitoring Setting. .Example Update-AzSpringCloudMonitoringSetting -ResourceGroupName SpringCloud-gp-junxi -Name springcloud-service -AppInsightsInstrumentationKey "InstrumentationKey=xxxxxxxxxxxxxxxxxxx;IngestionEndpoint=https://xxxxxx.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/" -TraceEnabled .Example @@ -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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_Disable.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_Disable.cs index 39dd734d7efc..056ae5a8fab9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_Disable.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_Disable.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] DisableTestEndpoint=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzSpringCloudTestEndpoint_Disable", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable test endpoint functionality for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -491,7 +491,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_DisableViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_DisableViaIdentity.cs index ca88e5f40306..d782b6e0ebe5 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_DisableViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/DisableAzSpringCloudTestEndpoint_DisableViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] DisableTestEndpoint=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzSpringCloudTestEndpoint_DisableViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable test endpoint functionality for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -466,7 +466,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_Enable.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_Enable.cs index c09938e6ef6e..5b47ca42878f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_Enable.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_Enable.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] EnableTestEndpoint=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzSpringCloudTestEndpoint_Enable", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Enable test endpoint functionality for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_EnableViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_EnableViaIdentity.cs index 3342d071ff92..6b72d9e40b2b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_EnableViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/EnableAzSpringCloudTestEndpoint_EnableViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] EnableTestEndpoint=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzSpringCloudTestEndpoint_EnableViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Enable test endpoint functionality for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_Get.cs index ea8cb6a0586e..292e7f911ae5 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppBinding_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Binding and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentity.cs index d03d45c911b2..26e99aee9248 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppBinding_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Binding and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentityApp.cs index 76ceb827307c..faee4150ead0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppBinding_GetViaIdentityApp")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Binding and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentitySpring.cs index 5787678166f4..3af3edcf4e0e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppBinding_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Binding and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_List.cs index 329b777ebf78..ce2bfdc7154f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppBinding_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppBinding_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Handles requests to list all resources in an App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_Get.cs index c22c616b7395..febbb2c44262 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppCustomDomain_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentity.cs index cb505897b0c0..4e8fe63553ba 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppCustomDomain_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentityApp.cs index bcab5bfb72a7..5e90fc6ea65c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppCustomDomain_GetViaIdentityApp")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentitySpring.cs index 1bc2c3e512e3..9c6298e47bdb 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppCustomDomain_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_List.cs index 2073f442e655..a5e748778a21 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppCustomDomain_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppCustomDomain_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List the custom domains of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_Get.cs index d8ae9a963526..051c9b702a8b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetLogFileUrl=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeploymentLogFileUrl_Get", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ILogFileUrlResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get deployment log file URL")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -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); } diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentity.cs index b30801ff9558..ebbfd70f499d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetLogFileUrl=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeploymentLogFileUrl_GetViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ILogFileUrlResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get deployment log file URL")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentityApp.cs index ecb70c710367..c027cbae2802 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetLogFileUrl=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeploymentLogFileUrl_GetViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ILogFileUrlResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get deployment log file URL")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -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); } diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentitySpring.cs index a64344170706..f32a707a72ed 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeploymentLogFileUrl_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetLogFileUrl=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeploymentLogFileUrl_GetViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ILogFileUrlResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get deployment log file URL")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -507,7 +507,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_Get.cs index 32bc5b943618..a6d0e9df3cb7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeployment_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Deployment and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentity.cs index 10630c689b0a..34e40eec51ba 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeployment_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Deployment and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentityApp.cs index 004f1a491d28..597867400593 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeployment_GetViaIdentityApp")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Deployment and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentitySpring.cs index 1804f47ba1e5..72648f47a007 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeployment_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Deployment and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List.cs index 70122d5b7e7b..c38cb2fc54ce 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeployment_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Handles requests to list all resources in an App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List1.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List1.cs index 767110b96ecd..4cee4c074cc4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List1.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppDeployment_List1.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ListForCluster=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppDeployment_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List deployments for a certain service")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_Get.cs index e519488846ba..0a50abfd96bf 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppResourceUploadUrl_Get", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceUploadDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an resource upload URL for an App, which may be artifacts or source archive.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentity.cs index 057267bab969..23f8d572eeb6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppResourceUploadUrl_GetViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceUploadDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an resource upload URL for an App, which may be artifacts or source archive.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentitySpring.cs index 9b1a183b08e1..2565e9e06c81 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudAppResourceUploadUrl_GetViaIdentitySpring.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudAppResourceUploadUrl_GetViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceUploadDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an resource upload URL for an App, which may be artifacts or source archive.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_Get.cs index 5b107048521e..96d655d4a463 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudApp_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an App and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentity.cs index bcecc9f7b4bd..09af63cf7879 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudApp_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an App and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentitySpring.cs index 2b440e573a19..cbefa8acf3d9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudApp_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an App and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_List.cs index 2bcc7e05e9a3..6a6990adb326 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudApp_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudApp_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Handles requests to list all resources in a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_Get.cs index d3a2e65e6334..fc608f718018 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceAgentPool_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_GetViaIdentity.cs index 986ca899c4cc..1eb02300d200 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceAgentPool_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceAgentPool_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_Get.cs index dc8a0555697d..ba71e476a26f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_Get.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResultLog_Get", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResultLog))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result log download URL.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentity.cs index 661de062a2ef..40dee47e0e11 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResultLog_GetViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResultLog))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result log download URL.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuild.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuild.cs index 4d9c31320701..70debe761709 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuild.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuild.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuild", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResultLog))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result log download URL.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuildService.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuildService.cs index 424470d59aa9..e9de8959a706 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuildService.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuildService.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResultLog_GetViaIdentityBuildService", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResultLog))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result log download URL.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentitySpring.cs index 4fbac9098526..54b04d7c7c30 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResultLog_GetViaIdentitySpring.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResultLog_GetViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResultLog))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result log download URL.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_Get.cs index a7e707b2c586..583fd5e29144 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_Get.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResult_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentity.cs index 3605dec26d1c..36e7170ba079 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResult_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuild.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuild.cs index 6fa3556b5df2..74f2c7b61aad 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuild.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuild.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResult_GetViaIdentityBuild")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuildService.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuildService.cs index 51daa1fa6af6..5cdc801c9164 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuildService.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentityBuildService.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResult_GetViaIdentityBuildService")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentitySpring.cs index 319b21deb85e..dc28c4455425 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_GetViaIdentitySpring.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResult_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_List.cs index 901e09cd64ec..165ae28a8bfc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuildResult_List.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuildResult_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List KPack build results.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_Get.cs index 2df62f4e70c0..c5caae01debc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_Get.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuild_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentity.cs index e6bf5b2bd915..dcc701747ece 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuild_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentityBuildService.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentityBuildService.cs index 7785db337de7..6c19da7905fc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentityBuildService.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentityBuildService.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuild_GetViaIdentityBuildService")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentitySpring.cs index 9f7aa69114a3..a311383d8162 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_GetViaIdentitySpring.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuild_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_List.cs index 3ed202537080..18c96d7891a3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuild_List.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuild_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List KPack builds.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_Get.cs index 0e8620fde8a8..edf548badd1b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuilder_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentity.cs index dca5771d2a55..6f52f560e2c0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuilder_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentitySpring.cs index 9c7c9b38f222..62a82a461bc8 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuilder_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_List.cs index 3b9032bb9580..c01502d70ff5 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceBuilder_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceBuilder_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List KPack builders result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_Get.cs index 5adfd12ad389..65c3981dcca2 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceResourceUploadUrl_Get", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceUploadDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an resource upload URL for build service, which may be artifacts or source archive.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentity.cs index cddb54503725..7aa0df85065e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceUploadDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an resource upload URL for build service, which may be artifacts or source archive.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentitySpring.cs index 51886a2242b4..2aa1c7099763 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentitySpring.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceResourceUploadUrl_GetViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceUploadDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get an resource upload URL for build service, which may be artifacts or source archive.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_Get.cs index 8c1bbec81ba2..f7468ec1987d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetSupportedBuildpack=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedBuildpack_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedBuildpackResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the supported buildpack resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentity.cs index 2321fc5681d8..257d375c12f0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetSupportedBuildpack=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedBuildpackResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the supported buildpack resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentitySpring.cs index 6e6fd3b078cb..1fbaefb1b3a9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetSupportedBuildpack=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedBuildpack_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedBuildpackResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the supported buildpack resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_List.cs index 70225dcbed1c..379a068db48e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedBuildpack_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ListSupportedBuildpacks=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedBuildpack_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedBuildpacksCollection))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get all supported buildpacks.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_Get.cs index f76230a44caa..662b16961aee 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetSupportedStack=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedStack_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedStackResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the supported stack resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentity.cs index dd289a3916dc..9a3e0c8a058d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetSupportedStack=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedStack_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedStackResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the supported stack resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentitySpring.cs index 608bf4ad6a2f..dac52e54250f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetSupportedStack=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedStack_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedStackResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the supported stack resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_List.cs index 59d216a0f62b..faa26a7c3eaa 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildServiceSupportedStack_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ListSupportedStacks=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildServiceSupportedStack_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISupportedStacksCollection))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get all supported stacks.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_Get.cs index 4cf35af7904b..23d3061b9d86 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetBuildService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildService_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildService))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a build service resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentity.cs index dddd0fbf099d..dcd44c422793 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetBuildService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildService_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildService))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a build service resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentitySpring.cs index ef38f774a456..d31ad51752cd 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildService_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] GetBuildService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildService_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildService))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a build service resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_Get.cs index 966eacc84d27..0085dfa36e46 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildpackBinding_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a buildpack binding by name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentity.cs index f0001fa6ebb2..7c21412c1ccc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildpackBinding_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a buildpack binding by name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentityBuilder.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentityBuilder.cs index 2d24a7fc973e..d8ffacc452d3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentityBuilder.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentityBuilder.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildpackBinding_GetViaIdentityBuilder")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a buildpack binding by name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentitySpring.cs index 96b27f395131..184a46652b57 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildpackBinding_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a buildpack binding by name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_List.cs index 4ed2e36820e6..a5bb8e649ba3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudBuildpackBinding_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudBuildpackBinding_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Handles requests to list all buildpack bindings in a builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_Get.cs index 4b749f38582f..06274118f9e9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudCertificate_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentity.cs index d2fcac32e12f..d687d034783c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudCertificate_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentitySpring.cs index 0c50bd173729..46c877baf056 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_GetViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudCertificate_GetViaIdentitySpring")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_List.cs index 89fa00a09ac7..e1308b65027f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudCertificate_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudCertificate_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List all the certificates of one user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_Get.cs index 750a71d76e00..8e67aed4be9f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudConfigServer_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the config server and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_GetViaIdentity.cs index 4fddd0c7ff7a..780599051699 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigServer_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudConfigServer_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the config server and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_Get.cs index 6e94d2580d12..eb43af9b3f5b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudConfigurationService_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the Application Configuration Service and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_GetViaIdentity.cs index 57bcb1f4caad..36821f4da2d7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudConfigurationService_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudConfigurationService_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the Application Configuration Service and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_Get.cs index e262cb1c6251..29757fd8e47d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudMonitoringSetting_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the Monitoring Setting and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_GetViaIdentity.cs index e79bb5a96400..1628c16c289c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudMonitoringSetting_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudMonitoringSetting_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the Monitoring Setting and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudOperation_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudOperation_List.cs index 7945c2bca7fa..cad2278ec255 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudOperation_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudOperation_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudOperation_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IOperationDetail))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Lists all of the available REST API operations of the Microsoft.AppPlatform provider.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_Get.cs index 95d2dfc0748e..dc4a25a16393 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudRegistry_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceRegistryResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the Service Registry and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_GetViaIdentity.cs index ab30a373fff2..c420f1017d64 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRegistry_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudRegistry_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceRegistryResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get the Service Registry and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRuntimeVersion_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRuntimeVersion_List.cs index 21637406c7b6..4256d216e3ff 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRuntimeVersion_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudRuntimeVersion_List.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ListRuntimeVersions=>GET:"/providers/Microsoft.AppPlatform/runtimeVersions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudRuntimeVersion_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAvailableRuntimeVersions))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Lists all of the available runtime versions supported by Microsoft.AppPlatform provider.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudSku_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudSku_List.cs index ce7fe761145c..209be200ec95 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudSku_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudSku_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudSku_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IResourceSku))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Lists all of the available skus of the Microsoft.AppPlatform provider.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudTestKey_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudTestKey_List.cs index abf9a6294640..1be2d6c07200 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudTestKey_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloudTestKey_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ListTestKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloudTestKey_List", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"List test keys for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_Get.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_Get.cs index 7d8cd155e4a6..39010e63cf21 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_Get.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloud_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Service and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_GetViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_GetViaIdentity.cs index f9387e57da8d..5b277027b817 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_GetViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloud_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Get a Service and its properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List.cs index d295dd426b65..ba20f2ebae73 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloud_List")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Handles requests to list all resources in a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List1.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List1.cs index a814c4113493..370d93639bf6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List1.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/GetAzSpringCloud_List1.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzSpringCloud_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Handles requests to list all resources in a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateExpanded.cs index 6cc1039645f1..fa9ebe25258f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppBinding_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Binding or create an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppBinding_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; - - /// - /// 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 _appName; @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentityAppExpanded.cs index 170f16b82931..6098943b8265 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppBinding_CreateViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Binding or create an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppBinding_CreateViaIdentityAppExpanded : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -258,11 +249,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentitySpringExpanded.cs index 921fb3f3ed97..3e840d0c2f56 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppBinding_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Binding or create an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppBinding_CreateViaIdentitySpringExpanded /// 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 _appName; @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonFilePath.cs index 785aefe521e9..702a6a64e310 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppBinding_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Binding or create an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudAppBinding_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; - /// Backing field for property. private string _appName; @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonString.cs index b4d5a3504b73..99cf1a8cdb62 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppBinding_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppBinding_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Binding or create an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudAppBinding_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; - /// Backing field for property. private string _appName; @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -618,24 +604,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateExpanded.cs index adea75a269d6..575c4ca387e4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppCustomDomain_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppCustomDomain_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; - /// Backing field for property. private string _appName; @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentityAppExpanded.cs index 33a303eeefe8..2fb143ab52bb 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppCustomDomain_CreateViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppCustomDomain_CreateViaIdentityAppExpande /// 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 Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -247,11 +238,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,24 +578,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentitySpringExpanded.cs index 58ac6a1b7016..eea9da540f47 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppCustomDomain_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppCustomDomain_CreateViaIdentitySpringExpa /// 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 _appName; @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonFilePath.cs index 450cb8f5f7d7..282b6ff71546 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppCustomDomain_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudAppCustomDomain_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; - /// Backing field for property. private string _appName; @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonString.cs index 31284aebc94b..cebdeaf24cd0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppCustomDomain_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppCustomDomain_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudAppCustomDomain_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; - /// Backing field for property. private string _appName; @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateExpanded.cs index 57fcbae219c9..937c4505d826 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppDeployment_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Deployment or create an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppDeployment_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; - - /// - /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -394,11 +385,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -714,24 +700,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentityAppExpanded.cs index 82e6668885ba..7433a1bd5a92 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppDeployment_CreateViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Deployment or create an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppDeployment_CreateViaIdentityAppExpanded /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -678,24 +664,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentitySpringExpanded.cs index 5f47350cd7e9..962c5219516b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppDeployment_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Deployment or create an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudAppDeployment_CreateViaIdentitySpringExpand /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -348,11 +339,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -690,24 +676,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonFilePath.cs index d8ed52e62053..424725587316 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppDeployment_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Deployment or create an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudAppDeployment_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; - /// Backing field for property. private string _appName; @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonString.cs index 4b7be9c5acfa..8a096f861190 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudAppDeployment_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudAppDeployment_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Deployment or create an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudAppDeployment_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; - /// Backing field for property. private string _appName; @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -618,24 +604,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateExpanded.cs index c95bffa8eef4..e0fb9e3f302d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudApp_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new App or create an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -45,15 +45,6 @@ public partial class NewAzSpringCloudApp_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; - /// Collection of addons [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Collection of addons")] @@ -422,11 +413,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -742,24 +728,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaIdentitySpringExpanded.cs index f9b373234b82..7487c2349632 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaIdentitySpringExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudApp_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new App or create an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -45,15 +45,6 @@ public partial class NewAzSpringCloudApp_CreateViaIdentitySpringExpanded : 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; - /// Collection of addons [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Collection of addons")] @@ -374,11 +365,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -715,24 +701,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonFilePath.cs index 68d35bec08ef..cd1bf8a4f43f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonFilePath.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudApp_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new App or create an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -43,17 +43,8 @@ public partial class NewAzSpringCloudApp_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonString.cs index 6461bf703731..75880199ac69 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudApp_CreateViaJsonString.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudApp_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new App or create an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -43,15 +43,6 @@ public partial class NewAzSpringCloudApp_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -284,11 +275,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudAp /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs index a9e878c9a6f3..ea7936946282 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceAgentPool_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceAgentPool_UpdateExpanded : 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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -309,11 +300,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -637,24 +623,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs index 59185d48b276..95cd87de41bf 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuil /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,24 +578,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs index 72a37ce5999f..dbdb189b5b54 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpa /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs index a4fc2428fc4b..2914e59322ad 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpri /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonFilePath.cs index 45cb7593b375..069f121b2156 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceAgentPool_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonFilePath /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -313,11 +304,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonString.cs index 3cbaede113b6..ad03e8a55c7e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceAgentPool_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudBuildServiceAgentPool_UpdateViaJsonString : /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -639,24 +625,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateExpanded.cs index ac21ab05c1d5..b66544bad1f4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuild_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentityBuildServiceExpanded.cs index d6cbea06b2bc..d1f9265fd539 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentityBuildServiceExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuild_CreateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentitySpringExpanded.cs index 9ff641bcc66c..bdeaf5cc7f68 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaIdentitySpringExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuild_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonFilePath.cs index 94f9019e3965..b9b5f817b68a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonFilePath.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuild_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonString.cs index afc282b294b7..777708b806f7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuild_CreateViaJsonString.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuild_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateExpanded.cs index 5024f367935f..3d2ac64e27ef 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuilder_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceBuilder_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -326,11 +317,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -650,24 +636,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentityBuildServiceExpanded.cs index 7789e902e6c4..de4c69acf9ff 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentityBuildServiceExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuilder_CreateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceBuilder_CreateViaIdentityBuildS /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentitySpringExpanded.cs index 49d037cb43e8..2856bf01a440 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuilder_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildServiceBuilder_CreateViaIdentitySpring /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonFilePath.cs index 9e945096cb3b..c68372f8cc66 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuilder_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudBuildServiceBuilder_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonString.cs index c7e4ea5e82e8..4d01a46bc995 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildServiceBuilder_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildServiceBuilder_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudBuildServiceBuilder_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -303,11 +294,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateExpanded.cs index 93cdc102aeea..46c6dfcdb38a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildpackBinding_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildpackBinding_CreateExpanded : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -344,11 +335,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -668,24 +654,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuildServiceExpanded.cs index 32af7988d6ba..12202fad88c9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuildServiceExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildpackBinding_CreateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuildServ /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuilderExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuilderExpanded.cs index 732fb4b95d62..5381ba6e6a9c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuilderExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuilderExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildpackBinding_CreateViaIdentityBuilderExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildpackBinding_CreateViaIdentityBuilderEx /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentitySpringExpanded.cs index db7840188858..d73089c0d71f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildpackBinding_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudBuildpackBinding_CreateViaIdentitySpringExp /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonFilePath.cs index c1611fbe13d4..339c9fb93a5d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildpackBinding_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudBuildpackBinding_CreateViaJsonFilePath : 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; - 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonString.cs index da14654a763c..046415bac96b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudBuildpackBinding_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudBuildpackBinding_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudBuildpackBinding_CreateViaJsonString : 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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -319,11 +310,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudBu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateExpanded.cs index dbda4b41a849..73807d6b3887 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudCertificate_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudCertificate_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaIdentitySpringExpanded.cs index 147e571f4ebd..15e971f392c1 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudCertificate_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudCertificate_CreateViaIdentitySpringExpanded /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonFilePath.cs index 9bd649f44244..b063cf4a9781 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudCertificate_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class NewAzSpringCloudCertificate_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonString.cs index 207f4b0f4477..dce02267b263 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudCertificate_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudCertificate_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class NewAzSpringCloudCertificate_CreateViaJsonString : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateExpanded.cs index 1bad8502011f..12a12602c0a4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudConfigurationService_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Application Configuration Service or create the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class NewAzSpringCloudConfigurationService_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaIdentitySpringExpanded.cs index 514329c64b8f..59125f43b3ba 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaIdentitySpringExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudConfigurationService_CreateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Application Configuration Service or create the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class NewAzSpringCloudConfigurationService_CreateViaIdentitySprin /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,24 +578,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonFilePath.cs index 7952053f5b43..4f0683846cef 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonFilePath.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudConfigurationService_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Application Configuration Service or create the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,17 +44,8 @@ public partial class NewAzSpringCloudConfigurationService_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -295,11 +286,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonString.cs index 0f41e9d1f59d..4f44d143c205 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudConfigurationService_CreateViaJsonString.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudConfigurationService_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Application Configuration Service or create the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class NewAzSpringCloudConfigurationService_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudCo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_Create.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_Create.cs index 053732fe8770..6bd77c4cef82 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_Create.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_Create.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudRegistry_Create", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceRegistryResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Service Registry or create the existing Service Registry.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class NewAzSpringCloudRegistry_Create : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IServiceRegistryResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentity.cs index b9323fa7902e..36342e24879d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudRegistry_CreateViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceRegistryResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Service Registry or create the existing Service Registry.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class NewAzSpringCloudRegistry_CreateViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -204,11 +195,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IServiceRegistryResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentitySpring.cs index f28ba1a102b4..c360c23e0471 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudRegistry_CreateViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudRegistry_CreateViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceRegistryResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create the default Service Registry or create the existing Service Registry.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class NewAzSpringCloudRegistry_CreateViaIdentitySpring : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -226,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloudRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,24 +557,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceRegistryResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateExpanded.cs index 89b25d958ad8..bdcb6e17c94a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] RegenerateTestKey=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudTestKey_RegenerateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Regenerate a test key for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaIdentityExpanded.cs index c9e68453e79c..4437742ed655 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] RegenerateTestKey=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudTestKey_RegenerateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Regenerate a test key for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonFilePath.cs index 539af444cb5a..dab89a3da79a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] RegenerateTestKey=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudTestKey_RegenerateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Regenerate a test key for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonString.cs index 49e7e8c9cd2e..14e700351d86 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloudTestKey_RegenerateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] RegenerateTestKey=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloudTestKey_RegenerateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ITestKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Regenerate a test key for a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateExpanded.cs index 91bdeb7feed1..ae87282f5df0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloud_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Service or create an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,18 +42,9 @@ public partial class NewAzSpringCloud_CreateExpanded : 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; - /// Service resource private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ServiceResource(); - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -390,11 +381,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloud_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -710,24 +696,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonFilePath.cs index 76c228d787c7..da83d584bab3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonFilePath.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloud_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Service or create an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -43,17 +43,8 @@ public partial class NewAzSpringCloud_CreateViaJsonFilePath : 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; - 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -271,11 +262,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloud_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,24 +577,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonString.cs index b71223b7c81d..91933f2dd823 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/NewAzSpringCloud_CreateViaJsonString.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSpringCloud_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"create a new Service or create an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -43,15 +43,6 @@ public partial class NewAzSpringCloud_CreateViaJsonString : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.NewAzSpringCloud_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_Delete.cs index 05aebf428dfc..6f07f0dbedc8 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppBinding_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppBinding_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; - /// Backing field for property. private string _appName; @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,7 +600,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -638,7 +624,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentity.cs index 053dc8c3b2a1..1733b54da420 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppBinding_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppBinding_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,7 +549,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +573,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentityApp.cs index 34d2ccd003bc..791127e60ae8 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppBinding_DeleteViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppBinding_DeleteViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentitySpring.cs index bfed58b899b2..14e98e5e0e00 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppBinding_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppBinding_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppBinding_DeleteViaIdentitySpring : 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; - /// Backing field for property. private string _appName; @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,7 +573,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -611,7 +597,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_Delete.cs index 2351831ead90..d45f8afb53e3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppCustomDomain_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppCustomDomain_Delete : 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; - /// Backing field for property. private string _appName; @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,7 +599,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -637,7 +623,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentity.cs index 0104887ab3d5..b73ee846eaa2 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppCustomDomain_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentity : 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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,7 +549,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +573,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentityApp.cs index 5e5e5b7ff05e..4049cec1e108 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppCustomDomain_DeleteViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,7 +561,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -599,7 +585,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentitySpring.cs index a11cf56f2fe9..53248479cb2b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppCustomDomain_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppCustomDomain_DeleteViaIdentitySpring /// 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 _appName; @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -612,7 +598,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_Delete.cs index 3ab4e6d58b3d..0aeae17d7227 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppDeployment_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppDeployment_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; - /// Backing field for property. private string _appName; @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,7 +600,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -638,7 +624,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentity.cs index 3ea98cb2891e..75bcb95bfd72 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppDeployment_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppDeployment_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,7 +549,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +573,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentityApp.cs index 4da68627ef33..4296d59d89fa 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppDeployment_DeleteViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppDeployment_DeleteViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentitySpring.cs index 4b624d0b5c81..15e2a39644c4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudAppDeployment_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudAppDeployment_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudAppDeployment_DeleteViaIdentitySpring : /// 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 _appName; @@ -252,11 +243,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,7 +575,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -613,7 +599,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_Delete.cs index d322b4c3425a..7834c74951ba 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudApp_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete an App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudApp_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,7 +585,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -623,7 +609,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentity.cs index 8bc2becbcf8a..e1dce8cc9fb4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudApp_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete an App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudApp_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentitySpring.cs index 12f536785684..1b205f32a5f7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudApp_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudApp_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete an App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudApp_DeleteViaIdentitySpring : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -572,7 +558,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -596,7 +582,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_Delete.cs index e31576fba615..a3268052c715 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildServiceBuilder_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildServiceBuilder_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -303,11 +294,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,7 +609,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -647,7 +633,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentity.cs index 55510667b0ec..270324c92011 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildServiceBuilder_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildServiceBuilder_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,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); } @@ -589,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentityBuildService.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentityBuildService.cs index cbf2a7057fb5..4dc3a7e15338 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentityBuildService.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentityBuildService.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildServiceBuilder_DeleteViaIdentityBuildService", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentityBui /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentitySpring.cs index ddee57f5c5bd..b3a2b4dbde41 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildServiceBuilder_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildServiceBuilder_DeleteViaIdentitySpr /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -257,11 +248,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,7 +585,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -623,7 +609,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_Delete.cs index 7d7ef57a814e..9099552cd1c9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildpackBinding_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Buildpack Binding")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildpackBinding_Delete : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -319,11 +310,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -639,7 +625,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -663,7 +649,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentity.cs index 4818ad6cc8c5..b10eccac8a1f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildpackBinding_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Buildpack Binding")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,7 +553,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -591,7 +577,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuildService.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuildService.cs index 402039a2daa8..866974e64eed 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuildService.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuildService.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildpackBinding_DeleteViaIdentityBuildService", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Buildpack Binding")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuildS /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -252,11 +243,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -618,7 +604,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuilder.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuilder.cs index 2d6868e8be2d..6adc621e61f5 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuilder.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuilder.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildpackBinding_DeleteViaIdentityBuilder", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Buildpack Binding")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentityBuilde /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +592,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentitySpring.cs index 41269e9cbb5b..a4b68a42e25c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudBuildpackBinding_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Buildpack Binding")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudBuildpackBinding_DeleteViaIdentitySpring /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -273,11 +264,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,7 +600,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -638,7 +624,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_Delete.cs index 40a7b5dbfb15..365bb1d90fc4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudCertificate_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudCertificate_Delete : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,7 +585,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -623,7 +609,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentity.cs index 12781def687a..0c84e8f7b4d4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudCertificate_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudCertificate_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentitySpring.cs index 4d444592b9c5..1d8e97e9dea5 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudCertificate_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudCertificate_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Delete the certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudCertificate_DeleteViaIdentitySpring : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -572,7 +558,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -596,7 +582,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_Delete.cs index f28506142997..12114d97c66b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudConfigurationService_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable the default Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudConfigurationService_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -289,11 +280,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -609,7 +595,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -633,7 +619,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentity.cs index f12a765f0d04..fcba37fc0d7f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudConfigurationService_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable the default Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudConfigurationService_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +571,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentitySpring.cs index 5f61fc33a52f..0c90b15079ca 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudConfigurationService_DeleteViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudConfigurationService_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable the default Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloudConfigurationService_DeleteViaIdentitySp /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -243,11 +234,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,7 +571,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -609,7 +595,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_Delete.cs index b0ee198bd60a..5aa343690b0f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudRegistry_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable the default Service Registry.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class RemoveAzSpringCloudRegistry_Delete : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -610,7 +596,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -634,7 +620,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentity.cs index 2b281e917b3f..60ea8b66daa8 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudRegistry_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable the default Service Registry.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class RemoveAzSpringCloudRegistry_DeleteViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentitySpring.cs index 9c8f9a4bdf9d..2f8c6997d4c6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloudRegistry_DeleteViaIdentitySpring.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloudRegistry_DeleteViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Disable the default Service Registry.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class RemoveAzSpringCloudRegistry_DeleteViaIdentitySpring : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,7 +569,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -607,7 +593,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_Delete.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_Delete.cs index 487a5d36bfdb..6f831a9e09cd 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_Delete.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloud_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloud_Delete : global::System.Management.Auto /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,7 +570,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -608,7 +594,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_DeleteViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_DeleteViaIdentity.cs index 06f73c8d2c16..aa5fccc4e597 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_DeleteViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RemoveAzSpringCloud_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzSpringCloud_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to delete a Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzSpringCloud_DeleteViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RemoveAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_Restart.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_Restart.cs index e156d340827a..566e3beda5de 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_Restart.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_Restart.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzSpringCloudAppDeployment_Restart", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Restart the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RestartAzSpringCloudAppDeployment_Restart : 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; - /// Backing field for property. private string _appName; @@ -288,11 +279,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RestartAzSpringClo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,7 +590,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentity.cs index 744da3ca246f..a42a4376494d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzSpringCloudAppDeployment_RestartViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Restart the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RestartAzSpringCloudAppDeployment_RestartViaIdentity : 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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -209,11 +200,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RestartAzSpringClo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,7 +539,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentityApp.cs index 33968e7a9093..b5d668fdd346 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzSpringCloudAppDeployment_RestartViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Restart the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RestartAzSpringCloudAppDeployment_RestartViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -225,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RestartAzSpringClo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,7 +552,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentitySpring.cs index b69fc2628927..5a199c5a3206 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/RestartAzSpringCloudAppDeployment_RestartViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzSpringCloudAppDeployment_RestartViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Restart the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class RestartAzSpringCloudAppDeployment_RestartViaIdentitySpring /// 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 _appName; @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.RestartAzSpringClo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -579,7 +565,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartExpanded.cs index 33eea0315e89..1ed9573807d7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartExpanded : 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; - /// App instance name [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "App instance name")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -324,11 +315,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,7 +626,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentity.cs index 9b6abbba1e8f..7e9de97e3b34 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityApp.cs index a997b5a7975c..d9624cded42c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityAppExpanded.cs index e612a349d443..ad7e0e1a6397 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaIdentityAppExpan /// 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 Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,7 +591,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityExpanded.cs index 230c75c1e12c..cf9c156d71ea 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaIdentityExpanded /// 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; - /// App instance name [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "App instance name")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpring.cs index 0e08ba604d69..812ee9660ec2 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpring : /// 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 _appName; @@ -256,11 +247,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpringExpanded.cs index 6c4e06a96456..387b59a600c7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaIdentitySpringEx /// 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; - /// App instance name [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "App instance name")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonFilePath.cs index 6c53cf6ab33f..76a22566bd21 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaJsonFilePath : 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; - /// Backing field for property. private string _appName; @@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,7 +606,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonString.cs index 52679084c58a..69e00b5f4933 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeploymentJfr_StartViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] StartJFR=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeploymentJfr_StartViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start JFR")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class StartAzSpringCloudAppDeploymentJfr_StartViaJsonString : 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; - /// Backing field for property. private string _appName; @@ -302,11 +293,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -618,7 +604,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_Start.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_Start.cs index c56cac31a3c9..8109d4f42af3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_Start.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_Start.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeployment_Start", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeployment_Start : 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; - /// Backing field for property. private string _appName; @@ -288,11 +279,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,7 +590,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentity.cs index 77dc4b79667f..ae25c7d8bb5b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeployment_StartViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeployment_StartViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -209,11 +200,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,7 +539,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentityApp.cs index c50e9d732ee1..5c38b99ed960 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeployment_StartViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeployment_StartViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -225,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,7 +552,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentitySpring.cs index e8744cc2d612..eacbc36938b5 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StartAzSpringCloudAppDeployment_StartViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzSpringCloudAppDeployment_StartViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Start the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StartAzSpringCloudAppDeployment_StartViaIdentitySpring : 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; - /// Backing field for property. private string _appName; @@ -240,11 +231,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StartAzSpringCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_Stop.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_Stop.cs index dafcc840f1f5..2d50f83f4809 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_Stop.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_Stop.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzSpringCloudAppDeployment_Stop", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Stop the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StopAzSpringCloudAppDeployment_Stop : 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; - /// Backing field for property. private string _appName; @@ -288,11 +279,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StopAzSpringCloudA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,7 +590,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentity.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentity.cs index b51b828276c1..a9ba5a8bcbad 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentity.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzSpringCloudAppDeployment_StopViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Stop the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StopAzSpringCloudAppDeployment_StopViaIdentity : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -209,11 +200,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StopAzSpringCloudA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,7 +539,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentityApp.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentityApp.cs index fe486e2aa8e9..c668a7465272 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentityApp.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentityApp.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzSpringCloudAppDeployment_StopViaIdentityApp", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Stop the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StopAzSpringCloudAppDeployment_StopViaIdentityApp : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -225,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StopAzSpringCloudA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,7 +552,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentitySpring.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentitySpring.cs index 78879053135d..4cfe4c0e7aa3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentitySpring.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/StopAzSpringCloudAppDeployment_StopViaIdentitySpring.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzSpringCloudAppDeployment_StopViaIdentitySpring", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Stop the deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class StopAzSpringCloudAppDeployment_StopViaIdentitySpring : 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; - - /// - /// 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 _appName; @@ -240,11 +231,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.StopAzSpringCloudA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateExpanded.cs index bb7429b98497..6aac71ed5176 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ValidateDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudAppCustomDomain_ValidateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check the resource name is valid as well as not in use.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentityExpanded.cs index d686494eb061..1722bea3bc26 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ValidateDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudAppCustomDomain_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check the resource name is valid as well as not in use.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentitySpringExpanded.cs index 43cf5f3e3ea2..48bb65714c78 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ValidateDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudAppCustomDomain_ValidateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check the resource name is valid as well as not in use.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonFilePath.cs index f20509530b25..38633dbc8521 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ValidateDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudAppCustomDomain_ValidateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check the resource name is valid as well as not in use.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonString.cs index dc14a6637a96..65c3205e0e17 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudAppCustomDomain_ValidateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] ValidateDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudAppCustomDomain_ValidateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check the resource name is valid as well as not in use.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateExpanded.cs index e9544c150364..d49d7c6c1fb9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigServer_ValidateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the config server settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class TestAzSpringCloudConfigServer_ValidateExpanded : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -368,11 +359,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -688,24 +674,7 @@ public TestAzSpringCloudConfigServer_ValidateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaIdentityExpanded.cs index a974a95a5e22..49836674e50a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigServer_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the config server settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class TestAzSpringCloudConfigServer_ValidateViaIdentityExpanded : /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -322,11 +313,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -662,24 +648,7 @@ public TestAzSpringCloudConfigServer_ValidateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonFilePath.cs index 0920b2109083..8571467705c1 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigServer_ValidateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the config server settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class TestAzSpringCloudConfigServer_ValidateViaJsonFilePath : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,24 +575,7 @@ public TestAzSpringCloudConfigServer_ValidateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonString.cs index a20e4e2d2b92..fdf8d61365dd 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigServer_ValidateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigServer_ValidateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the config server settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class TestAzSpringCloudConfigServer_ValidateViaJsonString : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ public TestAzSpringCloudConfigServer_ValidateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateExpanded.cs index 1d91509048d9..1520872c1172 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigurationService_ValidateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the Application Configuration Service settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class TestAzSpringCloudConfigurationService_ValidateExpanded : 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; - /// The settings of Application Configuration Service. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettings _settingsBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ConfigurationServiceSettings(); @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,24 +600,7 @@ public TestAzSpringCloudConfigurationService_ValidateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentityExpanded.cs index 2de881ff0d4c..b4d58758c7de 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigurationService_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the Application Configuration Service settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class TestAzSpringCloudConfigurationService_ValidateViaIdentityEx /// 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; - /// The settings of Application Configuration Service. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettings _settingsBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ConfigurationServiceSettings(); @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,24 +553,7 @@ public TestAzSpringCloudConfigurationService_ValidateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentitySpringExpanded.cs index 5d6966f65828..6d564dda2a51 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigurationService_ValidateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the Application Configuration Service settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,15 +41,6 @@ public partial class TestAzSpringCloudConfigurationService_ValidateViaIdentitySp /// 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; - /// The settings of Application Configuration Service. private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettings _settingsBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ConfigurationServiceSettings(); @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ public TestAzSpringCloudConfigurationService_ValidateViaIdentitySpringExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonFilePath.cs index 3b0b56b3bbef..063d91f80284 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigurationService_ValidateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the Application Configuration Service settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class TestAzSpringCloudConfigurationService_ValidateViaJsonFilePa /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -618,24 +604,7 @@ public TestAzSpringCloudConfigurationService_ValidateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonString.cs index 4bebe025fcd0..eace82e285cd 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudConfigurationService_ValidateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Validate=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudConfigurationService_ValidateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Check if the Application Configuration Service settings are valid.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class TestAzSpringCloudConfigurationService_ValidateViaJsonString /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.TestAzSpringCloudC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ public TestAzSpringCloudConfigurationService_ValidateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceSettingsValidateResult 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudNameAvailability_CheckExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudNameAvailability_CheckExpanded.cs index 034346ee1a3f..dc21e8ccc28a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudNameAvailability_CheckExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/TestAzSpringCloudNameAvailability_CheckExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CheckNameAvailability=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzSpringCloudNameAvailability_CheckExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.INameAvailability))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Checks that the resource name is valid and is not already in use.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetExpanded.cs index 94aeb854d169..41cffa82b031 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] SetActiveDeployments=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppActiveDeployment_SetExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Set existing Deployment under the app as active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzSpringCloudAppActiveDeployment_SetExpanded : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ public UpdateAzSpringCloudAppActiveDeployment_SetExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentityExpanded.cs index 08f3a9a2ae3c..699818b29ea3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] SetActiveDeployments=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppActiveDeployment_SetViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Set existing Deployment under the app as active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzSpringCloudAppActiveDeployment_SetViaIdentityExpand /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,24 +555,7 @@ public UpdateAzSpringCloudAppActiveDeployment_SetViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentitySpringExpanded.cs index ec89045be8c0..6f876f466d1a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] SetActiveDeployments=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppActiveDeployment_SetViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Set existing Deployment under the app as active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzSpringCloudAppActiveDeployment_SetViaIdentitySpring /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzSpringCloudAppActiveDeployment_SetViaIdentitySpringExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonFilePath.cs index ff88125ac3ab..7e37dd13264d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] SetActiveDeployments=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppActiveDeployment_SetViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Set existing Deployment under the app as active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudAppActiveDeployment_SetViaJsonFilePath : /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ public UpdateAzSpringCloudAppActiveDeployment_SetViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonString.cs index 58e24185e181..2b7eea66cf17 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppActiveDeployment_SetViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] SetActiveDeployments=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppActiveDeployment_SetViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Set existing Deployment under the app as active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudAppActiveDeployment_SetViaJsonString : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -282,11 +273,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -602,24 +588,7 @@ public UpdateAzSpringCloudAppActiveDeployment_SetViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateExpanded.cs index ba95326c7ec2..34c7a06557c6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppBinding_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppBinding_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; - - /// - /// 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 _appName; @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ public UpdateAzSpringCloudAppBinding_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityAppExpanded.cs index 8041b1107666..615c58f92dac 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppBinding_UpdateViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppBinding_UpdateViaIdentityAppExpanded /// 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 Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ public UpdateAzSpringCloudAppBinding_UpdateViaIdentityAppExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityExpanded.cs index 4875647e7408..5acce71cc575 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppBinding_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppBinding_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ public UpdateAzSpringCloudAppBinding_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentitySpringExpanded.cs index f21f6fe6222d..cfebea4debc6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppBinding_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppBinding_UpdateViaIdentitySpringExpand /// 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 _appName; @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ public UpdateAzSpringCloudAppBinding_UpdateViaIdentitySpringExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonFilePath.cs index 7305d7263aad..762d2e2156de 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppBinding_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudAppBinding_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; - /// Backing field for property. private string _appName; @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,24 +606,7 @@ public UpdateAzSpringCloudAppBinding_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonString.cs index 395b16f63359..aaafb8a5fe17 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppBinding_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppBinding_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudAppBinding_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; - /// Backing field for property. private string _appName; @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -618,24 +604,7 @@ public UpdateAzSpringCloudAppBinding_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateExpanded.cs index 545c53b46dba..130c6af70ed4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppCustomDomain_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppCustomDomain_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; - - /// - /// 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 _appName; @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ public UpdateAzSpringCloudAppCustomDomain_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpanded.cs index dd39f3cb2b81..84844ae0b319 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpa /// 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 Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity _appInputObject; @@ -247,11 +238,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,24 +579,7 @@ public UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityAppExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityExpanded.cs index 6021b4c8ad6b..cd30e67ca047 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppCustomDomain_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityExpande /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ public UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentitySpringExpanded.cs index 99b8386a4e9b..777d8b4c5c40 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppCustomDomain_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentitySpringE /// 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 _appName; @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ public UpdateAzSpringCloudAppCustomDomain_UpdateViaIdentitySpringExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonFilePath.cs index b8c674a79b0d..f6d5a174544b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppCustomDomain_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonFilePath : /// 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; - /// Backing field for property. private string _appName; @@ -301,11 +292,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -621,24 +607,7 @@ public UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonString.cs index 4353eaf1bc61..85b061e06238 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppCustomDomain_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update custom domain of one lifecycle application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonString : 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; - /// Backing field for property. private string _appName; @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ public UpdateAzSpringCloudAppCustomDomain_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICustomDomainResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateExpanded.cs index 172a377296ca..75d38327c049 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppDeployment_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppDeployment_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; - - /// - /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -394,11 +385,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -714,24 +700,7 @@ public UpdateAzSpringCloudAppDeployment_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityAppExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityAppExpanded.cs index 0520780c6d21..9569a6df12fd 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityAppExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityAppExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppDeployment_UpdateViaIdentityAppExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppDeployment_UpdateViaIdentityAppExpand /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -679,24 +665,7 @@ public UpdateAzSpringCloudAppDeployment_UpdateViaIdentityAppExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityExpanded.cs index b57e6fbbae62..1b27f19fa90f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppDeployment_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppDeployment_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; - - /// - /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -317,11 +308,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -665,24 +651,7 @@ public UpdateAzSpringCloudAppDeployment_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentitySpringExpanded.cs index 0133a95c8675..6caeecc56162 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppDeployment_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudAppDeployment_UpdateViaIdentitySpringExp /// 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; - /// Indicates whether the Deployment is active [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the Deployment is active")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Body)] @@ -348,11 +339,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -690,24 +676,7 @@ public UpdateAzSpringCloudAppDeployment_UpdateViaIdentitySpringExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonFilePath.cs index e6688bb14b9b..db31bbbb232e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppDeployment_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudAppDeployment_UpdateViaJsonFilePath : 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; - 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; - /// Backing field for property. private string _appName; @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,24 +606,7 @@ public UpdateAzSpringCloudAppDeployment_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonString.cs index 1cc981139a88..348b0c851300 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudAppDeployment_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudAppDeployment_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Deployment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudAppDeployment_UpdateViaJsonString : 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; - - /// - /// 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 _appName; @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -618,24 +604,7 @@ public UpdateAzSpringCloudAppDeployment_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IDeploymentResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateExpanded.cs index 10ee57bfba4e..516b22778617 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudApp_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudApp_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; - /// Collection of addons [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Collection of addons")] @@ -418,11 +409,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -738,24 +724,7 @@ public UpdateAzSpringCloudApp_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentityExpanded.cs index 885aea926172..2c7395ef3844 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudApp_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudApp_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; - /// Collection of addons [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Collection of addons")] @@ -354,11 +345,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -698,24 +684,7 @@ public UpdateAzSpringCloudApp_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentitySpringExpanded.cs index 210082263f47..5350192b82b7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaIdentitySpringExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudApp_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudApp_UpdateViaIdentitySpringExpanded : 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; - /// Collection of addons [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Collection of addons")] @@ -370,11 +361,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -711,24 +697,7 @@ public UpdateAzSpringCloudApp_UpdateViaIdentitySpringExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonFilePath.cs index 3f0cd3e3cf27..8a5c505629ee 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudApp_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudApp_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ public UpdateAzSpringCloudApp_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonString.cs index fee776fce1c7..308fb5fe2975 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudApp_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudApp_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudApp_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ public UpdateAzSpringCloudApp_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IAppResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs index 20bc164a78c7..7f5be9f34867 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceAgentPool_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceAgentPool_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; - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -309,11 +300,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -647,24 +633,7 @@ private void Update_agentPoolResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs index 4b6da47b70e6..dfb730b3158d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceAgentPool_UpdateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityB /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ private void Update_agentPoolResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs index d486641d6009..2362b815941f 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceAgentPool_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceAgentPool_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; - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ private void Update_agentPoolResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs index f4d1a6082c03..c71c3fe5fc03 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePut=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceAgentPool_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update build service agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceAgentPool_UpdateViaIdentityS /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,24 +611,7 @@ private void Update_agentPoolResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildServiceAgentPoolResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateExpanded.cs index cf62f60c3742..a250243e6d52 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuild_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityBuildServiceExpanded.cs index 77936c482280..2f94982f8974 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityBuildServiceExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuild_UpdateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityExpanded.cs index fd81f8e6e8ef..836c67129d86 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentityExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuild_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentitySpringExpanded.cs index 5cdf2b01706c..161fa35110cb 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuild_UpdateViaIdentitySpringExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuild_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuild))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack build.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] diff --git a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateExpanded.cs index dbc775540ce1..010d75862354 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuilder_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceBuilder_UpdateExpanded : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -326,11 +317,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -668,24 +654,7 @@ private void Update_builderResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityBuildServiceExpanded.cs index 772f668ac2ff..0e8311f6f5d0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityBuildServiceExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuilder_UpdateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityBui /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,24 +611,7 @@ private void Update_builderResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityExpanded.cs index 994d89625b2b..f046ab16e289 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuilder_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentityExp /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ private void Update_builderResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentitySpringExpanded.cs index 99180753f63d..a7bfedf25da3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentitySpringExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildServiceBuilder_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a KPack builder.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildServiceBuilder_UpdateViaIdentitySpr /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -646,24 +632,7 @@ private void Update_builderResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuilderResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateExpanded.cs index 0c2483033192..753e0022c933 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildpackBinding_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildpackBinding_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -344,11 +335,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -686,24 +672,7 @@ private void Update_buildpackBindingBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuildServiceExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuildServiceExpanded.cs index 1e2a02488344..241f0818a8ca 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuildServiceExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuildServiceExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildpackBinding_UpdateViaIdentityBuildServiceExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuildS /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ private void Update_buildpackBindingBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuilderExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuilderExpanded.cs index fe6edeea0755..f338086395e0 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuilderExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuilderExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildpackBinding_UpdateViaIdentityBuilderExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityBuilde /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -632,24 +618,7 @@ private void Update_buildpackBindingBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityExpanded.cs index cda0afcbf7db..02857c966bf7 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildpackBinding_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentityExpand /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ private void Update_buildpackBindingBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentitySpringExpanded.cs index 6b055c6fea51..d1c6a1fb94f8 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentitySpringExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudBuildpackBinding_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update a buildpack binding.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudBuildpackBinding_UpdateViaIdentitySpring /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -298,11 +289,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -664,24 +650,7 @@ private void Update_buildpackBindingBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IBuildpackBindingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateExpanded.cs index 0646760ab0f7..35e964c4c004 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudCertificate_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudCertificate_UpdateExpanded : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ private void Update_certificateResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentityExpanded.cs index 7c6044f1f488..2bb3bd0897dc 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentityExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudCertificate_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudCertificate_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ private void Update_certificateResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentitySpringExpanded.cs index 16be04ab698e..c1cc033782b4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudCertificate_UpdateViaIdentitySpringExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudCertificate_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update certificate resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudCertificate_UpdateViaIdentitySpringExpan /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,24 +577,7 @@ private void Update_certificateResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ICertificateResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateExpanded.cs index e59ee4ce250e..de3451f3a481 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigServer_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the config server.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudConfigServer_UpdateExpanded : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -390,11 +381,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -710,24 +696,7 @@ public UpdateAzSpringCloudConfigServer_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaIdentityExpanded.cs index 82355ac87456..b2f69c223a8d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigServer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the config server.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzSpringCloudConfigServer_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; - - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -344,11 +335,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -684,24 +670,7 @@ public UpdateAzSpringCloudConfigServer_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonFilePath.cs index 0fa2eb5cba1e..66bedf2b12c9 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigServer_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the config server.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudConfigServer_UpdateViaJsonFilePath : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,24 +575,7 @@ public UpdateAzSpringCloudConfigServer_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonString.cs index 1e63ce4a1cd6..6067ad8c068c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigServer_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigServer_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the config server.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudConfigServer_UpdateViaJsonString : 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ public UpdateAzSpringCloudConfigServer_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigServerResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateExpanded.cs index 46348775b03f..1dc89b43d07b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigurationService_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the default Application Configuration Service or update the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzSpringCloudConfigurationService_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; - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ private void Update_configurationServiceResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentityExpanded.cs index 6c830caefe68..297ff13f5ae6 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigurationService_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the default Application Configuration Service or update the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzSpringCloudConfigurationService_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; - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ private void Update_configurationServiceResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentitySpringExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentitySpringExpanded.cs index 337229db6131..4089b197dc86 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentitySpringExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudConfigurationService_UpdateViaIdentitySpringExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudConfigurationService_UpdateViaIdentitySpringExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the default Application Configuration Service or update the existing Application Configuration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzSpringCloudConfigurationService_UpdateViaIdentitySp /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ private void Update_configurationServiceResourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IConfigurationServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateExpanded.cs index 7b779cf6428f..613fb7ad1053 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudMonitoringSetting_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the Monitoring Setting.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,18 +41,9 @@ public partial class UpdateAzSpringCloudMonitoringSetting_UpdateExpanded : 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; - /// Monitoring Setting resource private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource _monitoringSettingResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.MonitoringSettingResource(); - /// - /// 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; - /// /// Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings /// @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ public UpdateAzSpringCloudMonitoringSetting_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaIdentityExpanded.cs index 91550a746bfb..d77f5f263c56 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudMonitoringSetting_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the Monitoring Setting.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,18 +41,9 @@ public partial class UpdateAzSpringCloudMonitoringSetting_UpdateViaIdentityExpan /// 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; - /// Monitoring Setting resource private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource _monitoringSettingResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.MonitoringSettingResource(); - /// - /// 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; - /// /// Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings /// @@ -272,11 +263,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ public UpdateAzSpringCloudMonitoringSetting_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonFilePath.cs index a1d70122cd5c..f4f0f1d93fc2 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudMonitoringSetting_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the Monitoring Setting.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonFilePath /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -271,11 +262,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,24 +577,7 @@ public UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonString.cs index d123e3de2cdb..ee056f48eb23 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] UpdatePatch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloudMonitoringSetting_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"update the Monitoring Setting.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonString : /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,24 +575,7 @@ public UpdateAzSpringCloudMonitoringSetting_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IMonitoringSettingResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateExpanded.cs index fb4bdc85666a..4be032c2ca1c 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloud_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,18 +41,9 @@ public partial class UpdateAzSpringCloud_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; - /// Service resource private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ServiceResource(); - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -315,11 +306,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ public UpdateAzSpringCloud_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaIdentityExpanded.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaIdentityExpanded.cs index c3df7ec20dcd..f6c1ddf3628a 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaIdentityExpanded.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloud_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -41,18 +41,9 @@ public partial class UpdateAzSpringCloud_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; - /// Service resource private Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ServiceResource(); - /// - /// 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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ public UpdateAzSpringCloud_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonFilePath.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonFilePath.cs index 7350bb46bb56..fcd581467fee 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonFilePath.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloud_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzSpringCloud_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -270,11 +261,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ public UpdateAzSpringCloud_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonString.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonString.cs index 4dd56ac9d884..79da1ee92cc4 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonString.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/cmdlets/UpdateAzSpringCloud_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSpringCloud_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.CmdletBreakingChange("19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] + [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.GenericBreakingChange("", "19.3.0", "0.3.2", "2028/03/31", ChangeDescription = "Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Description(@"Operation to update an exiting Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzSpringCloud_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.SpringCloud.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Cmdlets.UpdateAzSpringClou /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ public UpdateAzSpringCloud_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.IServiceResource 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/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index eee568bd3da1..8470aaa2f18e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/SpringCloud/SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index d1ab8041d27b..7bdaa9021b48 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/SpringCloud/SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 8f7c8a2b16c1..3743437bcf2b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/SpringCloud/SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/runtime/Context.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/Context.cs index 4d5086062c1f..ffc70aad7005 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/Context.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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/SpringCloud/SpringCloud.Autorest/generated/runtime/MessageAttribute.cs b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/MessageAttribute.cs index 9ae34dbceb45..a3789ebb6a33 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.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.SpringCloud" : @""; + //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/SpringCloud/SpringCloud.Autorest/generated/runtime/Properties/Resources.resx b/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/SpringCloud/SpringCloud.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/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloud.ps1 b/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloud.ps1 index a684e5ff2be3..ffcc4853412e 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloud.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Service or create an exiting Service. +Create a new Service or create an exiting Service. .Description -create a new Service or create an exiting Service. +Create a new Service or create an exiting Service. .Example New-AzSpringCloud -ResourceGroupName springcloudrg -Name spring-pwsh01 -Location eastus .Example diff --git a/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudApp.ps1 b/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudApp.ps1 index 766753fcc0e8..b14b4a7172f3 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudApp.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudApp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new App or create an exiting App. +Create a new App or create an exiting App. .Description -create a new App or create an exiting App. +Create a new App or create an exiting App. .Example New-AzSpringCloudApp -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -Name tools diff --git a/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudBuildServiceBuild.ps1 b/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudBuildServiceBuild.ps1 index 63439e60604e..3d93968b8228 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudBuildServiceBuild.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/internal/New-AzSpringCloudBuildServiceBuild.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a KPack build. +Create a KPack build. .Description -create a KPack build. +Create a KPack build. .Example {{ Add code here }} .Example diff --git a/generated/SpringCloud/SpringCloud.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/SpringCloud/SpringCloud.Autorest/internal/ProxyCmdletDefinitions.ps1 index 1a78eea3775c..80f4e3a65e41 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -1405,9 +1405,9 @@ end { <# .Synopsis -create a new App or create an exiting App. +Create a new App or create an exiting App. .Description -create a new App or create an exiting App. +Create a new App or create an exiting App. .Example New-AzSpringCloudApp -ResourceGroupName SpringCloud-gp-junxi -ServiceName springcloud-service -Name tools @@ -1725,9 +1725,9 @@ end { <# .Synopsis -create a KPack build. +Create a KPack build. .Description -create a KPack build. +Create a KPack build. .Example {{ Add code here }} .Example @@ -2001,9 +2001,9 @@ end { <# .Synopsis -create a new Service or create an exiting Service. +Create a new Service or create an exiting Service. .Description -create a new Service or create an exiting Service. +Create a new Service or create an exiting Service. .Example New-AzSpringCloud -ResourceGroupName springcloudrg -Name spring-pwsh01 -Location eastus .Example @@ -2468,9 +2468,9 @@ end { <# .Synopsis -update a KPack build. +Update a KPack build. .Description -update a KPack build. +Update a KPack build. .Example {{ Add code here }} .Example diff --git a/generated/SpringCloud/SpringCloud.Autorest/internal/Update-AzSpringCloudBuildServiceBuild.ps1 b/generated/SpringCloud/SpringCloud.Autorest/internal/Update-AzSpringCloudBuildServiceBuild.ps1 index a2e6a185a18b..22d9b0a1129b 100644 --- a/generated/SpringCloud/SpringCloud.Autorest/internal/Update-AzSpringCloudBuildServiceBuild.ps1 +++ b/generated/SpringCloud/SpringCloud.Autorest/internal/Update-AzSpringCloudBuildServiceBuild.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a KPack build. +Update a KPack build. .Description -update a KPack build. +Update a KPack build. .Example {{ Add code here }} .Example diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/Properties/AssemblyInfo.cs b/generated/StackHCIVM/StackHCIVM.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 126439c737dc..000000000000 --- a/generated/StackHCIVM/StackHCIVM.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 - StackHCIVM")] -[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("5ae0d3ab-4d8c-4e6d-8582-35886a4be4f6")] -[assembly: AssemblyVersion("1.1.0")] -[assembly: AssemblyFileVersion("1.1.0")] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineDataDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineDataDisk.ps1 index 067b15db6354..279773f3887c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineDataDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineDataDisk.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -156,8 +164,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Add-AzStackHCIVMVirtualMachineDataDisk'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -171,6 +177,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/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineNetworkInterface.ps1 index e535c476515a..fb05861dfa42 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Add-AzStackHCIVMVirtualMachineNetworkInterface.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -156,8 +164,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Add-AzStackHCIVMVirtualMachineNetworkInterface'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -171,6 +177,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/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMImage.ps1 index f0574d3533cb..8b3045c4762b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMImage.ps1 @@ -124,6 +124,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -148,8 +156,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMImage'; } if (('BySubscription', 'ByName', 'ByResourceGroup', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -163,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/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMLogicalNetwork.ps1 index 2f6245fd3fd4..7f5eac8f5763 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMLogicalNetwork.ps1 @@ -126,6 +126,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -150,8 +158,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMLogicalNetwork_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +171,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/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMNetworkInterface.ps1 index 54ff0aab62dc..eed3dbb7df32 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMNetworkInterface.ps1 @@ -126,6 +126,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -150,8 +158,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMNetworkInterface_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +171,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/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMStoragePath.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMStoragePath.ps1 index d9db25097a6d..7777cd19ac73 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMStoragePath.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMStoragePath.ps1 @@ -126,6 +126,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -150,8 +158,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMStoragePath_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +171,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/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualHardDisk.ps1 index 55ec5e95511e..865dd0813c92 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualHardDisk.ps1 @@ -126,6 +126,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -150,8 +158,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMVirtualHardDisk_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +171,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/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualMachine.ps1 index e65efc759ab4..c33e080856ad 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Get-AzStackHCIVMVirtualMachine.ps1 @@ -127,6 +127,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -151,8 +159,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMVirtualMachine'; } if (('ByName', 'ByResourceGroup', 'BySubscription') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -166,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/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMImage.ps1 index 682eb7adfb24..76e49cccc653 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMImage.ps1 @@ -133,7 +133,7 @@ param( [Parameter(ParameterSetName='Marketplace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Category('Body')] [System.String] - # The name of the marketplae gallery image definition offer. + # The name of the marketplace gallery image definition offer. ${Offer}, [Parameter(ParameterSetName='Marketplace', Mandatory)] @@ -222,6 +222,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -245,8 +253,6 @@ begin { Marketplace = 'Az.StackHCIVM.custom\New-AzStackHCIVMImage'; } if (('MarketplaceURN', 'GalleryImage', 'Marketplace') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -260,6 +266,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/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMLogicalNetwork.ps1 index b1774c014519..7dd04d4800f7 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMLogicalNetwork.ps1 @@ -217,6 +217,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -238,8 +246,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMLogicalNetwork'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -253,6 +259,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/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMNetworkInterface.ps1 index b715bf140634..a6e971831fa5 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMNetworkInterface.ps1 @@ -184,6 +184,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -205,8 +213,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMNetworkInterface'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -220,6 +226,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/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMStoragePath.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMStoragePath.ps1 index b2915073c140..06bddb5fccad 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMStoragePath.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMStoragePath.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMStoragePath'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualHardDisk.ps1 index f305be93504c..d81247dcbe95 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualHardDisk.ps1 @@ -207,6 +207,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -228,8 +236,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMVirtualHardDisk'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -243,6 +249,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/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualMachine.ps1 index eecebc8fb1e7..f41136464b07 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/New-AzStackHCIVMVirtualMachine.ps1 @@ -139,7 +139,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Category('Body')] [System.Management.Automation.SwitchParameter] # Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine creation process. - # VM Agent is provsioned by default. + # VM Agent is provisioned by default. # Please pass -ProvisionVMAgent:$false to disable. ${ProvisionVMAgent}, @@ -359,6 +359,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -383,8 +391,6 @@ begin { ByOsDiskName = 'Az.StackHCIVM.custom\New-AzStackHCIVMVirtualMachine'; } if (('ByImageId', 'ByImageName', 'ByOsDiskId', 'ByOsDiskName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -398,6 +404,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/StackHCIVM/StackHCIVM.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/ProxyCmdletDefinitions.ps1 index f6163a1ff03f..6718431156d9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -126,6 +126,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -150,8 +158,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMLogicalNetwork_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +171,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) @@ -320,6 +329,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -344,8 +361,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMNetworkInterface_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -359,6 +374,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) @@ -514,6 +532,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -538,8 +564,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMStoragePath_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -553,6 +577,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) @@ -708,6 +735,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -732,8 +767,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMVirtualHardDisk_ByResourceId'; } 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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -747,6 +780,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) @@ -968,6 +1004,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -993,8 +1037,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMLogicalNetwork_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1008,6 +1050,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) @@ -1229,6 +1274,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -1254,8 +1307,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMNetworkInterface_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1269,6 +1320,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) @@ -1490,6 +1544,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -1515,8 +1577,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMStoragePath_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1530,6 +1590,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) @@ -1751,6 +1814,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -1776,8 +1847,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMVirtualHardDisk_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1791,6 +1860,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) @@ -1954,6 +2026,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -1976,8 +2056,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Add-AzStackHCIVMVirtualMachineDataDisk'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1991,6 +2069,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) @@ -2154,6 +2235,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -2176,8 +2265,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Add-AzStackHCIVMVirtualMachineNetworkInterface'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2191,6 +2278,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) @@ -2344,6 +2434,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -2368,8 +2466,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMImage'; } if (('BySubscription', 'ByName', 'ByResourceGroup', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2383,6 +2479,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) @@ -2539,6 +2638,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -2563,8 +2670,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Get-AzStackHCIVMVirtualMachine'; } if (('ByName', 'ByResourceGroup', 'BySubscription') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2578,6 +2683,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) @@ -2740,7 +2848,7 @@ param( [Parameter(ParameterSetName='Marketplace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Category('Body')] [System.String] - # The name of the marketplae gallery image definition offer. + # The name of the marketplace gallery image definition offer. ${Offer}, [Parameter(ParameterSetName='Marketplace', Mandatory)] @@ -2829,6 +2937,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -2852,8 +2968,6 @@ begin { Marketplace = 'Az.StackHCIVM.custom\New-AzStackHCIVMImage'; } if (('MarketplaceURN', 'GalleryImage', 'Marketplace') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2867,6 +2981,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) @@ -3113,6 +3230,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -3134,8 +3259,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMLogicalNetwork'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3149,6 +3272,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) @@ -3362,6 +3488,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -3383,8 +3517,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMNetworkInterface'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3398,6 +3530,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) @@ -3574,6 +3709,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -3595,8 +3738,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMStoragePath'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3610,6 +3751,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) @@ -3846,6 +3990,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -3867,8 +4019,6 @@ begin { __AllParameterSets = 'Az.StackHCIVM.custom\New-AzStackHCIVMVirtualHardDisk'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3882,6 +4032,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) @@ -4050,7 +4203,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Category('Body')] [System.Management.Automation.SwitchParameter] # Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine creation process. - # VM Agent is provsioned by default. + # VM Agent is provisioned by default. # Please pass -ProvisionVMAgent:$false to disable. ${ProvisionVMAgent}, @@ -4270,6 +4423,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -4294,8 +4455,6 @@ begin { ByOsDiskName = 'Az.StackHCIVM.custom\New-AzStackHCIVMVirtualMachine'; } if (('ByImageId', 'ByImageName', 'ByOsDiskId', 'ByOsDiskName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4309,6 +4468,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) @@ -4455,6 +4617,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -4477,8 +4647,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMImage'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4492,6 +4660,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) @@ -4639,6 +4810,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -4661,8 +4840,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMLogicalNetwork'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4676,6 +4853,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) @@ -4825,6 +5005,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -4847,8 +5035,6 @@ begin { ByName = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMNetworkInterface'; } if (('ByResourceId', 'ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4862,6 +5048,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) @@ -5063,6 +5252,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -5085,8 +5282,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMStoragePath'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5100,6 +5295,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) @@ -5248,6 +5446,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -5270,8 +5476,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualHardDisk'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5285,6 +5489,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) @@ -5480,6 +5687,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -5502,8 +5717,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualMachine'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5517,6 +5730,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) @@ -5680,6 +5896,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -5702,8 +5926,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualMachineDataDisk'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5717,6 +5939,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) @@ -5880,6 +6105,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -5902,8 +6135,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualMachineNetworkInterface'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5917,6 +6148,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) @@ -6073,6 +6307,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -6095,8 +6337,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Restart-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6110,6 +6350,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) @@ -6266,6 +6509,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -6288,8 +6539,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Start-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6303,6 +6552,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) @@ -6461,6 +6713,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -6483,8 +6743,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Stop-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6498,6 +6756,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) @@ -6650,6 +6911,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -6673,8 +6942,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMImage'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6688,6 +6955,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) @@ -6874,6 +7144,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -6896,8 +7174,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6911,6 +7187,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMImage.ps1 index dbab54717b2d..f84f2f60940a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMImage.ps1 @@ -117,6 +117,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -139,8 +147,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMImage'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -154,6 +160,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMLogicalNetwork.ps1 index 6e189f791b52..6cd42604c6d0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMLogicalNetwork.ps1 @@ -118,6 +118,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -140,8 +148,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMLogicalNetwork'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -155,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMNetworkInterface.ps1 index 380dad65d08a..e248e2916df6 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMNetworkInterface.ps1 @@ -120,6 +120,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -142,8 +150,6 @@ begin { ByName = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMNetworkInterface'; } if (('ByResourceId', 'ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -157,6 +163,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMStoragePath.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMStoragePath.ps1 index 4f104d656b7c..2fb8d62c5873 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMStoragePath.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMStoragePath.ps1 @@ -172,6 +172,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -194,8 +202,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMStoragePath'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -209,6 +215,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualHardDisk.ps1 index 318c7d94e54c..6e6d47d2e0d9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualHardDisk.ps1 @@ -119,6 +119,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -141,8 +149,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualHardDisk'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -156,6 +162,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachine.ps1 index 57303b74cee3..710c15b14676 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachine.ps1 @@ -166,6 +166,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -188,8 +196,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualMachine'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -203,6 +209,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineDataDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineDataDisk.ps1 index d5023ce04ae3..c70b3abbffde 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineDataDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineDataDisk.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -156,8 +164,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualMachineDataDisk'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -171,6 +177,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/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineNetworkInterface.ps1 index 15307065ae66..8a8510400da2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Remove-AzStackHCIVMVirtualMachineNetworkInterface.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -156,8 +164,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Remove-AzStackHCIVMVirtualMachineNetworkInterface'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -171,6 +177,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/StackHCIVM/StackHCIVM.Autorest/exports/Restart-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Restart-AzStackHCIVMVirtualMachine.ps1 index 077060823796..d45bce558483 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Restart-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Restart-AzStackHCIVMVirtualMachine.ps1 @@ -127,6 +127,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -149,8 +157,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Restart-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +170,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/StackHCIVM/StackHCIVM.Autorest/exports/Start-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Start-AzStackHCIVMVirtualMachine.ps1 index ea607d32a89c..7a929ea271dc 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Start-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Start-AzStackHCIVMVirtualMachine.ps1 @@ -127,6 +127,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -149,8 +157,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Start-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +170,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/StackHCIVM/StackHCIVM.Autorest/exports/Stop-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Stop-AzStackHCIVMVirtualMachine.ps1 index 841e54833c67..618d5bf23dfd 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Stop-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Stop-AzStackHCIVMVirtualMachine.ps1 @@ -129,6 +129,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -151,8 +159,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Stop-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -166,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/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMImage.ps1 index be8a432f36d6..6d2cb72ccb99 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMImage.ps1 @@ -123,6 +123,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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() } @@ -146,8 +154,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMImage'; } if (('ByName', 'ByResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -161,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/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMLogicalNetwork.ps1 index 937d73fbcde2..a8c47e8cdadc 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMLogicalNetwork.ps1 @@ -192,6 +192,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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,8 +225,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMLogicalNetwork_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +238,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/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMNetworkInterface.ps1 index d8efb67ae1b5..9d5ec8959b73 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMNetworkInterface.ps1 @@ -192,6 +192,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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,8 +225,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMNetworkInterface_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +238,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/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMStoragePath.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMStoragePath.ps1 index 2cc367e97527..17cf65afb788 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMStoragePath.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMStoragePath.ps1 @@ -192,6 +192,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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,8 +225,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMStoragePath_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +238,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/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualHardDisk.ps1 index a00bfff5737e..d77c82db7398 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualHardDisk.ps1 @@ -192,6 +192,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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,8 +225,6 @@ begin { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMVirtualHardDisk_ByResourceId'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +238,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/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualMachine.ps1 index c20321efb3c9..2ebd0a6a6b0d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualMachine.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 { ByResourceId = 'Az.StackHCIVM.custom\Update-AzStackHCIVMVirtualMachine'; } if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponse.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponse.cs index 1e500856d316..0ff57c009b24 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs index 5ccfad543664..bab61e09fd1d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs @@ -40,22 +40,22 @@ public partial class ErrorResponseAutoGenerated : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ErrorDetailAutoGenerated()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorResponseAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ExtensionValue.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ExtensionValue.cs index 767b7cf3160b..bd2233afa306 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ExtensionValue.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ExtensionValue.cs @@ -29,28 +29,46 @@ public partial class ExtensionValue : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for ExtensionType - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.ExtensionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).ExtensionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).ExtensionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.ExtensionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).ExtensionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).ExtensionType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtensionValueProperties()); set { {_property = value;} } } /// Internal Acessors for Publisher - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Publisher = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Publisher = value ?? null; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValueInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtensionValuePropertiesInternal)Property).Version = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -75,31 +93,31 @@ public partial class ExtensionValue : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageProperties.cs index 992de02c7486..85b5c5d103fc 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageProperties.cs @@ -31,7 +31,7 @@ public partial class GalleryImageProperties : /// The downloaded sized of the image in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb = value ?? default(long); } + public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb; } /// Backing field for property. private string _hyperVGeneration; @@ -66,35 +66,53 @@ public partial class GalleryImageProperties : [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] public string ImagePath { get => this._imagePath; set => this._imagePath = value; } + /// Internal Acessors for DownloadStatusDownloadSizeInMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb = value ?? default(long); } + /// Internal Acessors for Identifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.Identifier { get => (this._identifier = this._identifier ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageIdentifier()); set { {_identifier = value;} } } /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb = value ?? default(long); } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageStatus()); set { {_status = value;} } } /// Internal Acessors for StatusDownloadStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).DownloadStatus = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorMessage = value ?? null; } + + /// Internal Acessors for StatusProgressPercentage + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProgressPercentage = value ?? default(long); } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDiskImage - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage = value ?? null /* model class */; } /// Internal Acessors for Version Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.Version { get => (this._version = this._version ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageVersion()); set { {_version = value;} } } /// Internal Acessors for VersionProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property = value ?? null /* model class */; } /// This property indicates the size of the VHD to be created. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -118,11 +136,11 @@ public partial class GalleryImageProperties : /// The status of the operation performed on the gallery image [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the gallery image [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatus _status; @@ -133,15 +151,15 @@ public partial class GalleryImageProperties : /// GalleryImage provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ErrorMessage; } /// The progress of the operation in percentage [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProgressPercentage = value ?? default(long); } + public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusInternal)Status).ProgressPercentage; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion _version; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersion.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersion.cs index 324c315e9ab7..0277c2c2513c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersion.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersion.cs @@ -16,16 +16,16 @@ public partial class GalleryImageVersion : { /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).OSDiskImageSizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).OSDiskImageSizeInMb = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageVersionProperties()); set { {_property = value;} } } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDiskImage - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfileOSDiskImage = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal)Property).StorageProfileOSDiskImage = value ?? null /* model class */; } /// Backing field for property. private string _name; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionProperties.cs index 9ac973e4a2d0..66af8df64710 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionProperties.cs @@ -14,13 +14,13 @@ public partial class GalleryImageVersionProperties : { /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImageSizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImageSizeInMb = value ?? default(long); } /// Internal Acessors for StorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageVersionStorageProfile()); set { {_storageProfile = value;} } } /// Internal Acessors for StorageProfileOSDiskImage - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImage = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionPropertiesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal)StorageProfile).OSDiskImage = value ?? null /* model class */; } /// This property indicates the size of the VHD to be created. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionStorageProfile.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionStorageProfile.cs index 505fa84af712..49fd2853b38a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionStorageProfile.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImageVersionStorageProfile.cs @@ -17,7 +17,7 @@ public partial class GalleryImageVersionStorageProfile : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal.OSDiskImage { get => (this._oSDiskImage = this._oSDiskImage ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryOSDiskImage()); set { {_oSDiskImage = value;} } } /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)OSDiskImage).SizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)OSDiskImage).SizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfileInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)OSDiskImage).SizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)OSDiskImage).SizeInMb = value ?? default(long); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage _oSDiskImage; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImages.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImages.cs index 8f4acb5797c8..ffabcb4f12bb 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImages.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryImages.cs @@ -30,7 +30,7 @@ public partial class GalleryImages : /// The downloaded sized of the image in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb = value ?? default(long); } + public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation _extendedLocation; @@ -75,55 +75,91 @@ public partial class GalleryImages : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + + /// Internal Acessors for DownloadStatusDownloadSizeInMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb = value ?? default(long); } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for Identifier - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Identifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Identifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Identifier = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Identifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Identifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Identifier = value ?? null /* model class */; } /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Status = value ?? null /* model class */; } /// Internal Acessors for StatusDownloadStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusDownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusDownloadStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusDownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusDownloadStatus = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + + /// Internal Acessors for StatusProgressPercentage + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProgressPercentage = value ?? default(long); } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDiskImage - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage = value ?? null /* model class */; } /// Internal Acessors for Version - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Version = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).Version = value ?? null /* model class */; } /// Internal Acessors for VersionProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).VersionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).VersionProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).VersionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).VersionProperty = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -152,11 +188,11 @@ public partial class GalleryImages : /// The status of the operation performed on the gallery image [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the gallery image [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -164,45 +200,45 @@ public partial class GalleryImages : /// GalleryImage provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusErrorMessage; } /// The progress of the operation in percentage [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProgressPercentage = value ?? default(long); } + public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagePropertiesInternal)Property).StatusProgressPercentage; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryOSDiskImage.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryOSDiskImage.cs index c18ee0fa61fe..6c26cec08ee3 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryOSDiskImage.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GalleryOSDiskImage.cs @@ -20,7 +20,7 @@ public partial class GalleryOSDiskImage : private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImage __galleryDiskImage = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryDiskImage(); /// Internal Acessors for SizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal.SizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)__galleryDiskImage).SizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)__galleryDiskImage).SizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal.SizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)__galleryDiskImage).SizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryDiskImageInternal)__galleryDiskImage).SizeInMb = value ?? default(long); } /// This property indicates the size of the VHD to be created. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GuestAgent.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GuestAgent.cs index ec60b7482e65..4e1875671c88 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GuestAgent.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/GuestAgent.cs @@ -33,28 +33,46 @@ public partial class GuestAgent : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Credentials - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestCredential Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Credentials = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestCredential Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Credentials = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GuestAgentProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentPropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -87,31 +105,31 @@ public partial class GuestAgent : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadata.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadata.cs index b4e0e50a7d5b..81c7b304356c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadata.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadata.cs @@ -34,34 +34,55 @@ public partial class HybridIdentityMetadata : /// The identity type. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityType; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).Identity = value ?? null /* model class */; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityPrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityTenantId = value ?? null; } + + /// Internal Acessors for IdentityType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).IdentityType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.HybridIdentityMetadataProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -94,31 +115,31 @@ public partial class HybridIdentityMetadata : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataAutoGenerated.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataAutoGenerated.cs index 1225a61ba546..77b319cd7e84 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataAutoGenerated.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataAutoGenerated.cs @@ -34,31 +34,52 @@ public partial class HybridIdentityMetadataAutoGenerated : /// The identity type. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityType; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).Identity = value ?? null /* model class */; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityPrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityTenantId = value ?? null; } + + /// Internal Acessors for IdentityType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal)Property).IdentityType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.HybridIdentityMetadataPropertiesAutoGenerated()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -83,31 +104,31 @@ public partial class HybridIdentityMetadataAutoGenerated : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataProperties.cs index a4763274243a..3bc852ee6100 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataProperties.cs @@ -30,16 +30,19 @@ public partial class HybridIdentityMetadataProperties : /// The identity type. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value ?? null; } + + /// Internal Acessors for IdentityType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type = value ?? null; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataPropertiesAutoGenerated.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataPropertiesAutoGenerated.cs index d68313c95e09..a9eee61ad78a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataPropertiesAutoGenerated.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/HybridIdentityMetadataPropertiesAutoGenerated.cs @@ -30,16 +30,19 @@ public partial class HybridIdentityMetadataPropertiesAutoGenerated : /// The identity type. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value ?? null; } + + /// Internal Acessors for IdentityType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHybridIdentityMetadataPropertiesAutoGeneratedInternal.IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).Type = value ?? null; } /// Backing field for property. private string _publicKey; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPAddress.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPAddress.cs index bd6c95025720..6f606de5d281 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPAddress.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPAddress.cs @@ -23,6 +23,9 @@ public partial class IPAddress : /// Internal Acessors for Subnet Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPAddressInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.SubnetAutoGenerated()); set { {_subnet = value;} } } + /// Internal Acessors for SubnetAddressPrefix + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPAddressInternal.SubnetAddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGeneratedInternal)Subnet).AddressPrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGeneratedInternal)Subnet).AddressPrefix = value ?? null; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGenerated _subnet; @@ -32,7 +35,7 @@ public partial class IPAddress : /// Represents address prefix. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string SubnetAddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGeneratedInternal)Subnet).AddressPrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGeneratedInternal)Subnet).AddressPrefix = value ?? null; } + public string SubnetAddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetAutoGeneratedInternal)Subnet).AddressPrefix; } /// Backing field for property. private string _version; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPConfiguration.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPConfiguration.cs index 1d58b4bcde10..e4c47ab90c85 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPConfiguration.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPConfiguration.cs @@ -22,16 +22,16 @@ public partial class IPConfiguration : public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).PrivateIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).PrivateIPAddress = value ?? null; } /// Internal Acessors for Gateway - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.Gateway { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Gateway; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Gateway = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.Gateway { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Gateway; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Gateway = value ?? null; } /// Internal Acessors for PrefixLength - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.PrefixLength { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).PrefixLength; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).PrefixLength = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.PrefixLength { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).PrefixLength; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).PrefixLength = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPConfigurationProperties()); set { {_property = value;} } } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesSubnet Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Subnet = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesSubnet Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPConfigurationPropertiesInternal)Property).Subnet = value ?? null /* model class */; } /// Backing field for property. private string _name; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPPool.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPPool.cs index 9ef86a42e748..48539db5437c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPPool.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/IPPool.cs @@ -37,10 +37,10 @@ public partial class IPPool : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfo Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPPoolInfo()); set { {_info = value;} } } /// Internal Acessors for InfoAvailable - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInternal.InfoAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Available; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Available = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInternal.InfoAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Available; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Available = value ?? null; } /// Internal Acessors for InfoUsed - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInternal.InfoUsed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Used; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Used = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInternal.InfoUsed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Used; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIPPoolInfoInternal)Info).Used = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworkProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworkProperties.cs index 006bfc5a401d..dc98cecbfa22 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworkProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworkProperties.cs @@ -33,11 +33,23 @@ public partial class LogicalNetworkProperties : /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LogicalNetworkStatus()); set { {_status = value;} } } + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorMessage = value ?? null; } + /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Backing field for property. private string _provisioningState; @@ -50,11 +62,11 @@ public partial class LogicalNetworkProperties : /// The status of the operation performed on the logical network [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the logical network [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatus _status; @@ -65,11 +77,11 @@ public partial class LogicalNetworkProperties : /// LogicalNetwork provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusInternal)Status).ErrorMessage; } /// Backing field for property. private System.Collections.Generic.List _subnet; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworks.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworks.cs index 9b72dc650d2b..b29176c77f32 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworks.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/LogicalNetworks.cs @@ -45,10 +45,10 @@ public partial class LogicalNetworks : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for DhcpOption - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesDhcpOptions Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.DhcpOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).DhcpOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).DhcpOption = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesDhcpOptions Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.DhcpOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).DhcpOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).DhcpOption = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -57,25 +57,55 @@ public partial class LogicalNetworks : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LogicalNetworkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).Status = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorMessage = value ?? null; } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -96,11 +126,11 @@ public partial class LogicalNetworks : /// The status of the operation performed on the logical network [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the logical network [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -108,11 +138,11 @@ public partial class LogicalNetworks : /// LogicalNetwork provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworkPropertiesInternal)Property).StatusErrorMessage; } /// Subnet - list of subnets under the logical network [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -122,31 +152,31 @@ public partial class LogicalNetworks : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Machine.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Machine.cs index 38f0e6559d84..e0f3ca6875c4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Machine.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Machine.cs @@ -191,7 +191,7 @@ public partial class Machine : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// The city or locality where the resource is located. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -210,157 +210,178 @@ public partial class Machine : public string LocationDataName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LocationDataName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LocationDataName = value ?? null; } /// Internal Acessors for AdFqdn - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AdFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AdFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AdFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AdFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AdFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AdFqdn = value ?? null; } /// Internal Acessors for AgentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfiguration = value ?? null /* model class */; } /// Internal Acessors for AgentConfigurationConfigMode - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode = value ?? null; } /// Internal Acessors for AgentConfigurationExtensionsAllowList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsBlockList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsEnabled - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationGuestConfigurationEnabled - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationIncomingConnectionsPort - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyBypass - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyUrl - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl = value ?? null; } /// Internal Acessors for AgentUpgrade - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgrade = value ?? null /* model class */; } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value ?? null; } /// Internal Acessors for AgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).AgentVersion = value ?? null; } /// Internal Acessors for CloudMetadata - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadata = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadata = value ?? null /* model class */; } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider = value ?? null; } /// Internal Acessors for DetectedProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IDetectedProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DetectedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DetectedProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DetectedProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IDetectedProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DetectedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DetectedProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DetectedProperty = value ?? null /* model class */; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for DnsFqdn - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DnsFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DnsFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DnsFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DnsFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DnsFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DnsFqdn = value ?? null; } /// Internal Acessors for DomainName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DomainName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).DomainName = value ?? null; } /// Internal Acessors for ErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ErrorDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ErrorDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).MachineFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).MachineFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).MachineFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).MachineFqdn = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for LastStatusChange - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.LastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LastStatusChange = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.LastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LastStatusChange = value ?? default(global::System.DateTime); } /// Internal Acessors for LinuxConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LinuxConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LinuxConfigurationPatchSetting = value ?? null /* model class */; } /// Internal Acessors for LocationData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LocationData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).LocationData = value ?? null /* model class */; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } + + /// Internal Acessors for NetworkProfileNetworkInterface + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface = value ?? null /* arrayOf */; } /// Internal Acessors for OSName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSName = value ?? null; } /// Internal Acessors for OSProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfileComputerName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileComputerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileComputerName = value ?? null; } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileLinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileLinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileWindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSProfileWindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSSku - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSSku = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSSku = value ?? null; } /// Internal Acessors for OSVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.OSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).OSVersion = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Resource System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Resource { get => this._resource; set { {_resource = value;} } } /// Internal Acessors for ServiceStatuses - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatuses Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ServiceStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatuses = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatuses Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ServiceStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatuses = value ?? null /* model class */; } /// Internal Acessors for ServiceStatusesExtensionService - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService = value ?? null /* model class */; } /// Internal Acessors for ServiceStatusesGuestConfigurationService - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService = value ?? null /* model class */; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).VMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).VMUuid = value ?? null; } /// Internal Acessors for WindowConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).WindowConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).WindowConfigurationPatchSetting = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Specifies whether any MS SQL instance is discovered on the machine. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -372,7 +393,7 @@ public partial class Machine : /// The list of network interfaces. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public System.Collections.Generic.List NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface = value ?? null /* arrayOf */; } + public System.Collections.Generic.List NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface; } /// The Operating System running on the hybrid machine. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -434,31 +455,31 @@ public partial class Machine : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtension.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtension.cs index 2f5305098a66..700d5798fdc1 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtension.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtension.cs @@ -57,31 +57,49 @@ public partial class MachineExtension : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceView = value ?? null /* model class */; } /// Internal Acessors for InstanceViewStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -144,31 +162,31 @@ public partial class MachineExtension : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtensionProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtensionProperties.cs index 1e619c727110..ce1b56fe9b80 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtensionProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineExtensionProperties.cs @@ -64,7 +64,7 @@ public partial class MachineExtensionProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineProperties.cs index 2d67f7f9ec53..83fbe2678378 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineProperties.cs @@ -236,43 +236,43 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfiguration { get => (this._agentConfiguration = this._agentConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.AgentConfiguration()); set { {_agentConfiguration = value;} } } /// Internal Acessors for AgentConfigurationConfigMode - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode = value ?? null; } /// Internal Acessors for AgentConfigurationExtensionsAllowList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsBlockList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsEnabled - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationGuestConfigurationEnabled - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationIncomingConnectionsPort - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyBypass - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyUrl - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl = value ?? null; } /// Internal Acessors for AgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgrade { get => (this._agentUpgrade = this._agentUpgrade ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.AgentUpgrade()); set { {_agentUpgrade = value;} } } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value ?? null; } /// Internal Acessors for AgentVersion string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } @@ -281,7 +281,7 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.CloudMetadata { get => (this._cloudMetadata = this._cloudMetadata ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.CloudMetadata()); set { {_cloudMetadata = value;} } } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider = value ?? null; } /// Internal Acessors for DetectedProperty Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IDetectedProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.DetectedProperty { get => (this._detectedProperty = this._detectedProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.DetectedProperties()); set { {_detectedProperty = value;} } } @@ -302,7 +302,7 @@ public partial class MachineProperties : global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.LastStatusChange { get => this._lastStatusChange; set { {_lastStatusChange = value;} } } /// Internal Acessors for LinuxConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting = value ?? null /* model class */; } /// Internal Acessors for LocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.LocationData { get => (this._locationData = this._locationData ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LocationData()); set { {_locationData = value;} } } @@ -313,6 +313,9 @@ public partial class MachineProperties : /// Internal Acessors for NetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkProfile()); set { {_networkProfile = value;} } } + /// Internal Acessors for NetworkProfileNetworkInterface + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface = value ?? null /* arrayOf */; } + /// Internal Acessors for OSName string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSName { get => this._oSName; set { {_oSName = value;} } } @@ -320,13 +323,13 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.OSProfile()); set { {_oSProfile = value;} } } /// Internal Acessors for OSProfileComputerName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName = value ?? null; } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSSku string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.OSSku { get => this._oSSku; set { {_oSSku = value;} } } @@ -341,10 +344,10 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatuses Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.ServiceStatuses { get => (this._serviceStatuses = this._serviceStatuses ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ServiceStatuses()); set { {_serviceStatuses = value;} } } /// Internal Acessors for ServiceStatusesExtensionService - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService = value ?? null /* model class */; } /// Internal Acessors for ServiceStatusesGuestConfigurationService - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService = value ?? null /* model class */; } /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.Status { get => this._status; set { {_status = value;} } } @@ -353,7 +356,7 @@ public partial class MachineProperties : string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.VMUuid { get => this._vMUuid; set { {_vMUuid = value;} } } /// Internal Acessors for WindowConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachinePropertiesInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting = value ?? null /* model class */; } /// Backing field for property. private string _mssqlDiscovered; @@ -371,7 +374,7 @@ public partial class MachineProperties : /// The list of network interfaces. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public System.Collections.Generic.List NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface = value ?? null /* arrayOf */; } + public System.Collections.Generic.List NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface; } /// Backing field for property. private string _oSName; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdate.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdate.cs index 44eb644a6d52..f6894ca274dd 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdate.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdate.cs @@ -103,58 +103,58 @@ public partial class MachineUpdate : public string LocationDataName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LocationDataName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LocationDataName = value ?? null; } /// Internal Acessors for AgentUpgrade - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade = value ?? null /* model class */; } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value ?? null; } /// Internal Acessors for CloudMetadata - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata = value ?? null /* model class */; } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for LinuxConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LinuxConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LinuxConfigurationPatchSetting = value ?? null /* model class */; } /// Internal Acessors for LocationData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LocationData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).LocationData = value ?? null /* model class */; } /// Internal Acessors for OSProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfileComputerName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileComputerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileComputerName = value ?? null; } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for WindowConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).WindowConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdateInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal)Property).WindowConfigurationPatchSetting = value ?? null /* model class */; } /// Specifies the host OS name of the hybrid machine. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdateProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdateProperties.cs index 1ca4e47005be..fae8b70421b9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdateProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MachineUpdateProperties.cs @@ -94,25 +94,25 @@ public partial class MachineUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgrade { get => (this._agentUpgrade = this._agentUpgrade ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.AgentUpgrade()); set { {_agentUpgrade = value;} } } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value ?? null; } /// Internal Acessors for CloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.CloudMetadata { get => (this._cloudMetadata = this._cloudMetadata ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.CloudMetadata()); set { {_cloudMetadata = value;} } } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ICloudMetadataInternal)CloudMetadata).Provider = value ?? null; } /// Internal Acessors for LinuxConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfigurationPatchSetting = value ?? null /* model class */; } /// Internal Acessors for LocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.LocationData { get => (this._locationData = this._locationData ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LocationData()); set { {_locationData = value;} } } @@ -121,16 +121,16 @@ public partial class MachineUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.OSProfile()); set { {_oSProfile = value;} } } /// Internal Acessors for OSProfileComputerName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).ComputerName = value ?? null; } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).LinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for WindowConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineUpdatePropertiesInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal)OSProfile).WindowConfigurationPatchSetting = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfile _oSProfile; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImageProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImageProperties.cs index 95a70751fd76..0a0e123f512d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImageProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImageProperties.cs @@ -33,7 +33,7 @@ public partial class MarketplaceGalleryImageProperties : /// The downloaded sized of the image in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb = value ?? default(long); } + public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb; } /// Backing field for property. private string _hyperVGeneration; @@ -61,35 +61,53 @@ public partial class MarketplaceGalleryImageProperties : [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] public string IdentifierSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifierInternal)Identifier).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifierInternal)Identifier).Sku = value ?? null; } + /// Internal Acessors for DownloadStatusDownloadSizeInMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatusDownloadSizeInMb = value ?? default(long); } + /// Internal Acessors for Identifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.Identifier { get => (this._identifier = this._identifier ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageIdentifier()); set { {_identifier = value;} } } /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).OSDiskImageSizeInMb = value ?? default(long); } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MarketplaceGalleryImageStatus()); set { {_status = value;} } } /// Internal Acessors for StatusDownloadStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).DownloadStatus = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorMessage = value ?? null; } + + /// Internal Acessors for StatusProgressPercentage + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProgressPercentage = value ?? default(long); } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfile = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDiskImage - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).StorageProfileOSDiskImage = value ?? null /* model class */; } /// Internal Acessors for Version Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.Version { get => (this._version = this._version ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImageVersion()); set { {_version = value;} } } /// Internal Acessors for VersionProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionInternal)Version).Property = value ?? null /* model class */; } /// This property indicates the size of the VHD to be created. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -113,11 +131,11 @@ public partial class MarketplaceGalleryImageProperties : /// The status of the operation performed on the gallery image [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the gallery image [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatus _status; @@ -128,15 +146,15 @@ public partial class MarketplaceGalleryImageProperties : /// MarketplaceGalleryImage provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ErrorMessage; } /// The progress of the operation in percentage [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProgressPercentage = value ?? default(long); } + public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusInternal)Status).ProgressPercentage; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion _version; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImages.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImages.cs index 49371cbbbd1c..15b229b0bd0f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImages.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/MarketplaceGalleryImages.cs @@ -32,7 +32,7 @@ public partial class MarketplaceGalleryImages : /// The downloaded sized of the image in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb = value ?? default(long); } + public long? DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation _extendedLocation; @@ -73,55 +73,91 @@ public partial class MarketplaceGalleryImages : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + + /// Internal Acessors for DownloadStatusDownloadSizeInMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.DownloadStatusDownloadSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).DownloadStatusDownloadSizeInMb = value ?? default(long); } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for Identifier - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Identifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Identifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Identifier = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageIdentifier Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Identifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Identifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Identifier = value ?? null /* model class */; } /// Internal Acessors for OSDiskImageSizeInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.OSDiskImageSizeInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).OSDiskImageSizeInMb = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MarketplaceGalleryImageProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Status = value ?? null /* model class */; } /// Internal Acessors for StatusDownloadStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusDownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusDownloadStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusDownloadStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusDownloadStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusDownloadStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusDownloadStatus = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + + /// Internal Acessors for StatusProgressPercentage + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProgressPercentage = value ?? default(long); } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImageStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDiskImage - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryOSDiskImage Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.StorageProfileOSDiskImage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StorageProfileOSDiskImage = value ?? null /* model class */; } /// Internal Acessors for Version - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Version = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersion Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).Version = value ?? null /* model class */; } /// Internal Acessors for VersionProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).VersionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).VersionProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesInternal.VersionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).VersionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).VersionProperty = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -150,11 +186,11 @@ public partial class MarketplaceGalleryImages : /// The status of the operation performed on the gallery image [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the gallery image [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -162,45 +198,45 @@ public partial class MarketplaceGalleryImages : /// MarketplaceGalleryImage provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusErrorMessage; } /// The progress of the operation in percentage [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProgressPercentage = value ?? default(long); } + public long? StatusProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagePropertiesInternal)Property).StatusProgressPercentage; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaceProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaceProperties.cs index 3e45c4d21a82..f7dfecb54da9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaceProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaceProperties.cs @@ -44,11 +44,23 @@ public partial class NetworkInterfaceProperties : /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkInterfaceStatus()); set { {_status = value;} } } + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorMessage = value ?? null; } + /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Backing field for property. private string _provisioningState; @@ -61,11 +73,11 @@ public partial class NetworkInterfaceProperties : /// The status of the operation performed on the network interface [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the network interface [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatus _status; @@ -76,11 +88,11 @@ public partial class NetworkInterfaceProperties : /// NetworkInterface provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusInternal)Status).ErrorMessage; } /// Creates an new instance. public NetworkInterfaceProperties() diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaces.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaces.cs index ea3ff0adb962..216aa097d271 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaces.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/NetworkInterfaces.cs @@ -49,14 +49,14 @@ public partial class NetworkInterfaces : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// MacAddress - The MAC address of the network interface. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] public string MacAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).MacAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).MacAddress = value ?? null; } /// Internal Acessors for DnsSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IInterfaceDnsSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.DnsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).DnsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).DnsSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IInterfaceDnsSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.DnsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).DnsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).DnsSetting = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -65,25 +65,55 @@ public partial class NetworkInterfaces : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkInterfaceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).Status = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorMessage = value ?? null; } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -104,11 +134,11 @@ public partial class NetworkInterfaces : /// The status of the operation performed on the network interface [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the network interface [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -116,41 +146,41 @@ public partial class NetworkInterfaces : /// NetworkInterface provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacePropertiesInternal)Property).StatusErrorMessage; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OSProfile.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OSProfile.cs index f1d905a7cfe1..65c04f69ccd1 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OSProfile.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OSProfile.cs @@ -42,10 +42,10 @@ public partial class OSProfile : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal.LinuxConfiguration { get => (this._linuxConfiguration = this._linuxConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.OSProfileLinuxConfiguration()); set { {_linuxConfiguration = value;} } } /// Internal Acessors for LinuxConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting = value ?? null /* model class */; } /// Internal Acessors for WindowConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting = value ?? null /* model class */; } /// Internal Acessors for WindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileInternal.WindowsConfiguration { get => (this._windowsConfiguration = this._windowsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.OSProfileWindowsConfiguration()); set { {_windowsConfiguration = value;} } } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OperationValue.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OperationValue.cs index 5aeaefa16447..9a477a71a35a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OperationValue.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/OperationValue.cs @@ -47,16 +47,16 @@ public partial class OperationValue : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplay Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.OperationValueDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOperationValueInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ProxyResource.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ProxyResource.cs index 452ec7549435..653a468396b6 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Resource.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Resource.cs index ccb7bcb1b3ca..fb6d7576aec1 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Resource.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainerProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainerProperties.cs index bd5d496069ce..5956d11ab8da 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainerProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainerProperties.cs @@ -16,11 +16,29 @@ public partial class StorageContainerProperties : /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageContainerStatus()); set { {_status = value;} } } + /// Internal Acessors for StatusAvailableSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.StatusAvailableSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).AvailableSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).AvailableSizeMb = value ?? default(long); } + + /// Internal Acessors for StatusContainerSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.StatusContainerSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ContainerSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ContainerSizeMb = value ?? default(long); } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorMessage = value ?? null; } + /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Backing field for property. private string _path; @@ -40,11 +58,11 @@ public partial class StorageContainerProperties : /// The status of the operation performed on the storage container [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the storage container [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatus _status; @@ -55,19 +73,19 @@ public partial class StorageContainerProperties : /// Amount of space available on the disk in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusAvailableSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).AvailableSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).AvailableSizeMb = value ?? default(long); } + public long? StatusAvailableSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).AvailableSizeMb; } /// Total size of the disk in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusContainerSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ContainerSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ContainerSizeMb = value ?? default(long); } + public long? StatusContainerSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ContainerSizeMb; } /// StorageContainer provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusInternal)Status).ErrorMessage; } /// Creates an new instance. public StorageContainerProperties() diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainers.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainers.cs index cee51f419760..2f626aecf26f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainers.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/StorageContainers.cs @@ -41,19 +41,37 @@ public partial class StorageContainers : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -62,13 +80,31 @@ public partial class StorageContainers : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageContainerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).Status = value ?? null /* model class */; } + + /// Internal Acessors for StatusAvailableSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.StatusAvailableSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusAvailableSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusAvailableSizeMb = value ?? default(long); } + + /// Internal Acessors for StatusContainerSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.StatusContainerSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusContainerSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusContainerSizeMb = value ?? default(long); } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorMessage = value ?? null; } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -93,11 +129,11 @@ public partial class StorageContainers : /// The status of the operation performed on the storage container [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the storage container [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -105,49 +141,49 @@ public partial class StorageContainers : /// Amount of space available on the disk in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusAvailableSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusAvailableSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusAvailableSizeMb = value ?? default(long); } + public long? StatusAvailableSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusAvailableSizeMb; } /// Total size of the disk in MB [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public long? StatusContainerSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusContainerSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusContainerSizeMb = value ?? default(long); } + public long? StatusContainerSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusContainerSizeMb; } /// StorageContainer provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainerPropertiesInternal)Property).StatusErrorMessage; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Subnet.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Subnet.cs index cdd9af6722d7..39b07001ff66 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Subnet.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/Subnet.cs @@ -38,19 +38,19 @@ public partial class Subnet : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.SubnetPropertiesFormat()); set { {_property = value;} } } /// Internal Acessors for RouteTable - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTable Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTable { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTable; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTable = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTable Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTable { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTable; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTable = value ?? null /* model class */; } /// Internal Acessors for RouteTableEtag - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableEtag { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableEtag; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableEtag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableEtag { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableEtag; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableEtag = value ?? null; } /// Internal Acessors for RouteTableName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableName = value ?? null; } /// Internal Acessors for RouteTableProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTablePropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTablePropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableProperty = value ?? null /* model class */; } /// Internal Acessors for RouteTableType - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetInternal.RouteTableType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal)Property).RouteTableType = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/SubnetPropertiesFormat.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/SubnetPropertiesFormat.cs index 27e55177bf8b..067a9cf68b2c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/SubnetPropertiesFormat.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/SubnetPropertiesFormat.cs @@ -54,16 +54,16 @@ public partial class SubnetPropertiesFormat : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTable Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTable { get => (this._routeTable = this._routeTable ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.RouteTable()); set { {_routeTable = value;} } } /// Internal Acessors for RouteTableEtag - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableEtag { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Etag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableEtag { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Etag = value ?? null; } /// Internal Acessors for RouteTableName - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Name = value ?? null; } /// Internal Acessors for RouteTableProperty - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTablePropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Property = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTablePropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Property = value ?? null /* model class */; } /// Internal Acessors for RouteTableType - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISubnetPropertiesFormatInternal.RouteTableType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IRouteTableInternal)RouteTable).Type = value ?? null; } /// Collection of routes contained within a route table. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/TrackedResource.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/TrackedResource.cs index 75a96865b679..9b6026ea3a82 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/StackHCIVM/StackHCIVM.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.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDiskProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDiskProperties.cs index 641e99074481..1fb0a1e3175d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDiskProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDiskProperties.cs @@ -63,11 +63,23 @@ public partial class VirtualHardDiskProperties : /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualHardDiskStatus()); set { {_status = value;} } } + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorMessage = value ?? null; } + /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Backing field for property. private int? _physicalSectorByte; @@ -86,11 +98,11 @@ public partial class VirtualHardDiskProperties : /// The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the virtual hard disk [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatus _status; @@ -101,11 +113,11 @@ public partial class VirtualHardDiskProperties : /// VirtualHardDisk provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusInternal)Status).ErrorMessage; } /// Creates an new instance. public VirtualHardDiskProperties() diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDisks.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDisks.cs index 2f4c5a3d1a05..4e33cdcef60e 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDisks.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualHardDisks.cs @@ -64,22 +64,40 @@ public partial class VirtualHardDisks : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] public int? LogicalSectorByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).LogicalSectorByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).LogicalSectorByte = value ?? default(int); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -88,13 +106,25 @@ public partial class VirtualHardDisks : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualHardDiskProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).Status = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorMessage = value ?? null; } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -118,11 +148,11 @@ public partial class VirtualHardDisks : /// The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the virtual hard disk [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -130,41 +160,41 @@ public partial class VirtualHardDisks : /// VirtualHardDisk provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDiskPropertiesInternal)Property).StatusErrorMessage; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstance.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstance.cs index 7f0700d7e7ca..4043c03e917f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstance.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstance.cs @@ -143,109 +143,148 @@ public partial class VirtualMachineInstance : public System.Collections.Generic.List LinuxConfigurationSshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).LinuxConfigurationSshPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).LinuxConfigurationSshPublicKey = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for GuestAgentInstallStatusAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusAgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusAgentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusAgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusAgentVersion = value ?? null; } /// Internal Acessors for GuestAgentInstallStatusErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusErrorDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusErrorDetail = value ?? null /* arrayOf */; } /// Internal Acessors for GuestAgentInstallStatusLastStatusChange - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusLastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusLastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusLastStatusChange = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusLastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusLastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusLastStatusChange = value ?? default(global::System.DateTime); } /// Internal Acessors for GuestAgentInstallStatusVMUuid - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusVMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusVMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.GuestAgentInstallStatusVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusVMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusVMUuid = value ?? null; } /// Internal Acessors for HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile = value ?? null /* model class */; } /// Internal Acessors for HardwareProfileDynamicMemoryConfig - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.HardwareProfileDynamicMemoryConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileDynamicMemoryConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileDynamicMemoryConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.HardwareProfileDynamicMemoryConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileDynamicMemoryConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileDynamicMemoryConfig = value ?? null /* model class */; } /// Internal Acessors for HttpProxyConfig - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHttpProxyConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.HttpProxyConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HttpProxyConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HttpProxyConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHttpProxyConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.HttpProxyConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HttpProxyConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).HttpProxyConfig = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceView = value ?? null /* model class */; } /// Internal Acessors for InstanceViewVMAgent - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineConfigAgentInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.InstanceViewVMAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceViewVMAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceViewVMAgent = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineConfigAgentInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.InstanceViewVMAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceViewVMAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).InstanceViewVMAgent = value ?? null /* model class */; } /// Internal Acessors for LinuxConfigurationSsh - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.LinuxConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).LinuxConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).LinuxConfigurationSsh = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.LinuxConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).LinuxConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).LinuxConfigurationSsh = value ?? null /* model class */; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileLinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileLinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileWindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileWindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for PropertiesGuestAgentInstallStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.PropertiesGuestAgentInstallStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.PropertiesGuestAgentInstallStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatus = value ?? null /* model class */; } /// Internal Acessors for PropertiesGuestAgentInstallStatusStatus - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.PropertiesGuestAgentInstallStatusStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.PropertiesGuestAgentInstallStatusStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).GuestAgentInstallStatusStatus = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstanceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } /// Internal Acessors for SecurityProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.SecurityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.SecurityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfile = value ?? null /* model class */; } /// Internal Acessors for SecurityProfileUefiSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileUefiSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.SecurityProfileUefiSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfileUefiSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfileUefiSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileUefiSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.SecurityProfileUefiSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfileUefiSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).SecurityProfileUefiSetting = value ?? null /* model class */; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).Status = value ?? null /* model class */; } + + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + + /// Internal Acessors for StatusPowerState + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StatusPowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusPowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusPowerState = value ?? null; } /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// Internal Acessors for StorageProfileImageReference - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileImageReference Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StorageProfileImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileImageReference = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileImageReference Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StorageProfileImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileImageReference = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDisk - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileOSDisk Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileOSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileOSDisk = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileOSDisk Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileOSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfileOSDisk = value ?? null /* model class */; } + + /// Internal Acessors for VMAgentStatuses + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.VMAgentStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentStatuses = value ?? null /* arrayOf */; } + + /// Internal Acessors for VMAgentVmconfigAgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.VMAgentVmconfigAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentVmconfigAgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentVmconfigAgentVersion = value ?? null; } /// Internal Acessors for VMId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMId = value ?? null; } /// Internal Acessors for WindowConfigurationSsh - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.WindowConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).WindowConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).WindowConfigurationSsh = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceInternal.WindowConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).WindowConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).WindowConfigurationSsh = value ?? null /* model class */; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] @@ -299,11 +338,11 @@ public partial class VirtualMachineInstance : /// The status of the operation performed on the virtual machine instance [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatus; } /// The ID of the operation performed on the virtual machine instance [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningStatusOperationId; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Owned)] @@ -325,15 +364,15 @@ public partial class VirtualMachineInstance : /// VirtualMachine provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusErrorMessage; } /// The power state of the virtual machine instance [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusPowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusPowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusPowerState = value ?? null; } + public string StatusPowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).StatusPowerState; } /// adds data disks to the virtual machine instance [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] @@ -347,31 +386,31 @@ public partial class VirtualMachineInstance : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -387,11 +426,11 @@ public partial class VirtualMachineInstance : /// The resource status information. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public System.Collections.Generic.List VMAgentStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentStatuses = value ?? null /* arrayOf */; } + public System.Collections.Generic.List VMAgentStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentStatuses; } /// The VM Config Agent full version. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string VMAgentVmconfigAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentVmconfigAgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentVmconfigAgentVersion = value ?? null; } + public string VMAgentVmconfigAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal)Property).VMAgentVmconfigAgentVersion; } /// Unique identifier for the vm resource. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs index 6862266ecb24..3319b88c9f13 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs @@ -135,25 +135,25 @@ public partial class VirtualMachineInstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatus { get => (this._guestAgentInstallStatus = this._guestAgentInstallStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GuestAgentInstallStatus()); set { {_guestAgentInstallStatus = value;} } } /// Internal Acessors for GuestAgentInstallStatusAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).AgentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).AgentVersion = value ?? null; } /// Internal Acessors for GuestAgentInstallStatusErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).ErrorDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).ErrorDetail = value ?? null /* arrayOf */; } /// Internal Acessors for GuestAgentInstallStatusLastStatusChange - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusLastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).LastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).LastStatusChange = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusLastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).LastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).LastStatusChange = value ?? default(global::System.DateTime); } /// Internal Acessors for GuestAgentInstallStatusStatus - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).Status = value ?? null; } /// Internal Acessors for GuestAgentInstallStatusVMUuid - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).VMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.GuestAgentInstallStatusVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgentInstallStatusInternal)GuestAgentInstallStatus).VMUuid = value ?? null; } /// Internal Acessors for HardwareProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesHardwareProfile()); set { {_hardwareProfile = value;} } } /// Internal Acessors for HardwareProfileDynamicMemoryConfig - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.HardwareProfileDynamicMemoryConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileInternal)HardwareProfile).DynamicMemoryConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileInternal)HardwareProfile).DynamicMemoryConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.HardwareProfileDynamicMemoryConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileInternal)HardwareProfile).DynamicMemoryConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesHardwareProfileInternal)HardwareProfile).DynamicMemoryConfig = value ?? null /* model class */; } /// Internal Acessors for HttpProxyConfig Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHttpProxyConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.HttpProxyConfig { get => (this._httpProxyConfig = this._httpProxyConfig ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.HttpProxyConfiguration()); set { {_httpProxyConfig = value;} } } @@ -162,10 +162,10 @@ public partial class VirtualMachineInstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewVMAgent - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineConfigAgentInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.InstanceViewVMAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgent = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineConfigAgentInstanceView Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.InstanceViewVMAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgent = value ?? null /* model class */; } /// Internal Acessors for LinuxConfigurationSsh - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.LinuxConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfigurationSsh = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.LinuxConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfigurationSsh = value ?? null /* model class */; } /// Internal Acessors for NetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesNetworkProfile()); set { {_networkProfile = value;} } } @@ -174,40 +174,61 @@ public partial class VirtualMachineInstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesOSProfile()); set { {_oSProfile = value;} } } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).LinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for ProvisioningStatus + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + + /// Internal Acessors for ProvisioningStatusOperationId + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + /// Internal Acessors for SecurityProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.SecurityProfile { get => (this._securityProfile = this._securityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesSecurityProfile()); set { {_securityProfile = value;} } } /// Internal Acessors for SecurityProfileUefiSetting - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileUefiSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.SecurityProfileUefiSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileInternal)SecurityProfile).UefiSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileInternal)SecurityProfile).UefiSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileUefiSettings Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.SecurityProfileUefiSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileInternal)SecurityProfile).UefiSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesSecurityProfileInternal)SecurityProfile).UefiSetting = value ?? null /* model class */; } /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstanceStatus()); set { {_status = value;} } } + /// Internal Acessors for StatusErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorCode = value ?? null; } + + /// Internal Acessors for StatusErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorMessage = value ?? null; } + + /// Internal Acessors for StatusPowerState + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StatusPowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).PowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).PowerState = value ?? null; } + /// Internal Acessors for StatusProvisioningStatus - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusProvisioningStatus Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StatusProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatus = value ?? null /* model class */; } /// Internal Acessors for StorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesStorageProfile()); set { {_storageProfile = value;} } } /// Internal Acessors for StorageProfileImageReference - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileImageReference Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StorageProfileImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).ImageReference = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileImageReference Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StorageProfileImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).ImageReference = value ?? null /* model class */; } /// Internal Acessors for StorageProfileOSDisk - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileOSDisk Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).OSDisk = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileOSDisk Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfileInternal)StorageProfile).OSDisk = value ?? null /* model class */; } + + /// Internal Acessors for VMAgentStatuses + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.VMAgentStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentStatuses = value ?? null /* arrayOf */; } + + /// Internal Acessors for VMAgentVmconfigAgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.VMAgentVmconfigAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentVmconfigAgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentVmconfigAgentVersion = value ?? null; } /// Internal Acessors for VMId string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.VMId { get => this._vMId; set { {_vMId = value;} } } /// Internal Acessors for WindowConfigurationSsh - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.WindowConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowConfigurationSsh = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesInternal.WindowConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowConfigurationSsh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal)OSProfile).WindowConfigurationSsh = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesNetworkProfile _networkProfile; @@ -267,11 +288,11 @@ public partial class VirtualMachineInstanceProperties : /// The status of the operation performed on the virtual machine instance [Succeeded, Failed, InProgress] /// [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusStatus = value ?? null; } + public string ProvisioningStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusStatus; } /// The ID of the operation performed on the virtual machine instance [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusOperationId = value ?? null; } + public string ProvisioningStatusOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ProvisioningStatusOperationId; } /// Backing field for property. private string _resourceUid; @@ -308,15 +329,15 @@ public partial class VirtualMachineInstanceProperties : /// VirtualMachine provisioning error code [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorCode = value ?? null; } + public string StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorCode; } /// Descriptive error message [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorMessage = value ?? null; } + public string StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).ErrorMessage; } /// The power state of the virtual machine instance [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string StatusPowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).PowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).PowerState = value ?? null; } + public string StatusPowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceStatusInternal)Status).PowerState; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesStorageProfile _storageProfile; @@ -343,11 +364,11 @@ public partial class VirtualMachineInstanceProperties : /// The resource status information. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public System.Collections.Generic.List VMAgentStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentStatuses = value ?? null /* arrayOf */; } + public System.Collections.Generic.List VMAgentStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentStatuses; } /// The VM Config Agent full version. [Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Origin(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.PropertyOrigin.Inlined)] - public string VMAgentVmconfigAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentVmconfigAgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentVmconfigAgentVersion = value ?? null; } + public string VMAgentVmconfigAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceViewInternal)InstanceView).VMAgentVmconfigAgentVersion; } /// Backing field for property. private string _vMId; diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstancePropertiesOSProfile.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstancePropertiesOSProfile.cs index ba66b8fa6f0d..68443793cf8b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstancePropertiesOSProfile.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstancePropertiesOSProfile.cs @@ -72,10 +72,10 @@ public partial class VirtualMachineInstancePropertiesOSProfile : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal.LinuxConfiguration { get => (this._linuxConfiguration = this._linuxConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesOSProfileLinuxConfiguration()); set { {_linuxConfiguration = value;} } } /// Internal Acessors for LinuxConfigurationSsh - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal.LinuxConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfigurationInternal)LinuxConfiguration).Ssh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfigurationInternal)LinuxConfiguration).Ssh = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal.LinuxConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfigurationInternal)LinuxConfiguration).Ssh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileLinuxConfigurationInternal)LinuxConfiguration).Ssh = value ?? null /* model class */; } /// Internal Acessors for WindowConfigurationSsh - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal.WindowConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfigurationInternal)WindowsConfiguration).Ssh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfigurationInternal)WindowsConfiguration).Ssh = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal.WindowConfigurationSsh { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfigurationInternal)WindowsConfiguration).Ssh; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfigurationInternal)WindowsConfiguration).Ssh = value ?? null /* model class */; } /// Internal Acessors for WindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstancePropertiesOSProfileInternal.WindowsConfiguration { get => (this._windowsConfiguration = this._windowsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstancePropertiesOSProfileWindowsConfiguration()); set { {_windowsConfiguration = value;} } } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateProperties.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateProperties.cs index f503e8e39165..29808fb6ad62 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateProperties.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateProperties.cs @@ -56,10 +56,10 @@ public partial class VirtualMachineInstanceUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.OSProfileUpdate()); set { {_oSProfile = value;} } } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).LinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).LinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).LinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).WindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).WindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateInternal)OSProfile).WindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for StorageProfile Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageProfileUpdate()); set { {_storageProfile = value;} } } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateRequest.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateRequest.cs index d4fdb3d8c0d8..17ab16b4a7b5 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateRequest.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/Models/VirtualMachineInstanceUpdateRequest.cs @@ -57,34 +57,34 @@ public partial class VirtualMachineInstanceUpdateRequest : public bool? LinuxConfigurationProvisionVMConfigAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).LinuxConfigurationProvisionVMConfigAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).LinuxConfigurationProvisionVMConfigAgent = value ?? default(bool); } /// Internal Acessors for HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHardwareProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IHardwareProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfileLinuxConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.OSProfileLinuxConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileLinuxConfiguration = value ?? null /* model class */; } /// Internal Acessors for OSProfileWindowsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IOSProfileUpdateWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.OSProfileWindowsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).OSProfileWindowsConfiguration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstanceUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequestInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// /// NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/StackHcivm.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/StackHcivm.cs index fd373daa35e8..bb4243a9cf1f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/StackHcivm.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/api/StackHcivm.cs @@ -1309,7 +1309,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1360,7 +1360,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// The gallery images resource definition. @@ -1421,7 +1421,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// The gallery images resource definition. @@ -1480,7 +1480,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1530,7 +1530,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1578,7 +1578,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1643,13 +1643,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -1797,13 +1797,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -2068,13 +2068,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -3505,13 +3505,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -3659,13 +3659,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -3814,7 +3814,7 @@ public partial class StackHcivm } } - /// Update GuestAgent. + /// update GuestAgent. /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. /// Request payload. @@ -3859,7 +3859,7 @@ public partial class StackHcivm } } - /// Update GuestAgent. + /// update GuestAgent. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -3913,7 +3913,7 @@ public partial class StackHcivm } } - /// Update GuestAgent. + /// update GuestAgent. /// /// Request payload. /// an instance that will receive events. @@ -3965,7 +3965,7 @@ public partial class StackHcivm } } - /// Update GuestAgent. + /// update GuestAgent. /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. /// Json string supplied to the GuestAgentCreate operation @@ -4009,7 +4009,7 @@ public partial class StackHcivm } } - /// Update GuestAgent. + /// update GuestAgent. /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. /// Json string supplied to the GuestAgentCreate operation @@ -4051,7 +4051,7 @@ public partial class StackHcivm } } - /// Update GuestAgent. + /// update GuestAgent. /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. /// Request payload. @@ -4109,13 +4109,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -4263,13 +4263,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -4516,13 +4516,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -6541,8 +6541,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -6593,8 +6592,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// /// The logical network resource definition. @@ -6655,8 +6653,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// /// The logical network resource definition. @@ -6715,8 +6712,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -6766,8 +6762,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -6815,8 +6810,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -6881,13 +6875,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -7035,13 +7029,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -7306,13 +7300,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -8743,13 +8737,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -8897,13 +8891,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -9052,7 +9046,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -9104,7 +9098,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// Parameters supplied to the Create Machine Extension operation. /// a delegate that is called when the remote service returns 200 (OK). @@ -9166,7 +9160,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// Parameters supplied to the Create Machine Extension operation. /// an instance that will receive events. @@ -9226,7 +9220,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -9277,7 +9271,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -9326,7 +9320,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -9393,13 +9387,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -9550,13 +9544,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -9832,13 +9826,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -10678,7 +10672,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -10730,7 +10724,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// Parameters supplied to the Create Machine Extension operation. /// a delegate that is called when the remote service returns 200 (OK). @@ -10792,7 +10786,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// Parameters supplied to the Create Machine Extension operation. /// an instance that will receive events. @@ -10852,7 +10846,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -10903,7 +10897,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -10952,7 +10946,7 @@ public partial class StackHcivm } } - /// The operation to create or update the extension. + /// The operation to update the extension. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the machine where the extension should be created or updated. @@ -11017,13 +11011,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -11174,13 +11168,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -11335,7 +11329,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -11386,7 +11380,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// Parameters supplied to the Create hybrid machine operation. @@ -11447,7 +11441,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// Parameters supplied to the Create hybrid machine operation. @@ -11506,7 +11500,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -11556,7 +11550,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -11604,7 +11598,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -13404,8 +13398,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -13456,8 +13450,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// The marketplace gallery image resource definition. @@ -13518,8 +13512,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// The marketplace gallery image resource definition. @@ -13578,8 +13572,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -13629,8 +13623,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -13678,8 +13672,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -13744,13 +13738,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -13900,13 +13894,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -14171,13 +14165,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -15616,13 +15610,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -15770,13 +15764,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -15926,8 +15920,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -15978,8 +15971,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// /// The network interface resource definition. @@ -16040,8 +16032,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// /// The network interface resource definition. @@ -16100,8 +16091,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16151,8 +16141,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16200,8 +16189,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -16266,13 +16254,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -16420,13 +16408,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -16691,13 +16679,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -18128,13 +18116,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -18282,13 +18270,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -19049,8 +19037,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -19101,8 +19088,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// /// The storage container resource definition. @@ -19163,8 +19149,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// /// The storage container resource definition. @@ -19223,8 +19208,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -19274,8 +19258,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -19323,8 +19306,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -19389,13 +19371,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -19543,13 +19525,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -19814,13 +19796,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -21251,13 +21233,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -21405,13 +21387,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -21736,13 +21718,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -21896,8 +21878,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -21948,8 +21929,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// The virtual hard disk resource definition. @@ -22010,8 +21990,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// The virtual hard disk resource definition. @@ -22070,8 +22049,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -22121,8 +22099,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -22170,8 +22147,7 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -22236,13 +22212,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -22390,13 +22366,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -22661,13 +22637,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -24098,13 +24074,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -24252,13 +24228,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -24408,8 +24384,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. @@ -24456,8 +24432,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// The virtual machine instance resource definition. @@ -24513,8 +24489,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// The virtual machine instance resource definition. @@ -24568,8 +24544,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. @@ -24615,8 +24591,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. @@ -24660,8 +24636,8 @@ public partial class StackHcivm } /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource /// to be extended. @@ -24722,13 +24698,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -24878,13 +24854,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -25131,13 +25107,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -26076,13 +26052,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -26231,13 +26207,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -26562,13 +26538,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -26717,13 +26693,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -27048,13 +27024,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -27203,13 +27179,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -27644,13 +27620,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); @@ -27798,13 +27774,13 @@ public partial class StackHcivm 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.StackHCIVM.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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"); diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateExpanded.cs index 9fba4e02fe23..a7a1bb20f152 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to create a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMGalleryImage_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a gallery image. Please note some properties can be set only during gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMGalleryImage_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class NewAzStackHCIVMGalleryImage_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; - /// The gallery images resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages _galleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImages(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -409,11 +400,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMGall /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -733,24 +719,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonFilePath.cs index 4cdb8838c896..836e391d8356 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to create a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMGalleryImage_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a gallery image. Please note some properties can be set only during gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class NewAzStackHCIVMGalleryImage_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMGall /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonString.cs index 4083a2ee0b73..dba3117c4f11 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGalleryImage_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to create a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMGalleryImage_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a gallery image. Please note some properties can be set only during gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class NewAzStackHCIVMGalleryImage_CreateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMGall /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateExpanded.cs index b7b56de46975..65efc100b1a7 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// Create GuestAgent. + /// create GuestAgent. /// /// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMGuestAgent_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"Create GuestAgent.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"create GuestAgent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMGuestAgent_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class NewAzStackHCIVMGuestAgent_CreateExpanded : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMGues /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,24 +557,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonFilePath.cs index 292ccfe0de76..94d71e5d6409 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonFilePath.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// Create GuestAgent. + /// create GuestAgent. /// /// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMGuestAgent_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"Create GuestAgent.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"create GuestAgent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,17 +42,8 @@ public partial class NewAzStackHCIVMGuestAgent_CreateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -230,11 +221,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMGues /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -550,24 +536,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonString.cs index 2c7cd5a2dd7e..92ab6f5cec27 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMGuestAgent_CreateViaJsonString.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// Create GuestAgent. + /// create GuestAgent. /// /// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMGuestAgent_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"Create GuestAgent.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"create GuestAgent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,15 +42,6 @@ public partial class NewAzStackHCIVMGuestAgent_CreateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMGues /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IGuestAgent 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateExpanded.cs index 0cd7174bd488..0d85b8f403e0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to create a logical network. Please note some properties can be set only during logical network creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMLogicalNetwork_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a logical network. Please note some properties can be set only during logical network creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMLogicalNetwork_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +43,9 @@ public partial class NewAzStackHCIVMLogicalNetwork_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; - /// The logical network resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks _logicalNetworksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LogicalNetworks(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -341,11 +331,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMLogi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -665,24 +650,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonFilePath.cs index 88c2289e6eee..3b8b0d670334 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to create a logical network. Please note some properties can be set only during logical network creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMLogicalNetwork_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a logical network. Please note some properties can be set only during logical network creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class NewAzStackHCIVMLogicalNetwork_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMLogi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonString.cs index 1f3ac1034c5d..a687b06bed58 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMLogicalNetwork_CreateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to create a logical network. Please note some properties can be set only during logical network creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMLogicalNetwork_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a logical network. Please note some properties can be set only during logical network creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class NewAzStackHCIVMLogicalNetwork_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMLogi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateExpanded.cs index b82e03cc0790..a100b1a2f51d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to create the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachineExtension_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class NewAzStackHCIVMMachineExtension_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class NewAzStackHCIVMMachineExtension_CreateExpanded : global::Sy /// Describes a Machine Extension. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtension(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -476,11 +467,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -796,24 +782,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachine.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachine.cs index 701c8c240879..21064444da1d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachine.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachine.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to create the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachineExtension_CreateViaIdentityMachine", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class NewAzStackHCIVMMachineExtension_CreateViaIdentityMachine : global::System.Management.Automation.PSCmdlet, @@ -41,15 +41,6 @@ public partial class NewAzStackHCIVMMachineExtension_CreateViaIdentityMachine : /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachineExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachineExpanded.cs index 96fed6d2ea9b..69679e1d35e4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachineExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaIdentityMachineExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to create the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachineExtension_CreateViaIdentityMachineExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class NewAzStackHCIVMMachineExtension_CreateViaIdentityMachineExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class NewAzStackHCIVMMachineExtension_CreateViaIdentityMachineExp /// Describes a Machine Extension. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtension(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -436,11 +427,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -778,24 +764,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonFilePath.cs index 154b1e4ee252..4666d623eed3 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonFilePath.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to create the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachineExtension_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,17 +42,8 @@ public partial class NewAzStackHCIVMMachineExtension_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonString.cs index 590980ac7da7..06c726d60e33 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachineExtension_CreateViaJsonString.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to create the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachineExtension_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,15 +42,6 @@ public partial class NewAzStackHCIVMMachineExtension_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateExpanded.cs index 4bd5eae3aab9..f7bfbcdaed14 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to create a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachine_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a hybrid machine. Please note some properties can be set only during machine creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", ApiVersion = "2023-03-15-preview")] public partial class NewAzStackHCIVMMachine_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonFilePath.cs index b71a38796c1c..000073bc530d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to create a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachine_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a hybrid machine. Please note some properties can be set only during machine creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonString.cs index 663779b1fd80..f29c765c87a8 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMachine_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to create a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMachine_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a hybrid machine. Please note some properties can be set only during machine creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateExpanded.cs index 4d9ac3967945..9eaeda07e654 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateExpanded.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMarketplaceGalleryImage_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMMarketplaceGalleryImage_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +44,9 @@ public partial class NewAzStackHCIVMMarketplaceGalleryImage_CreateExpanded : 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; - /// The marketplace gallery image resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages _marketplaceGalleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MarketplaceGalleryImages(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -401,11 +392,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMark /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -725,24 +711,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath.cs index 91d2faf07374..bc87e6e0e3b6 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePat /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMark /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString.cs index 909d7853bb90..6e18786c8ebe 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class NewAzStackHCIVMMarketplaceGalleryImage_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMMark /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateExpanded.cs index c90ea8f5c46a..3df92244ab5d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to create a network interface. Please note some properties can be set only during network interface creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMNetworkInterface_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a network interface. Please note some properties can be set only during network interface creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMNetworkInterface_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +43,9 @@ public partial class NewAzStackHCIVMNetworkInterface_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; - /// The network interface resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces _networkInterfacesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkInterfaces(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -341,11 +331,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -665,24 +650,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonFilePath.cs index 889d947298d6..40dc2204f643 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to create a network interface. Please note some properties can be set only during network interface creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMNetworkInterface_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a network interface. Please note some properties can be set only during network interface creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class NewAzStackHCIVMNetworkInterface_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonString.cs index 7a74bb9ec9ca..75da0e5bd0fe 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMNetworkInterface_CreateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to create a network interface. Please note some properties can be set only during network interface creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMNetworkInterface_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a network interface. Please note some properties can be set only during network interface creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class NewAzStackHCIVMNetworkInterface_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateExpanded.cs index 1a27a532db24..77f5f8e73714 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to create a storage container. Please note some properties can be set only during storage container creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMStoragePath_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a storage container. Please note some properties can be set only during storage container creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a storage container. Please note some properties can be set only during storage container creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMStoragePath_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +43,6 @@ public partial class NewAzStackHCIVMStoragePath_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; - - /// - /// 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; - /// The storage container resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers _storageContainersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageContainers(); @@ -317,11 +307,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMStor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +626,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonFilePath.cs index 545e21bdf8fd..270e11bcf836 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to create a storage container. Please note some properties can be set only during storage container creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMStoragePath_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a storage container. Please note some properties can be set only during storage container creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a storage container. Please note some properties can be set only during storage container creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class NewAzStackHCIVMStoragePath_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMStor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonString.cs index 23d606662fe8..522d7e96b83a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMStoragePath_CreateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to create a storage container. Please note some properties can be set only during storage container creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMStoragePath_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a storage container. Please note some properties can be set only during storage container creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a storage container. Please note some properties can be set only during storage container creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class NewAzStackHCIVMStoragePath_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMStor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateExpanded.cs index d4054f4ad9bc..b02864b7ca82 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMVirtualHardDisk_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMVirtualHardDisk_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +43,6 @@ public partial class NewAzStackHCIVMVirtualHardDisk_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; - - /// - /// 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; - /// The virtual hard disk resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks _virtualHardDisksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualHardDisks(); @@ -396,11 +386,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -720,24 +705,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath.cs index 17fae21f6082..c1c6941c9131 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class NewAzStackHCIVMVirtualHardDisk_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonString.cs index 49727f8b2c40..0eae002f9846 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualHardDisk_CreateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMVirtualHardDisk_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class NewAzStackHCIVMVirtualHardDisk_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateExpanded.cs index c1e5c4d1afb3..cf9ea6e883eb 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateExpanded.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMVirtualMachine_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", ApiVersion = "2024-01-01")] public partial class NewAzStackHCIVMVirtualMachine_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class NewAzStackHCIVMVirtualMachine_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; - - /// - /// 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; - /// The virtual machine instance resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance _virtualMachineInstanceBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstance(); @@ -647,11 +638,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -971,24 +957,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonFilePath.cs index 9a00a32e914b..25df4b2f72c9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonFilePath.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMVirtualMachine_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class NewAzStackHCIVMVirtualMachine_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,24 +539,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonString.cs index c2a341cd2188..57d7f463bd32 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/NewAzStackHCIVMVirtualMachine_CreateViaJsonString.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStackHCIVMVirtualMachine_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class NewAzStackHCIVMVirtualMachine_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.NewAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,24 +537,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_Delete.cs index 4f8f88e8cf34..26691de8c589 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMGalleryImage_Delete : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_DeleteViaIdentity.cs index 1526299c20f2..540de93a78f5 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGalleryImage_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMGalleryImage_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGuestAgent_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGuestAgent_Delete.cs index 539ecdc6d039..a2b44e432ed0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGuestAgent_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMGuestAgent_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMGuestAgent_Delete : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -544,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); } @@ -568,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_Delete.cs index 5050143e5c76..fc190bbe82ab 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMLogicalNetwork_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVML /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_DeleteViaIdentity.cs index b0592b339fbf..ab338f79f2a7 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMLogicalNetwork_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMLogicalNetwork_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVML /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_Delete.cs index c2c01472419c..851eb9cf7a5d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMMachineExtension_Delete : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentity.cs index 4a8c94e01d24..54e802eef5e9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMMachineExtension_DeleteViaIdentity : 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; - - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentityMachine.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentityMachine.cs index b68cb0ccac46..a32deec6dc3b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentityMachine.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachineExtension_DeleteViaIdentityMachine.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMMachineExtension_DeleteViaIdentityMachine /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_Delete.cs index 98b66feeaf7a..da01a48a2261 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_Delete.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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_DeleteViaIdentity.cs index 88ffa4b863eb..ba0dcfd7ddb5 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMachine_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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_Delete.cs index f89eb5e9f8d8..6ad411c29f28 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMMarketplaceGalleryImage_Delete : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_DeleteViaIdentity.cs index 3a2fa4042279..9e26a465aa43 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMMarketplaceGalleryImage_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMMarketplaceGalleryImage_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_Delete.cs index 6d433e139974..d2dbb724a416 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMNetworkInterface_Delete : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_DeleteViaIdentity.cs index 4a1c9c11c739..0524efb36dac 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMNetworkInterface_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMNetworkInterface_DeleteViaIdentity : 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; - - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_Delete.cs index e858b9c25132..ee0721d49b7a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMStoragePath_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_DeleteViaIdentity.cs index 313391bfc148..169b9e75d7ab 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMStoragePath_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMStoragePath_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_Delete.cs index 5d87f7b5adaa..23ec8257a775 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMVirtualHardDisk_Delete : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_DeleteViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_DeleteViaIdentity.cs index 95235fae4dd0..392a338177eb 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_DeleteViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualHardDisk_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMVirtualHardDisk_DeleteViaIdentity : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualMachine_Delete.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualMachine_Delete.cs index f57307bd3ad9..c585a04565e0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualMachine_Delete.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RemoveAzStackHCIVMVirtualMachine_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzStackHCIVMVirtualMachine_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RemoveAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -544,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); } @@ -568,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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RestartAzStackHCIVMVirtualMachine_Restart.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RestartAzStackHCIVMVirtualMachine_Restart.cs index fdb28eae752b..4868c73d0c6d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RestartAzStackHCIVMVirtualMachine_Restart.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/RestartAzStackHCIVMVirtualMachine_Restart.cs @@ -41,15 +41,6 @@ public partial class RestartAzStackHCIVMVirtualMachine_Restart : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -213,11 +204,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.RestartAzStackHCIVM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -533,24 +519,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateExpanded.cs index 8a43d2c82928..3d771822db32 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMGalleryImage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a gallery image. Please note some properties can be set only during gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMGalleryImage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,18 +43,9 @@ public partial class SetAzStackHCIVMGalleryImage_UpdateExpanded : 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; - /// The gallery images resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages _galleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImages(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -403,11 +394,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMGall /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -723,24 +709,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs index 0b86533444e8..ab88b5d70163 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMGalleryImage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a gallery image. Please note some properties can be set only during gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class SetAzStackHCIVMGalleryImage_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMGall /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonString.cs index d93454240fc8..d8d35cc4afe4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMGalleryImage_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation. + /// The operation to update a gallery image. Please note some properties can be set only during gallery image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMGalleryImage_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a gallery image. Please note some properties can be set only during gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class SetAzStackHCIVMGalleryImage_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMGall /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateExpanded.cs index 08907dbc9099..d3ba64aed544 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMLogicalNetwork_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a logical network. Please note some properties can be set only during logical network creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMLogicalNetwork_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +43,9 @@ public partial class SetAzStackHCIVMLogicalNetwork_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; - /// The logical network resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks _logicalNetworksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LogicalNetworks(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -335,11 +325,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMLogi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -655,24 +640,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs index fa7f5fe6a164..43f4a89e6b3b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a logical network. Please note some properties can be set only during logical network creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class SetAzStackHCIVMLogicalNetwork_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMLogi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs index 1a8e8e912ad7..1e8d2189fad0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a logical network. Please note some properties can be set only during logical network - /// creation. + /// The operation to update a logical network. Please note some properties can be set only during logical network creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMLogicalNetwork_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a logical network. Please note some properties can be set only during logical network creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class SetAzStackHCIVMLogicalNetwork_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMLogi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateExpanded.cs index c44724210fe9..1723d97947d0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMachineExtension_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class SetAzStackHCIVMMachineExtension_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class SetAzStackHCIVMMachineExtension_UpdateExpanded : global::Sy /// Describes a Machine Extension. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtension(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -476,11 +467,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -796,24 +782,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs index 469cb1a97512..c2fab402045d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMachineExtension_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,17 +42,8 @@ public partial class SetAzStackHCIVMMachineExtension_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonString.cs index dc3aad67480c..06951d6568df 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachineExtension_UpdateViaJsonString.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMachineExtension_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,15 +42,6 @@ public partial class SetAzStackHCIVMMachineExtension_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateExpanded.cs index 48995318e437..579f798de030 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMachine_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a hybrid machine. Please note some properties can be set only during machine creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", ApiVersion = "2023-03-15-preview")] public partial class SetAzStackHCIVMMachine_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonFilePath.cs index 6f42389c8e43..e72fac2da94b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMachine_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a hybrid machine. Please note some properties can be set only during machine creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonString.cs index cc2428eb1128..2bbb524e77bb 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMachine_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. + /// The operation to update a hybrid machine. Please note some properties can be set only during machine creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMachine_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a hybrid machine. Please note some properties can be set only during machine creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs index af08ddcc1160..4c0f3969ccbe 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMarketplaceGalleryImage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +44,9 @@ public partial class SetAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded : 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; - /// The marketplace gallery image resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages _marketplaceGalleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MarketplaceGalleryImages(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -395,11 +386,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMMark /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -715,24 +701,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs index 52cfc2999223..5369f65f8cf2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePat /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMMark /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs index 20f613d89e88..391d138955c0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace - /// gallery image creation. + /// The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery + /// image creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class SetAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMMark /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateExpanded.cs index 04d22bc887b6..866c8f75a8be 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMNetworkInterface_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a network interface. Please note some properties can be set only during network interface creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMNetworkInterface_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,18 +43,9 @@ public partial class SetAzStackHCIVMNetworkInterface_UpdateExpanded : 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; - /// The network interface resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces _networkInterfacesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkInterfaces(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -335,11 +325,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -655,24 +640,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs index 4c7388478acd..a00b1b2c290a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMNetworkInterface_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a network interface. Please note some properties can be set only during network interface creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class SetAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs index 380d57da1cca..18cc8019716b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a network interface. Please note some properties can be set only during network interface - /// creation. + /// The operation to update a network interface. Please note some properties can be set only during network interface creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMNetworkInterface_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a network interface. Please note some properties can be set only during network interface creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class SetAzStackHCIVMNetworkInterface_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateExpanded.cs index 05168a171af7..773dea16a06f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMStorageContainer_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a storage container. Please note some properties can be set only during storage container creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a storage container. Please note some properties can be set only during storage container creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMStorageContainer_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +43,6 @@ public partial class SetAzStackHCIVMStorageContainer_UpdateExpanded : 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; - /// The storage container resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers _storageContainersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageContainers(); @@ -311,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMStor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +616,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonFilePath.cs index 4f8283311880..0f4327a50d7c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMStorageContainer_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a storage container. Please note some properties can be set only during storage container creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a storage container. Please note some properties can be set only during storage container creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class SetAzStackHCIVMStorageContainer_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMStor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonString.cs index d025959d0052..5428365c4321 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMStorageContainer_UpdateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a storage container. Please note some properties can be set only during storage container - /// creation. + /// The operation to update a storage container. Please note some properties can be set only during storage container creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMStorageContainer_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a storage container. Please note some properties can be set only during storage container creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a storage container. Please note some properties can be set only during storage container creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class SetAzStackHCIVMStorageContainer_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMStor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs index dc33dfedde86..b30265a32a0c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMVirtualHardDisk_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMVirtualHardDisk_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +43,6 @@ public partial class SetAzStackHCIVMVirtualHardDisk_UpdateExpanded : 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; - /// The virtual hard disk resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks _virtualHardDisksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualHardDisks(); @@ -390,11 +380,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -710,24 +695,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs index 69502c9682e1..6987dbbbb929 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +44,8 @@ public partial class SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs index 8a4075c0cbc1..052f6b4c6c43 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard - /// disk creation. + /// The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}" @@ -20,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMVirtualHardDisk_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +44,6 @@ public partial class SetAzStackHCIVMVirtualHardDisk_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateExpanded.cs index 6f8fbb5fd538..30fbb5dde171 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateExpanded.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMVirtualMachineInstance_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", ApiVersion = "2024-01-01")] public partial class SetAzStackHCIVMVirtualMachineInstance_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class SetAzStackHCIVMVirtualMachineInstance_UpdateExpanded : 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; - - /// - /// 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; - /// The virtual machine instance resource definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance _virtualMachineInstanceBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstance(); @@ -641,11 +632,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -961,24 +947,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath.cs index 1cc2e8535715..72b6d593b189 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonString.cs index f3ff75d130f2..e8b7cb9abfba 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonString.cs @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using System; /// - /// The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual - /// machine instance creation. + /// The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine + /// instance creation. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzStackHCIVMVirtualMachineInstance_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", ApiVersion = "2024-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class SetAzStackHCIVMVirtualMachineInstance_UpdateViaJsonString : /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.SetAzStackHCIVMVirt /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,24 +539,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StartAzStackHCIVMVirtualMachine_Start.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StartAzStackHCIVMVirtualMachine_Start.cs index c60941d33a0d..81f967a73362 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StartAzStackHCIVMVirtualMachine_Start.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StartAzStackHCIVMVirtualMachine_Start.cs @@ -41,15 +41,6 @@ public partial class StartAzStackHCIVMVirtualMachine_Start : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -213,11 +204,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.StartAzStackHCIVMVi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -533,24 +519,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StopAzStackHCIVMVirtualMachine_Stop.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StopAzStackHCIVMVirtualMachine_Stop.cs index bf63674c027d..29ed0c59be05 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StopAzStackHCIVMVirtualMachine_Stop.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/StopAzStackHCIVMVirtualMachine_Stop.cs @@ -41,15 +41,6 @@ public partial class StopAzStackHCIVMVirtualMachine_Stop : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -213,11 +204,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.StopAzStackHCIVMVir /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -533,24 +519,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_Upgrade.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_Upgrade.cs index b6eea9e12639..7ede1b32b463 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_Upgrade.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_Upgrade.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMExtension_Upgrade : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVME /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,7 +568,7 @@ public UpdateAzStackHCIVMExtension_Upgrade() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeExpanded.cs index 43fe8153e31a..31ef71970950 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzStackHCIVMExtension_UpgradeExpanded : global::Syste /// Describes the Machine Extension Upgrade Properties. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionUpgrade _extensionUpgradeParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionUpgrade(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVME /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,7 +569,7 @@ public UpdateAzStackHCIVMExtension_UpgradeExpanded() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentity.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentity.cs index b05eaac7febc..b16cace35297 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentity.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentity.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMExtension_UpgradeViaIdentity : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVME /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,7 +546,7 @@ public UpdateAzStackHCIVMExtension_UpgradeViaIdentity() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentityExpanded.cs index 9c8538bcdafe..0226da789c55 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzStackHCIVMExtension_UpgradeViaIdentityExpanded : gl /// Describes the Machine Extension Upgrade Properties. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionUpgrade _extensionUpgradeParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionUpgrade(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -225,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVME /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ public UpdateAzStackHCIVMExtension_UpgradeViaIdentityExpanded() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonFilePath.cs index c5f829f95dfb..57ec69a68ea4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzStackHCIVMExtension_UpgradeViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVME /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,7 +570,7 @@ public UpdateAzStackHCIVMExtension_UpgradeViaJsonFilePath() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonString.cs index 183a1fbc8082..ba1ae776bdf4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMExtension_UpgradeViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzStackHCIVMExtension_UpgradeViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVME /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,7 +568,7 @@ public UpdateAzStackHCIVMExtension_UpgradeViaJsonString() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateExpanded.cs index b117201f6ce9..d085381eb580 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzStackHCIVMGalleryImage_UpdateExpanded : 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 gallery images resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesUpdateRequest _galleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImagesUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzStackHCIVMGalleryImage_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaIdentityExpanded.cs index 19e7dc7c0210..c8cce438e0a0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzStackHCIVMGalleryImage_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; - /// The gallery images resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImagesUpdateRequest _galleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.GalleryImagesUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ public UpdateAzStackHCIVMGalleryImage_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs index f15daa1530d5..d4c248bd590f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzStackHCIVMGalleryImage_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ public UpdateAzStackHCIVMGalleryImage_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonString.cs index ae5ba7d07375..09daf6f0b970 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGalleryImage_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzStackHCIVMGalleryImage_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzStackHCIVMGalleryImage_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGuestAgent_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGuestAgent_UpdateExpanded.cs index 8f61f119b894..c8635d967dc6 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGuestAgent_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMGuestAgent_UpdateExpanded.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// Update GuestAgent. + /// update GuestAgent. /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default" /// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default" @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMGuestAgent_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"Update GuestAgent.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"update GuestAgent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] public partial class UpdateAzStackHCIVMGuestAgent_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.IEventListener, @@ -44,15 +44,6 @@ public partial class UpdateAzStackHCIVMGuestAgent_UpdateExpanded : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMG /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,24 +575,7 @@ private void Update_body() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IGuestAgent 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateExpanded.cs index e6248983a54b..a425220e73ec 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzStackHCIVMLogicalNetwork_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; - /// The logical network resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksUpdateRequest _logicalNetworksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LogicalNetworksUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVML /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzStackHCIVMLogicalNetwork_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaIdentityExpanded.cs index 71774fabcad2..11ab2dc33765 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzStackHCIVMLogicalNetwork_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; - /// The logical network resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworksUpdateRequest _logicalNetworksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.LogicalNetworksUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVML /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,24 +547,7 @@ public UpdateAzStackHCIVMLogicalNetwork_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs index 2e297c53f338..f6630c1f8e68 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath : 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; - 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVML /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs index 7f9783f619c5..b367de361396 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonString : 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; - - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVML /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzStackHCIVMLogicalNetwork_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ILogicalNetworks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateExpanded.cs index 217306086724..d0fa5820a47e 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMMachineExtension_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class UpdateAzStackHCIVMMachineExtension_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class UpdateAzStackHCIVMMachineExtension_UpdateExpanded : global: /// Describes a Machine Extension Update. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionUpdate _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionUpdate(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -376,11 +367,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -696,24 +682,7 @@ public UpdateAzStackHCIVMMachineExtension_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpanded.cs index 6645b558f11d..5e134282a13b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMMachineExtension_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpande /// Describes a Machine Extension Update. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionUpdate _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionUpdate(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -665,24 +651,7 @@ public UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine.cs index fe3d2e73b59a..bb1c3fd7169e 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMMachineExtension_UpdateViaIdentityMachine", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine : global::System.Management.Automation.PSCmdlet, @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ public UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded.cs index 8d3231376227..7221a9aca67c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded : global::System.Management.Automation.PSCmdlet, @@ -44,15 +44,6 @@ public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachine /// Describes a Machine Extension Update. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtensionUpdate _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MachineExtensionUpdate(); - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -336,11 +327,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -678,24 +664,7 @@ public UpdateAzStackHCIVMMachineExtension_UpdateViaIdentityMachineExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs index f2e0714e0045..d9a155ae37af 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonFilePath.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMMachineExtension_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,17 +42,8 @@ public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaJsonFilePath : /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ public UpdateAzStackHCIVMMachineExtension_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonString.cs index ca8f4416fea3..2d7166d06624 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMachineExtension_UpdateViaJsonString.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.Cmdlets; using System; - /// The operation to create or update the extension. + /// The operation to update the extension. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStackHCIVMMachineExtension_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to create or update the extension.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Description(@"The operation to update the extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", ApiVersion = "2023-03-15-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.NotSuggestDefaultParameterSet] @@ -42,15 +42,6 @@ public partial class UpdateAzStackHCIVMMachineExtension_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ public UpdateAzStackHCIVMMachineExtension_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMachineExtension 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs index c1b8912c3837..1450273ae798 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzStackHCIVMMarketplaceGalleryImage_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; - /// The marketplace gallery image resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesUpdateRequest _marketplaceGalleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MarketplaceGalleryImagesUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ public UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded.cs index f37790de2c5d..fe78cf8454d9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentity /// 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 marketplace gallery image resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImagesUpdateRequest _marketplaceGalleryImagesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.MarketplaceGalleryImagesUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,24 +549,7 @@ public UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs index feef9c811213..92b0a1f18347 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFile /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ public UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs index 0fad9e00a44f..50cf144b8ad3 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonStri /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMM /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ public UpdateAzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IMarketplaceGalleryImages 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateExpanded.cs index 9f24da0a824f..d2f26358c06c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzStackHCIVMNetworkInterface_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; - /// The network interface resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesUpdateRequest _networkInterfacesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkInterfacesUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzStackHCIVMNetworkInterface_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaIdentityExpanded.cs index 335dcff4c6a1..0c15c683719a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzStackHCIVMNetworkInterface_UpdateViaIdentityExpande /// 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 network interface resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfacesUpdateRequest _networkInterfacesBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.NetworkInterfacesUpdateRequest(); - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,24 +547,7 @@ public UpdateAzStackHCIVMNetworkInterface_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs index 70915d7839c5..8fbbce997ac0 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath : /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ public UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs index b099f50123f9..ffb05f051124 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzStackHCIVMNetworkInterface_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.INetworkInterfaces 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateExpanded.cs index 913eeb8a6f91..531ec17ea819 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateExpanded.cs @@ -40,15 +40,6 @@ public partial class UpdateAzStackHCIVMStoragePath_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; - - /// - /// 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; - /// The storage container resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersUpdateRequest _storageContainersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageContainersUpdateRequest(); @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzStackHCIVMStoragePath_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaIdentityExpanded.cs index 8e6469984b2b..0360cf1cbf35 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaIdentityExpanded.cs @@ -40,15 +40,6 @@ public partial class UpdateAzStackHCIVMStoragePath_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; - - /// - /// 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; - /// The storage container resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainersUpdateRequest _storageContainersBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.StorageContainersUpdateRequest(); @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzStackHCIVMStoragePath_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonFilePath.cs index 290f20ba2d42..78df3a818327 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzStackHCIVMStoragePath_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzStackHCIVMStoragePath_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonString.cs index c2d3e2e65717..0be7a22db3a4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMStoragePath_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMStoragePath_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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzStackHCIVMStoragePath_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IStorageContainers 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs index a81dfa42856f..bded4d12495f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateExpanded.cs @@ -40,15 +40,6 @@ public partial class UpdateAzStackHCIVMVirtualHardDisk_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; - - /// - /// 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; - /// The virtual hard disk resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksUpdateRequest _virtualHardDisksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualHardDisksUpdateRequest(); @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzStackHCIVMVirtualHardDisk_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaIdentityExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaIdentityExpanded.cs index cdbac1950625..94e216963784 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaIdentityExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaIdentityExpanded.cs @@ -40,15 +40,6 @@ public partial class UpdateAzStackHCIVMVirtualHardDisk_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; - - /// - /// 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; - /// The virtual hard disk resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisksUpdateRequest _virtualHardDisksBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualHardDisksUpdateRequest(); @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,24 +547,7 @@ public UpdateAzStackHCIVMVirtualHardDisk_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs index 90bdea525d4a..6e3aed73b75f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs index 2d17e75ec491..95e13d62c1d2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonString : 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzStackHCIVMVirtualHardDisk_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualHardDisks 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateExpanded.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateExpanded.cs index 63a8d0c04648..10751fc0beb2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateExpanded.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzStackHCIVMVirtualMachine_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; - - /// - /// 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; - /// The virtual machine instance resource patch definition. private Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstanceUpdateRequest _virtualMachineInstanceBody = new Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.VirtualMachineInstanceUpdateRequest(); @@ -354,11 +345,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -674,24 +660,7 @@ public UpdateAzStackHCIVMVirtualMachine_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonFilePath.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonFilePath.cs index 64ad315d4fd5..e495f021ee65 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonFilePath.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonFilePath : 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; - 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -230,11 +221,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -550,24 +536,7 @@ public UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonString.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonString.cs index 8d8cf698a388..188c5aa7932d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonString.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonString : 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; - - /// - /// 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.StackHCIVM.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Cmdlets.UpdateAzStackHCIVMV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -548,24 +534,7 @@ public UpdateAzStackHCIVMVirtualMachine_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.IVirtualMachineInstance 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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index fc07c7166847..dfee02cb482f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/StackHCIVM/StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 239a9a467c91..415c60af8fe7 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM.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.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 10abf837c018..d6d5f4b53d79 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/StackHCIVM/StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 1d4b49c4cf29..265b7a058a7c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/StackHCIVM/StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Context.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Context.cs index 8a316650fa0f..19aa36e1cf82 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Context.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/MessageAttribute.cs b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/MessageAttribute.cs index b549cb41bb44..602e1c9843e6 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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.StackHCIVM" : @""; + //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/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Properties/Resources.resx b/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/StackHCIVM/StackHCIVM.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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMAgentVersion.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMAgentVersion.ps1 index 88a916754fa9..b1b0b7030507 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMAgentVersion.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMAgentVersion.ps1 @@ -139,6 +139,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMAgentVersion_Get'; GetViaIdentityOSType = 'Az.StackHCIVM.private\Get-AzStackHCIVMAgentVersion_GetViaIdentityOSType'; @@ -146,6 +149,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMExtensionMetadata.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMExtensionMetadata.ps1 index f0ffda8d6687..81ed99c81430 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMExtensionMetadata.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMExtensionMetadata.ps1 @@ -215,6 +215,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMExtensionMetadata_Get'; GetViaIdentityExtensionType = 'Az.StackHCIVM.private\Get-AzStackHCIVMExtensionMetadata_GetViaIdentityExtensionType'; @@ -223,8 +226,6 @@ begin { List = 'Az.StackHCIVM.private\Get-AzStackHCIVMExtensionMetadata_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -233,6 +234,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGalleryImage.ps1 index 125620f3972a..72022834b4e9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGalleryImage.ps1 @@ -112,14 +112,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMGalleryImage_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMGalleryImage_List'; List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMGalleryImage_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -128,6 +129,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGuestAgent.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGuestAgent.ps1 index 0719ae37341d..07993e93967b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGuestAgent.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMGuestAgent.ps1 @@ -96,12 +96,18 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMGuestAgent_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMGuestAgent_List'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMHybridIdentityMetadata.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMHybridIdentityMetadata.ps1 index 1f6540a8ce3b..fe299eeed73a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMHybridIdentityMetadata.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMHybridIdentityMetadata.ps1 @@ -161,6 +161,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMHybridIdentityMetadata_Get'; Get1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMHybridIdentityMetadata_Get1'; @@ -169,8 +172,6 @@ begin { List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMHybridIdentityMetadata_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 +180,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachine.ps1 index 2e67638e93da..7f557e9c7ccf 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachine.ps1 @@ -119,14 +119,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachine_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachine_List'; List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachine_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -135,6 +136,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachineExtension.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachineExtension.ps1 index 3bc751f316cd..33480fa8203c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachineExtension.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMachineExtension.ps1 @@ -158,14 +158,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachineExtension_Get'; GetViaIdentityMachine = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachineExtension_GetViaIdentityMachine'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachineExtension_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -174,6 +175,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMarketplaceGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMarketplaceGalleryImage.ps1 index d85069199fdb..a53ceb60d494 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMarketplaceGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMMarketplaceGalleryImage.ps1 @@ -112,14 +112,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMMarketplaceGalleryImage_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMMarketplaceGalleryImage_List'; List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMMarketplaceGalleryImage_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -128,6 +129,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMNetworkProfile.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMNetworkProfile.ps1 index d7ae229ebc36..a677a8b83134 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMNetworkProfile.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMNetworkProfile.ps1 @@ -110,12 +110,13 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMNetworkProfile_Get'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -124,6 +125,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMOperation.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMOperation.ps1 index a438af34fcde..70bea9f6de10 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMOperation.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.StackHCIVM.private\Get-AzStackHCIVMOperation_List'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMVirtualMachine.ps1 index b3d25920d2dd..0a2a3392d5a1 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Get-AzStackHCIVMVirtualMachine.ps1 @@ -96,12 +96,18 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMVirtualMachine_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMVirtualMachine_List'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGalleryImage.ps1 index ba539cf71eed..d670596bb2a2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGalleryImage.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a gallery image. +The operation to create a gallery image. Please note some properties can be set only during gallery image creation. .Description -The operation to create or update a gallery image. +The operation to create a gallery image. Please note some properties can be set only during gallery image creation. .Example {{ Add code here }} @@ -213,14 +213,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMGalleryImage_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMGalleryImage_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMGalleryImage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +233,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGuestAgent.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGuestAgent.ps1 index b846d7073738..9a7b7094a38b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGuestAgent.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMGuestAgent.ps1 @@ -139,6 +139,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMGuestAgent_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMGuestAgent_CreateViaJsonFilePath'; @@ -146,6 +149,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMLogicalNetwork.ps1 index 91f1c05efd3f..13e78736e099 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMLogicalNetwork.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a logical network. +The operation to create a logical network. Please note some properties can be set only during logical network creation. .Description -The operation to create or update a logical network. +The operation to create a logical network. Please note some properties can be set only during logical network creation. .Example New-AzStackHCIVMLogicalNetwork -Name "testLnet" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" -VmSwitchName "testswitch" @@ -196,14 +196,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMLogicalNetwork_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMLogicalNetwork_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMLogicalNetwork_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -215,6 +216,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachine.ps1 index fb64f16da078..f26037d70647 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachine.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a hybrid machine. +The operation to create a hybrid machine. Please note some properties can be set only during machine creation. .Description -The operation to create or update a hybrid machine. +The operation to create a hybrid machine. Please note some properties can be set only during machine creation. .Example {{ Add code here }} @@ -303,14 +303,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMMachine_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMMachine_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMMachine_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -319,6 +320,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachineExtension.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachineExtension.ps1 index 4f5ed3449ace..4b2aa78838e2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachineExtension.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMachineExtension.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -The operation to create or update the extension. +The operation to create the extension. .Description -The operation to create or update the extension. +The operation to create the extension. .Example {{ Add code here }} .Example @@ -36,7 +36,7 @@ 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. EXTENSIONPARAMETER : Describes a Machine Extension. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AutoUpgradeMinorVersion ]: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -341,6 +341,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMMachineExtension_CreateExpanded'; CreateViaIdentityMachine = 'Az.StackHCIVM.private\New-AzStackHCIVMMachineExtension_CreateViaIdentityMachine'; @@ -349,8 +352,6 @@ begin { CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMMachineExtension_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -359,6 +360,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMarketplaceGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMarketplaceGalleryImage.ps1 index 2475cacf1c3d..61146c61b3ad 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMarketplaceGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMMarketplaceGalleryImage.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a marketplace gallery image. +The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Description -The operation to create or update a marketplace gallery image. +The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Example {{ Add code here }} @@ -207,14 +207,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMMarketplaceGalleryImage_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -226,6 +227,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMNetworkInterface.ps1 index 9c73007e963a..0523cb4ea8bd 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMNetworkInterface.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a network interface. +The operation to create a network interface. Please note some properties can be set only during network interface creation. .Description -The operation to create or update a network interface. +The operation to create a network interface. Please note some properties can be set only during network interface creation. .Example New-AzStackHCIVMNetworkInterface -Name "testNic" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" -SubnetName "testLnet" @@ -183,14 +183,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMNetworkInterface_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMNetworkInterface_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMNetworkInterface_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -202,6 +203,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMStoragePath.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMStoragePath.ps1 index 0af75a6373fe..5fb112e5e63f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMStoragePath.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMStoragePath.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a storage container. +The operation to create a storage container. Please note some properties can be set only during storage container creation. .Description -The operation to create or update a storage container. +The operation to create a storage container. Please note some properties can be set only during storage container creation. .Example New-AzStackHCIVMStoragePath -Name "testStoragePath" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}"-Location "eastus" -Path "C:\ClusterStorage\Volume1\testpath" @@ -160,14 +160,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMStoragePath_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMStoragePath_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMStoragePath_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 +180,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualHardDisk.ps1 index 9c9b0914e397..484a1d453905 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualHardDisk.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a virtual hard disk. +The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Description -The operation to create or update a virtual hard disk. +The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Example New-AzStackHCIVMVirtualHardDisk -Name "testVhd" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" -SizeGb 2 @@ -204,14 +204,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualHardDisk_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualHardDisk_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -223,6 +224,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualMachine.ps1 index 645d9e411edd..8427bf359142 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/New-AzStackHCIVMVirtualMachine.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a virtual machine instance. +The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Description -The operation to create or update a virtual machine instance. +The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Example New-AzStackHCIVMVirtualMachine -Name "testVm" -OsType "Linux" -ImageName "testImage" -VmSize "Standard_K8S_v1" -AdminUsername "localadmin" -ComputerName "testVm" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" @@ -357,6 +357,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualMachine_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualMachine_CreateViaJsonFilePath'; @@ -367,6 +370,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/ProxyCmdletDefinitions.ps1 index bbb0fcacc597..80070d7d9271 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -139,6 +139,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMAgentVersion_Get'; GetViaIdentityOSType = 'Az.StackHCIVM.private\Get-AzStackHCIVMAgentVersion_GetViaIdentityOSType'; @@ -146,6 +149,9 @@ begin { } $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) @@ -376,6 +382,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMExtensionMetadata_Get'; GetViaIdentityExtensionType = 'Az.StackHCIVM.private\Get-AzStackHCIVMExtensionMetadata_GetViaIdentityExtensionType'; @@ -384,8 +393,6 @@ begin { List = 'Az.StackHCIVM.private\Get-AzStackHCIVMExtensionMetadata_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -394,6 +401,9 @@ begin { } $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) @@ -521,14 +531,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMGalleryImage_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMGalleryImage_List'; List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMGalleryImage_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -537,6 +548,9 @@ begin { } $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) @@ -648,12 +662,18 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMGuestAgent_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMGuestAgent_List'; } $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) @@ -830,6 +850,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMHybridIdentityMetadata_Get'; Get1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMHybridIdentityMetadata_Get1'; @@ -838,8 +861,6 @@ begin { List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMHybridIdentityMetadata_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -848,6 +869,9 @@ begin { } $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) @@ -1021,14 +1045,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachineExtension_Get'; GetViaIdentityMachine = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachineExtension_GetViaIdentityMachine'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachineExtension_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1037,6 +1062,9 @@ begin { } $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) @@ -1171,14 +1199,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachine_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachine_List'; List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMMachine_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1187,6 +1216,9 @@ begin { } $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) @@ -1314,14 +1346,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMMarketplaceGalleryImage_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMMarketplaceGalleryImage_List'; List1 = 'Az.StackHCIVM.private\Get-AzStackHCIVMMarketplaceGalleryImage_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.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1330,6 +1363,9 @@ begin { } $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) @@ -1455,12 +1491,13 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMNetworkProfile_Get'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1469,6 +1506,9 @@ begin { } $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) @@ -1574,11 +1614,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.StackHCIVM.private\Get-AzStackHCIVMOperation_List'; } $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) @@ -1690,12 +1736,18 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.StackHCIVM.private\Get-AzStackHCIVMVirtualMachine_Get'; List = 'Az.StackHCIVM.private\Get-AzStackHCIVMVirtualMachine_List'; } $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) @@ -1727,10 +1779,10 @@ end { <# .Synopsis -The operation to create or update a gallery image. +The operation to create a gallery image. Please note some properties can be set only during gallery image creation. .Description -The operation to create or update a gallery image. +The operation to create a gallery image. Please note some properties can be set only during gallery image creation. .Example {{ Add code here }} @@ -1924,14 +1976,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMGalleryImage_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMGalleryImage_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMGalleryImage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1943,6 +1996,9 @@ begin { } $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) @@ -2097,6 +2153,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMGuestAgent_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMGuestAgent_CreateViaJsonFilePath'; @@ -2104,6 +2163,9 @@ begin { } $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) @@ -2135,10 +2197,10 @@ end { <# .Synopsis -The operation to create or update a logical network. +The operation to create a logical network. Please note some properties can be set only during logical network creation. .Description -The operation to create or update a logical network. +The operation to create a logical network. Please note some properties can be set only during logical network creation. .Example New-AzStackHCIVMLogicalNetwork -Name "testLnet" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" -VmSwitchName "testswitch" @@ -2315,14 +2377,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMLogicalNetwork_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMLogicalNetwork_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMLogicalNetwork_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2334,6 +2397,9 @@ begin { } $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) @@ -2365,9 +2431,9 @@ end { <# .Synopsis -The operation to create or update the extension. +The operation to create the extension. .Description -The operation to create or update the extension. +The operation to create the extension. .Example {{ Add code here }} .Example @@ -2385,7 +2451,7 @@ 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. EXTENSIONPARAMETER : Describes a Machine Extension. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AutoUpgradeMinorVersion ]: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -2690,6 +2756,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMMachineExtension_CreateExpanded'; CreateViaIdentityMachine = 'Az.StackHCIVM.private\New-AzStackHCIVMMachineExtension_CreateViaIdentityMachine'; @@ -2698,8 +2767,6 @@ begin { CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMMachineExtension_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2708,6 +2775,9 @@ begin { } $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) @@ -2739,10 +2809,10 @@ end { <# .Synopsis -The operation to create or update a hybrid machine. +The operation to create a hybrid machine. Please note some properties can be set only during machine creation. .Description -The operation to create or update a hybrid machine. +The operation to create a hybrid machine. Please note some properties can be set only during machine creation. .Example {{ Add code here }} @@ -3026,14 +3096,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMMachine_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMMachine_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMMachine_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3042,6 +3113,9 @@ begin { } $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) @@ -3073,10 +3147,10 @@ end { <# .Synopsis -The operation to create or update a marketplace gallery image. +The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Description -The operation to create or update a marketplace gallery image. +The operation to create a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Example {{ Add code here }} @@ -3264,14 +3338,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMMarketplaceGalleryImage_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMMarketplaceGalleryImage_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMMarketplaceGalleryImage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3283,6 +3358,9 @@ begin { } $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) @@ -3314,10 +3392,10 @@ end { <# .Synopsis -The operation to create or update a network interface. +The operation to create a network interface. Please note some properties can be set only during network interface creation. .Description -The operation to create or update a network interface. +The operation to create a network interface. Please note some properties can be set only during network interface creation. .Example New-AzStackHCIVMNetworkInterface -Name "testNic" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" -SubnetName "testLnet" @@ -3481,14 +3559,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMNetworkInterface_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMNetworkInterface_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMNetworkInterface_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3500,6 +3579,9 @@ begin { } $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) @@ -3531,10 +3613,10 @@ end { <# .Synopsis -The operation to create or update a storage container. +The operation to create a storage container. Please note some properties can be set only during storage container creation. .Description -The operation to create or update a storage container. +The operation to create a storage container. Please note some properties can be set only during storage container creation. .Example New-AzStackHCIVMStoragePath -Name "testStoragePath" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}"-Location "eastus" -Path "C:\ClusterStorage\Volume1\testpath" @@ -3675,14 +3757,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMStoragePath_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMStoragePath_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMStoragePath_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3694,6 +3777,9 @@ begin { } $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) @@ -3725,10 +3811,10 @@ end { <# .Synopsis -The operation to create or update a virtual hard disk. +The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Description -The operation to create or update a virtual hard disk. +The operation to create a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Example New-AzStackHCIVMVirtualHardDisk -Name "testVhd" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" -SizeGb 2 @@ -3913,14 +3999,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualHardDisk_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualHardDisk_CreateViaJsonFilePath'; CreateViaJsonString = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualHardDisk_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3932,6 +4019,9 @@ begin { } $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) @@ -3963,10 +4053,10 @@ end { <# .Synopsis -The operation to create or update a virtual machine instance. +The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Description -The operation to create or update a virtual machine instance. +The operation to create a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Example New-AzStackHCIVMVirtualMachine -Name "testVm" -OsType "Linux" -ImageName "testImage" -VmSize "Standard_K8S_v1" -AdminUsername "localadmin" -ComputerName "testVm" -ResourceGroupName "test-rg" -CustomLocationId "/subscriptions/{subscriptionID}/resourcegroups/{resourceGroupName}/providers/microsoft.extendedlocation/customlocations/{customLocationName}" -Location "eastus" @@ -4304,6 +4394,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualMachine_CreateExpanded'; CreateViaJsonFilePath = 'Az.StackHCIVM.private\New-AzStackHCIVMVirtualMachine_CreateViaJsonFilePath'; @@ -4314,6 +4407,9 @@ begin { } $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) @@ -4490,13 +4586,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMGalleryImage_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMGalleryImage_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4505,6 +4602,9 @@ begin { } $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) @@ -4634,11 +4734,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMGuestAgent_Delete'; } $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) @@ -4813,13 +4919,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMLogicalNetwork_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMLogicalNetwork_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4828,6 +4935,9 @@ begin { } $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) @@ -5036,14 +5146,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachineExtension_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachineExtension_DeleteViaIdentity'; DeleteViaIdentityMachine = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachineExtension_DeleteViaIdentityMachine'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5052,6 +5163,9 @@ begin { } $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) @@ -5216,13 +5330,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachine_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachine_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5231,6 +5346,9 @@ begin { } $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) @@ -5407,13 +5525,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMarketplaceGalleryImage_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMarketplaceGalleryImage_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5422,6 +5541,9 @@ begin { } $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) @@ -5596,13 +5718,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMNetworkInterface_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMNetworkInterface_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5611,6 +5734,9 @@ begin { } $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) @@ -5786,13 +5912,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMStoragePath_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMStoragePath_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5801,6 +5928,9 @@ begin { } $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) @@ -5976,13 +6106,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMVirtualHardDisk_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMVirtualHardDisk_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5991,6 +6122,9 @@ begin { } $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) @@ -6119,11 +6253,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMVirtualMachine_Delete'; } $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) @@ -6246,11 +6386,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Restart = 'Az.StackHCIVM.private\Restart-AzStackHCIVMVirtualMachine_Restart'; } $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) @@ -6282,10 +6428,10 @@ end { <# .Synopsis -The operation to create or update a gallery image. +The operation to update a gallery image. Please note some properties can be set only during gallery image creation. .Description -The operation to create or update a gallery image. +The operation to update a gallery image. Please note some properties can be set only during gallery image creation. .Example {{ Add code here }} @@ -6486,14 +6632,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMGalleryImage_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMGalleryImage_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6502,6 +6649,9 @@ begin { } $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) @@ -6533,10 +6683,10 @@ end { <# .Synopsis -The operation to create or update a logical network. +The operation to update a logical network. Please note some properties can be set only during logical network creation. .Description -The operation to create or update a logical network. +The operation to update a logical network. Please note some properties can be set only during logical network creation. .Example {{ Add code here }} @@ -6722,14 +6872,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMLogicalNetwork_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMLogicalNetwork_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6738,6 +6889,9 @@ begin { } $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) @@ -6769,9 +6923,9 @@ end { <# .Synopsis -The operation to create or update the extension. +The operation to update the extension. .Description -The operation to create or update the extension. +The operation to update the extension. .Example {{ Add code here }} .Example @@ -7006,14 +7160,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachineExtension_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachineExtension_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachineExtension_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7022,6 +7177,9 @@ begin { } $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) @@ -7053,10 +7211,10 @@ end { <# .Synopsis -The operation to create or update a hybrid machine. +The operation to update a hybrid machine. Please note some properties can be set only during machine creation. .Description -The operation to create or update a hybrid machine. +The operation to update a hybrid machine. Please note some properties can be set only during machine creation. .Example {{ Add code here }} @@ -7340,14 +7498,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachine_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachine_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachine_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7356,6 +7515,9 @@ begin { } $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) @@ -7387,10 +7549,10 @@ end { <# .Synopsis -The operation to create or update a marketplace gallery image. +The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Description -The operation to create or update a marketplace gallery image. +The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Example {{ Add code here }} @@ -7585,14 +7747,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMMarketplaceGalleryImage_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7601,6 +7764,9 @@ begin { } $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) @@ -7632,10 +7798,10 @@ end { <# .Synopsis -The operation to create or update a network interface. +The operation to update a network interface. Please note some properties can be set only during network interface creation. .Description -The operation to create or update a network interface. +The operation to update a network interface. Please note some properties can be set only during network interface creation. .Example {{ Add code here }} @@ -7808,14 +7974,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMNetworkInterface_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMNetworkInterface_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMNetworkInterface_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7824,6 +7991,9 @@ begin { } $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) @@ -7855,10 +8025,10 @@ end { <# .Synopsis -The operation to create or update a storage container. +The operation to update a storage container. Please note some properties can be set only during storage container creation. .Description -The operation to create or update a storage container. +The operation to update a storage container. Please note some properties can be set only during storage container creation. .Example {{ Add code here }} @@ -8008,14 +8178,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMStorageContainer_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMStorageContainer_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMStorageContainer_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -8024,6 +8195,9 @@ begin { } $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) @@ -8055,10 +8229,10 @@ end { <# .Synopsis -The operation to create or update a virtual hard disk. +The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Description -The operation to create or update a virtual hard disk. +The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Example {{ Add code here }} @@ -8252,14 +8426,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualHardDisk_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualHardDisk_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -8268,6 +8443,9 @@ begin { } $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) @@ -8299,10 +8477,10 @@ end { <# .Synopsis -The operation to create or update a virtual machine instance. +The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Description -The operation to create or update a virtual machine instance. +The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Example {{ Add code here }} @@ -8647,6 +8825,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualMachineInstance_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath'; @@ -8654,6 +8835,9 @@ begin { } $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) @@ -8776,11 +8960,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Start = 'Az.StackHCIVM.private\Start-AzStackHCIVMVirtualMachine_Start'; } $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) @@ -8903,11 +9093,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Stop = 'Az.StackHCIVM.private\Stop-AzStackHCIVMVirtualMachine_Stop'; } $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) @@ -9126,6 +9322,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Upgrade = 'Az.StackHCIVM.private\Update-AzStackHCIVMExtension_Upgrade'; UpgradeExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMExtension_UpgradeExpanded'; @@ -9135,8 +9334,6 @@ begin { UpgradeViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMExtension_UpgradeViaJsonString'; } if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9145,6 +9342,9 @@ begin { } $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) @@ -9341,6 +9541,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMGalleryImage_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMGalleryImage_UpdateViaIdentityExpanded'; @@ -9348,8 +9551,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9358,6 +9559,9 @@ begin { } $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) @@ -9500,11 +9704,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMGuestAgent_UpdateExpanded'; } $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) @@ -9536,9 +9746,9 @@ end { <# .Synopsis -The operation to create or update the extension. +The operation to update the extension. .Description -The operation to create or update the extension. +The operation to update the extension. .Example {{ Add code here }} .Example @@ -9827,6 +10037,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachineExtension_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachineExtension_UpdateViaIdentityExpanded'; @@ -9836,8 +10049,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachineExtension_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9846,6 +10057,9 @@ begin { } $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) @@ -10141,6 +10355,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachine_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachine_UpdateViaIdentityExpanded'; @@ -10148,8 +10365,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachine_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -10158,6 +10373,9 @@ begin { } $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) @@ -10354,6 +10572,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMarketplaceGalleryImage_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded'; @@ -10361,8 +10582,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -10371,6 +10590,9 @@ begin { } $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) @@ -10584,6 +10806,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMVirtualMachine_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Update-AzStackHCIVMVirtualMachine_UpdateViaJsonFilePath'; @@ -10591,6 +10816,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGalleryImage.ps1 index 4caa377f7508..aca75fd035b4 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGalleryImage.ps1 @@ -161,13 +161,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMGalleryImage_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMGalleryImage_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -176,6 +177,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGuestAgent.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGuestAgent.ps1 index d7e1d1aa937e..69168311ce4d 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGuestAgent.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMGuestAgent.ps1 @@ -114,11 +114,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMGuestAgent_Delete'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMLogicalNetwork.ps1 index a0fb6927ce95..cb2c96b38e09 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMLogicalNetwork.ps1 @@ -159,13 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMLogicalNetwork_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMLogicalNetwork_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -174,6 +175,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachine.ps1 index 012b2237e52f..59f998729643 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachine.ps1 @@ -149,13 +149,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachine_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachine_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +165,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachineExtension.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachineExtension.ps1 index deddf501e052..608f24e995d2 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachineExtension.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMachineExtension.ps1 @@ -193,14 +193,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachineExtension_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachineExtension_DeleteViaIdentity'; DeleteViaIdentityMachine = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMachineExtension_DeleteViaIdentityMachine'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -209,6 +210,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMarketplaceGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMarketplaceGalleryImage.ps1 index 0a96a89916eb..e7fb1593fc1c 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMarketplaceGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMMarketplaceGalleryImage.ps1 @@ -161,13 +161,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMarketplaceGalleryImage_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMMarketplaceGalleryImage_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -176,6 +177,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMNetworkInterface.ps1 index a941b72c7ecb..ba04701432f6 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMNetworkInterface.ps1 @@ -159,13 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMNetworkInterface_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMNetworkInterface_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -174,6 +175,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMStoragePath.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMStoragePath.ps1 index d8c6d3baf7fd..3f0b366368e9 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMStoragePath.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMStoragePath.ps1 @@ -160,13 +160,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMStoragePath_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMStoragePath_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -175,6 +176,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualHardDisk.ps1 index 06d3aaeb9b5f..58f46036aa49 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualHardDisk.ps1 @@ -160,13 +160,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMVirtualHardDisk_Delete'; DeleteViaIdentity = 'Az.StackHCIVM.private\Remove-AzStackHCIVMVirtualHardDisk_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -175,6 +176,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualMachine.ps1 index 93060267b79d..f9fc43a96e15 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Remove-AzStackHCIVMVirtualMachine.ps1 @@ -113,11 +113,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Delete = 'Az.StackHCIVM.private\Remove-AzStackHCIVMVirtualMachine_Delete'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Restart-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Restart-AzStackHCIVMVirtualMachine.ps1 index d320c4e40af4..a33374368079 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Restart-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Restart-AzStackHCIVMVirtualMachine.ps1 @@ -107,11 +107,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Restart = 'Az.StackHCIVM.private\Restart-AzStackHCIVMVirtualMachine_Restart'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMGalleryImage.ps1 index 29d3e362e5bc..c805e2077ee1 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMGalleryImage.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a gallery image. +The operation to update a gallery image. Please note some properties can be set only during gallery image creation. .Description -The operation to create or update a gallery image. +The operation to update a gallery image. Please note some properties can be set only during gallery image creation. .Example {{ Add code here }} @@ -220,14 +220,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMGalleryImage_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMGalleryImage_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -236,6 +237,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMLogicalNetwork.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMLogicalNetwork.ps1 index 3cdb6bd2fc01..7406f87b83b8 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMLogicalNetwork.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMLogicalNetwork.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a logical network. +The operation to update a logical network. Please note some properties can be set only during logical network creation. .Description -The operation to create or update a logical network. +The operation to update a logical network. Please note some properties can be set only during logical network creation. .Example {{ Add code here }} @@ -205,14 +205,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMLogicalNetwork_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMLogicalNetwork_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMLogicalNetwork_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -221,6 +222,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachine.ps1 index f71725d508af..984195dbc70f 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachine.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a hybrid machine. +The operation to update a hybrid machine. Please note some properties can be set only during machine creation. .Description -The operation to create or update a hybrid machine. +The operation to update a hybrid machine. Please note some properties can be set only during machine creation. .Example {{ Add code here }} @@ -303,14 +303,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachine_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachine_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachine_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -319,6 +320,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachineExtension.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachineExtension.ps1 index 58ea88e14cba..8a2897741897 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachineExtension.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMachineExtension.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -The operation to create or update the extension. +The operation to update the extension. .Description -The operation to create or update the extension. +The operation to update the extension. .Example {{ Add code here }} .Example @@ -253,14 +253,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachineExtension_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachineExtension_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMMachineExtension_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -269,6 +270,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMarketplaceGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMarketplaceGalleryImage.ps1 index 7caa64a25221..8c3f936f233a 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMarketplaceGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMMarketplaceGalleryImage.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a marketplace gallery image. +The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Description -The operation to create or update a marketplace gallery image. +The operation to update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation. .Example {{ Add code here }} @@ -214,14 +214,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMMarketplaceGalleryImage_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 +231,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMNetworkInterface.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMNetworkInterface.ps1 index c9468acc39a8..0dcbed082655 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMNetworkInterface.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMNetworkInterface.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a network interface. +The operation to update a network interface. Please note some properties can be set only during network interface creation. .Description -The operation to create or update a network interface. +The operation to update a network interface. Please note some properties can be set only during network interface creation. .Example {{ Add code here }} @@ -192,14 +192,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMNetworkInterface_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMNetworkInterface_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMNetworkInterface_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -208,6 +209,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMStorageContainer.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMStorageContainer.ps1 index fa8fd7fb7d84..00733f73418e 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMStorageContainer.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMStorageContainer.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a storage container. +The operation to update a storage container. Please note some properties can be set only during storage container creation. .Description -The operation to create or update a storage container. +The operation to update a storage container. Please note some properties can be set only during storage container creation. .Example {{ Add code here }} @@ -169,14 +169,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMStorageContainer_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMStorageContainer_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMStorageContainer_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -185,6 +186,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualHardDisk.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualHardDisk.ps1 index a0d5f90b5b61..01aa6b970212 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualHardDisk.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualHardDisk.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a virtual hard disk. +The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Description -The operation to create or update a virtual hard disk. +The operation to update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation. .Example {{ Add code here }} @@ -213,14 +213,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualHardDisk_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualHardDisk_UpdateViaJsonFilePath'; UpdateViaJsonString = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualHardDisk_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.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 +230,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualMachineInstance.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualMachineInstance.ps1 index 1a2dbb3ca7c9..24c9162c1beb 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualMachineInstance.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Set-AzStackHCIVMVirtualMachineInstance.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -The operation to create or update a virtual machine instance. +The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Description -The operation to create or update a virtual machine instance. +The operation to update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation. .Example {{ Add code here }} @@ -364,6 +364,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualMachineInstance_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Set-AzStackHCIVMVirtualMachineInstance_UpdateViaJsonFilePath'; @@ -371,6 +374,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Start-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Start-AzStackHCIVMVirtualMachine.ps1 index 64e5bdafe3fc..d98338fac5ac 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Start-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Start-AzStackHCIVMVirtualMachine.ps1 @@ -107,11 +107,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Start = 'Az.StackHCIVM.private\Start-AzStackHCIVMVirtualMachine_Start'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Stop-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Stop-AzStackHCIVMVirtualMachine.ps1 index 5ba57777c374..35529b0a0f43 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Stop-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Stop-AzStackHCIVMVirtualMachine.ps1 @@ -107,11 +107,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Stop = 'Az.StackHCIVM.private\Stop-AzStackHCIVMVirtualMachine_Stop'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMExtension.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMExtension.ps1 index bd21c50122bf..e9d239209c65 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMExtension.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMExtension.ps1 @@ -203,6 +203,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Upgrade = 'Az.StackHCIVM.private\Update-AzStackHCIVMExtension_Upgrade'; UpgradeExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMExtension_UpgradeExpanded'; @@ -212,8 +215,6 @@ begin { UpgradeViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMExtension_UpgradeViaJsonString'; } if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -222,6 +223,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGalleryImage.ps1 index 0bc8e313de34..5e4b80a43f87 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGalleryImage.ps1 @@ -181,6 +181,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMGalleryImage_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMGalleryImage_UpdateViaIdentityExpanded'; @@ -188,8 +191,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -198,6 +199,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGuestAgent.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGuestAgent.ps1 index 0b4ce2cb2cdd..456e24d21dd1 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGuestAgent.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMGuestAgent.ps1 @@ -127,11 +127,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMGuestAgent_UpdateExpanded'; } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachine.ps1 index 5113da5e2a0c..74302e18f708 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachine.ps1 @@ -280,6 +280,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachine_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachine_UpdateViaIdentityExpanded'; @@ -287,8 +290,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachine_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -297,6 +298,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachineExtension.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachineExtension.ps1 index 02a3521dc91b..8d78b3708840 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachineExtension.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMachineExtension.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -The operation to create or update the extension. +The operation to update the extension. .Description -The operation to create or update the extension. +The operation to update the extension. .Example {{ Add code here }} .Example @@ -307,6 +307,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachineExtension_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachineExtension_UpdateViaIdentityExpanded'; @@ -316,8 +319,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMMachineExtension_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -326,6 +327,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMarketplaceGalleryImage.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMarketplaceGalleryImage.ps1 index ddad7a93bb1a..177adcab388b 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMarketplaceGalleryImage.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMMarketplaceGalleryImage.ps1 @@ -181,6 +181,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMarketplaceGalleryImage_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMMarketplaceGalleryImage_UpdateViaIdentityExpanded'; @@ -188,8 +191,6 @@ begin { UpdateViaJsonString = 'Az.StackHCIVM.private\Update-AzStackHCIVMMarketplaceGalleryImage_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -198,6 +199,9 @@ begin { } $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/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMVirtualMachine.ps1 b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMVirtualMachine.ps1 index c65405650318..f5439a448d50 100644 --- a/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMVirtualMachine.ps1 +++ b/generated/StackHCIVM/StackHCIVM.Autorest/internal/Update-AzStackHCIVMVirtualMachine.ps1 @@ -198,6 +198,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ UpdateExpanded = 'Az.StackHCIVM.private\Update-AzStackHCIVMVirtualMachine_UpdateExpanded'; UpdateViaJsonFilePath = 'Az.StackHCIVM.private\Update-AzStackHCIVMVirtualMachine_UpdateViaJsonFilePath'; @@ -205,6 +208,9 @@ begin { } $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/src/ServiceLinker/ServiceLinker.Autorest/resources/README.md b/generated/StackHCIVM/StackHCIVM.Autorest/resources/README.md similarity index 100% rename from src/ServiceLinker/ServiceLinker.Autorest/resources/README.md rename to generated/StackHCIVM/StackHCIVM.Autorest/resources/README.md diff --git a/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1 index d6bfc887b968..c7659b5257e7 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.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/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1 index 33a0611adb27..af9dd9917476 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.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/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1 index 155950da10f3..65c206f5b055 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.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/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1 index 40ace5f2b7a1..a187cc5ecdee 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.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/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyContainerGroupPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyContainerGroupPool.ps1 index 600d81702164..87b437b8b18d 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyContainerGroupPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyContainerGroupPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource .Description -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource .Example New-AzStandbyContainerGroupPool ` -Name testPool ` @@ -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/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1 index f4d6fbf4c768..a861ea6ca820 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a StandbyVirtualMachinePoolResource +Create a StandbyVirtualMachinePoolResource .Description -create a StandbyVirtualMachinePoolResource +Create a StandbyVirtualMachinePoolResource .Example New-AzStandbyVMPool ` -Name testPool ` @@ -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/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1 index 8209e7a084da..98317d244c69 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -374,8 +373,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -603,8 +601,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -821,8 +818,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -910,9 +906,9 @@ end { <# .Synopsis -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource .Description -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource .Example New-AzStandbyContainerGroupPool ` -Name testPool ` @@ -1102,8 +1098,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1190,9 +1185,9 @@ end { <# .Synopsis -create a StandbyVirtualMachinePoolResource +Create a StandbyVirtualMachinePoolResource .Description -create a StandbyVirtualMachinePoolResource +Create a StandbyVirtualMachinePoolResource .Example New-AzStandbyVMPool ` -Name testPool ` @@ -1360,8 +1355,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +1584,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1819,8 +1812,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1906,9 +1898,9 @@ end { <# .Synopsis -update a StandbyContainerGroupPoolResource +Update a StandbyContainerGroupPoolResource .Description -update a StandbyContainerGroupPoolResource +Update a StandbyContainerGroupPoolResource .Example Update-AzStandbyContainerGroupPool ` -Name testPool ` @@ -2104,8 +2096,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2193,9 +2184,9 @@ end { <# .Synopsis -update a StandbyVirtualMachinePoolResource +Update a StandbyVirtualMachinePoolResource .Description -update a StandbyVirtualMachinePoolResource +Update a StandbyVirtualMachinePoolResource .Example Update-AzStandbyVMPool ` -SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b ` @@ -2373,8 +2364,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1 index 06c483ce0746..2cc1324a2422 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.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/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1 index 3ac4c40e4bfc..e30a3233e834 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.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/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1 index 56f654389a96..50308bfe1872 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a StandbyContainerGroupPoolResource +Update a StandbyContainerGroupPoolResource .Description -update a StandbyContainerGroupPoolResource +Update a StandbyContainerGroupPoolResource .Example Update-AzStandbyContainerGroupPool ` -Name testPool ` @@ -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/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1 b/generated/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1 index 46d08b28c96c..8f2a5d017968 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1 +++ b/generated/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a StandbyVirtualMachinePoolResource +Update a StandbyVirtualMachinePoolResource .Description -update a StandbyVirtualMachinePoolResource +Update a StandbyVirtualMachinePoolResource .Example Update-AzStandbyVMPool ` -SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b ` @@ -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/StandbyPool/StandbyPool.Autorest/generated/api/Models/ErrorResponse.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ErrorResponse.cs index a9a3c631d6e9..6182cc02966e 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Operation.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Operation.cs index 06a63474b379..c9fd5ec3c7a1 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Operation.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ProxyResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ProxyResource.cs index 03a03b1d83a6..4604fd796de4 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/ProxyResource.cs @@ -27,34 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Resource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Resource.cs index 154f6b8e6a93..732d92ae4d68 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Resource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/Resource.cs @@ -34,22 +34,22 @@ public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolPrediction.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolPrediction.cs index 5e977a34bb0a..9e42991cbad6 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolPrediction.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolPrediction.cs @@ -52,7 +52,7 @@ public partial class StandbyContainerGroupPoolPrediction : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal.ForecastValue { get => (this._forecastValue = this._forecastValue ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolForecastValues()); set { {_forecastValue = value;} } } /// Internal Acessors for ForecastValueInstancesRequestedCount - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValuesInternal)ForecastValue).InstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValuesInternal)ForecastValue).InstancesRequestedCount = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValuesInternal)ForecastValue).InstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValuesInternal)ForecastValue).InstancesRequestedCount = value ?? null /* arrayOf */; } /// Creates an new instance. public StandbyContainerGroupPoolPrediction() diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs index 9b70d240011a..877b22208ac3 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs @@ -50,49 +50,49 @@ public partial class StandbyContainerGroupPoolResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ContainerGroupProperty - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ContainerGroupProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ContainerGroupProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupProperty = value ?? null /* model class */; } /// Internal Acessors for ContainerGroupPropertyContainerGroupProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile = value ?? null /* model class */; } /// Internal Acessors for ElasticityProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ElasticityProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ElasticityProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceProperties.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceProperties.cs index 90b32ea8f9fe..bd6b473221ad 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceProperties.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceProperties.cs @@ -51,7 +51,7 @@ public partial class StandbyContainerGroupPoolResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal.ContainerGroupProperty { get => (this._containerGroupProperty = this._containerGroupProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProperties()); set { {_containerGroupProperty = value;} } } /// Internal Acessors for ContainerGroupPropertyContainerGroupProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile = value ?? null /* model class */; } /// Internal Acessors for ElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourcePropertiesInternal.ElasticityProfile { get => (this._elasticityProfile = this._elasticityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolElasticityProfile()); set { {_elasticityProfile = value;} } } diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs index 3638c36e5ded..1a0b7dbe01ac 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs @@ -34,13 +34,13 @@ public partial class StandbyContainerGroupPoolResourceUpdate : public string ElasticityProfileRefillPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ElasticityProfileRefillPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ElasticityProfileRefillPolicy = value ?? null; } /// Internal Acessors for ContainerGroupProperty - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.ContainerGroupProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.ContainerGroupProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupProperty = value ?? null /* model class */; } /// Internal Acessors for ContainerGroupPropertyContainerGroupProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ContainerGroupPropertyContainerGroupProfile = value ?? null /* model class */; } /// Internal Acessors for ElasticityProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ElasticityProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal)Property).ElasticityProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolResourceUpdateProperties()); set { {_property = value;} } } diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdateProperties.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdateProperties.cs index 2cb4d7130ec9..3f3241d15f0a 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdateProperties.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdateProperties.cs @@ -51,7 +51,7 @@ public partial class StandbyContainerGroupPoolResourceUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal.ContainerGroupProperty { get => (this._containerGroupProperty = this._containerGroupProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProperties()); set { {_containerGroupProperty = value;} } } /// Internal Acessors for ContainerGroupPropertyContainerGroupProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal.ContainerGroupPropertyContainerGroupProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupPropertiesInternal)ContainerGroupProperty).ContainerGroupProfile = value ?? null /* model class */; } /// Internal Acessors for ElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdatePropertiesInternal.ElasticityProfile { get => (this._elasticityProfile = this._elasticityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolElasticityProfile()); set { {_elasticityProfile = value;} } } diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.cs index ad8b62ecab09..94e4dd8c8cda 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.cs @@ -39,67 +39,67 @@ public partial class StandbyContainerGroupPoolRuntimeViewResource : public System.Collections.Generic.List InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ForecastValueInstancesRequestedCount - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount = value ?? null /* arrayOf */; } /// Internal Acessors for InstanceCountSummary - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary = value ?? null /* arrayOf */; } /// Internal Acessors for Prediction - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPrediction Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.Prediction { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Prediction; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Prediction = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPrediction Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.Prediction { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Prediction; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Prediction = value ?? null /* model class */; } /// Internal Acessors for PredictionForecastInfo - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo = value ?? null; } /// Internal Acessors for PredictionForecastStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for PredictionForecastValue - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatus Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatus Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).Status = value ?? null /* model class */; } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusCode = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs index 56004c2d553c..7eeb5705b39d 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs @@ -31,7 +31,7 @@ public partial class StandbyContainerGroupPoolRuntimeViewResourceProperties : public System.Collections.Generic.List InstanceCountSummary { get => this._instanceCountSummary; } /// Internal Acessors for ForecastValueInstancesRequestedCount - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount = value ?? null /* arrayOf */; } /// Internal Acessors for InstanceCountSummary System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.InstanceCountSummary { get => this._instanceCountSummary; set { {_instanceCountSummary = value;} } } @@ -40,13 +40,13 @@ public partial class StandbyContainerGroupPoolRuntimeViewResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPrediction Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.Prediction { get => (this._prediction = this._prediction ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolPrediction()); set { {_prediction = value;} } } /// Internal Acessors for PredictionForecastInfo - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastInfo = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastInfo = value ?? null; } /// Internal Acessors for PredictionForecastStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for PredictionForecastValue - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValue = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPredictionInternal)Prediction).ForecastValue = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } @@ -55,10 +55,10 @@ public partial class StandbyContainerGroupPoolRuntimeViewResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatus Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolPrediction _prediction; diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolPrediction.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolPrediction.cs index 3fbcac0541ba..7c6bcad00b7a 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolPrediction.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolPrediction.cs @@ -52,7 +52,7 @@ public partial class StandbyVirtualMachinePoolPrediction : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal.ForecastValue { get => (this._forecastValue = this._forecastValue ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolForecastValues()); set { {_forecastValue = value;} } } /// Internal Acessors for ForecastValueInstancesRequestedCount - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValuesInternal)ForecastValue).InstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValuesInternal)ForecastValue).InstancesRequestedCount = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValuesInternal)ForecastValue).InstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValuesInternal)ForecastValue).InstancesRequestedCount = value ?? null /* arrayOf */; } /// Creates an new instance. public StandbyVirtualMachinePoolPrediction() diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs index e78d262529d5..b453d67a37d1 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs @@ -49,43 +49,43 @@ public partial class StandbyVirtualMachinePoolResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ElasticityProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs index 1da5ab7da6cf..44da757ade25 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs @@ -33,7 +33,7 @@ public partial class StandbyVirtualMachinePoolResourceUpdate : public long? ElasticityProfileMinReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfileMinReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfileMinReadyCapacity = value ?? default(long); } /// Internal Acessors for ElasticityProfile - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolResourceUpdateProperties()); set { {_property = value;} } } diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs index ffe160bdde99..ccd53d622047 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs @@ -41,67 +41,67 @@ public partial class StandbyVirtualMachinePoolRuntimeViewResource : public System.Collections.Generic.List InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ForecastValueInstancesRequestedCount - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ForecastValueInstancesRequestedCount = value ?? null /* arrayOf */; } /// Internal Acessors for InstanceCountSummary - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary = value ?? null /* arrayOf */; } /// Internal Acessors for Prediction - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPrediction Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.Prediction { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Prediction; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Prediction = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPrediction Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.Prediction { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Prediction; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Prediction = value ?? null /* model class */; } /// Internal Acessors for PredictionForecastInfo - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastInfo = value ?? null; } /// Internal Acessors for PredictionForecastStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for PredictionForecastValue - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).PredictionForecastValue = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatus Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatus Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).Status = value ?? null /* model class */; } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusCode = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).StatusMessage = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.cs index c0548d32f248..028cc7918015 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.cs @@ -33,7 +33,7 @@ public partial class StandbyVirtualMachinePoolRuntimeViewResourceProperties : public System.Collections.Generic.List InstanceCountSummary { get => this._instanceCountSummary; } /// Internal Acessors for ForecastValueInstancesRequestedCount - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.ForecastValueInstancesRequestedCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValueInstancesRequestedCount = value ?? null /* arrayOf */; } /// Internal Acessors for InstanceCountSummary System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.InstanceCountSummary { get => this._instanceCountSummary; set { {_instanceCountSummary = value;} } } @@ -42,13 +42,13 @@ public partial class StandbyVirtualMachinePoolRuntimeViewResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPrediction Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.Prediction { get => (this._prediction = this._prediction ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolPrediction()); set { {_prediction = value;} } } /// Internal Acessors for PredictionForecastInfo - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastInfo = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.PredictionForecastInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastInfo = value ?? null; } /// Internal Acessors for PredictionForecastStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.PredictionForecastStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for PredictionForecastValue - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValue = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolForecastValues Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.PredictionForecastValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPredictionInternal)Prediction).ForecastValue = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } @@ -57,10 +57,10 @@ public partial class StandbyVirtualMachinePoolRuntimeViewResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatus Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolStatusInternal)Status).Message = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolPrediction _prediction; diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs index e5b3c7958e0f..90b64bb6fb68 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs @@ -27,40 +27,40 @@ public partial class StandbyVirtualMachineResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachineResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/TrackedResource.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/TrackedResource.cs index 7eb7530c6696..a5265ae9d609 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/StandbyPool/StandbyPool.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.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)] diff --git a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateExpanded.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateExpanded.cs index 85801db75795..fd2adf5d24a6 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateExpanded.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzStandbyContainerGroupPool_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; - /// A StandbyContainerGroupPoolResource. private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolResource(); - /// - /// 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -342,11 +333,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.NewAzStandbyContai /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -662,24 +648,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResource 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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonFilePath.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonFilePath.cs index 09007ea417bb..032281f226f1 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonFilePath.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzStandbyContainerGroupPool_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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.NewAzStandbyContai /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyContainerGroupPoolResource 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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonString.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonString.cs index aafe7fa0a87c..9561114ff813 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonString.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyContainerGroupPool_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzStandbyContainerGroupPool_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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.NewAzStandbyContai /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyContainerGroupPoolResource 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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateExpanded.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateExpanded.cs index d7ab0830b2bf..9c8a339b16cb 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateExpanded.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzStandbyVMPool_CreateExpanded : 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 StandbyVirtualMachinePoolResource. private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolResource(); - /// - /// 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -325,11 +316,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.NewAzStandbyVMPool /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolResource 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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonFilePath.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonFilePath.cs index 37610ae94b85..e2e434e6fa23 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonFilePath.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzStandbyVMPool_CreateViaJsonFilePath : 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.NewAzStandbyVMPool /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolResource 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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonString.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonString.cs index 75e43d9a5fa2..f602a990d136 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonString.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/NewAzStandbyVMPool_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzStandbyVMPool_CreateViaJsonString : 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.NewAzStandbyVMPool /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolResource 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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_Delete.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_Delete.cs index 62aac83cbd1c..63a39cd68164 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_Delete.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzStandbyContainerGroupPool_Delete : 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.RemoveAzStandbyCon /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_DeleteViaIdentity.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_DeleteViaIdentity.cs index 2624ea630d62..3014379f8c0e 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_DeleteViaIdentity.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyContainerGroupPool_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzStandbyContainerGroupPool_DeleteViaIdentity : 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.RemoveAzStandbyCon /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_Delete.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_Delete.cs index 08baa2dadfec..0082e439f617 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_Delete.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzStandbyVMPool_Delete : global::System.Management.Au /// 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.RemoveAzStandbyVMP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_DeleteViaIdentity.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_DeleteViaIdentity.cs index 8369e2c4b37f..36bf2615871a 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_DeleteViaIdentity.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/cmdlets/RemoveAzStandbyVMPool_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzStandbyVMPool_DeleteViaIdentity : 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.StandbyPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Cmdlets.RemoveAzStandbyVMP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index cb7fd8cf2ffc..199690ea81c3 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/StandbyPool/StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 263c03e94d4a..34d07afd1d68 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/StandbyPool/StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 9eed193d860f..d24883b6d54d 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/StandbyPool/StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/runtime/Context.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/Context.cs index 9140ce625c9e..c933fb2297ea 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/Context.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/runtime/MessageAttribute.cs b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/MessageAttribute.cs index 9e032a1765c0..fd09df125b6d 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool" : @""; + //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/StandbyPool/StandbyPool.Autorest/generated/runtime/Properties/Resources.resx b/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/StandbyPool/StandbyPool.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/StandbyPool/StandbyPool.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/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1 index 49fa1d98a5ee..a0bee85fa5b7 100644 --- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.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/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1 index a1a6c940f16b..a6c8e608e2cb 100644 --- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.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/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1 index 0aed2b455ba1..68eca7aa03d9 100644 --- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.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/Storage/Storage.Autorest/exports/Get-AzStorageSku.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageSku.ps1 index 91b6290b2ebd..4d858ce31482 100644 --- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageSku.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageSku.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1 index 95cdb3182920..e2b8a8adb2ea 100644 --- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.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/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1 index b659c2438b15..8c554a400bdf 100644 --- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.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/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1 b/generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1 index 92c5a51333c7..1b2d7dfb542f 100644 --- a/generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.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/Storage/Storage.Autorest/exports/New-AzStorageTaskAssignment.ps1 b/generated/Storage/Storage.Autorest/exports/New-AzStorageTaskAssignment.ps1 index 0785e21f53b0..269017f27c3d 100644 --- a/generated/Storage/Storage.Autorest/exports/New-AzStorageTaskAssignment.ps1 +++ b/generated/Storage/Storage.Autorest/exports/New-AzStorageTaskAssignment.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/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 index 2b747291274e..8e7fa91c2681 100644 --- a/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -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) { @@ -636,8 +634,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -810,8 +807,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -1351,8 +1346,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1624,8 +1618,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1923,8 +1916,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2195,8 +2187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2541,8 +2532,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2840,8 +2830,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Storage/Storage.Autorest/exports/Remove-AzStorageTaskAssignment.ps1 b/generated/Storage/Storage.Autorest/exports/Remove-AzStorageTaskAssignment.ps1 index f2258c6a5965..512b81f0e898 100644 --- a/generated/Storage/Storage.Autorest/exports/Remove-AzStorageTaskAssignment.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Remove-AzStorageTaskAssignment.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/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 b/generated/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 index c9e2e6994701..cc61f5dcb091 100644 --- a/generated/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.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/Storage/Storage.Autorest/exports/Update-AzStorageTaskAssignment.ps1 b/generated/Storage/Storage.Autorest/exports/Update-AzStorageTaskAssignment.ps1 index fc3d2f73abdd..f9dc2c34b8a4 100644 --- a/generated/Storage/Storage.Autorest/exports/Update-AzStorageTaskAssignment.ps1 +++ b/generated/Storage/Storage.Autorest/exports/Update-AzStorageTaskAssignment.ps1 @@ -274,8 +274,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Storage/Storage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Storage/Storage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 012af7d22ea3..e9c765d8a382 100644 --- a/generated/Storage/Storage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Storage/Storage.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/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTask.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTask.ps1 index 220474e0c608..9632d1169591 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTask.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTask.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/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTaskAssignment.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTaskAssignment.ps1 index 3f8aa25017b6..3486a12567f1 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTaskAssignment.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTaskAssignment.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/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTasksReport.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTasksReport.ps1 index a871a6fa4506..493eff3ed1a9 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTasksReport.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTasksReport.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/StorageAction/StorageAction.Autorest/exports/Invoke-AzStorageActionTaskPreviewAction.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/Invoke-AzStorageActionTaskPreviewAction.ps1 index 78669ab6dc4f..5aa90d0853f7 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/Invoke-AzStorageActionTaskPreviewAction.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/Invoke-AzStorageActionTaskPreviewAction.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/StorageAction/StorageAction.Autorest/exports/New-AzStorageActionTask.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/New-AzStorageActionTask.ps1 index 9db8065404e4..3acaa4273b9c 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/New-AzStorageActionTask.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/New-AzStorageActionTask.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/StorageAction/StorageAction.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/ProxyCmdletDefinitions.ps1 index 8d9ca399bdd8..b7e924982542 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -319,8 +318,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -529,8 +527,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -822,8 +819,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1127,8 +1123,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1352,8 +1347,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1648,8 +1642,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageAction/StorageAction.Autorest/exports/Remove-AzStorageActionTask.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/Remove-AzStorageActionTask.ps1 index 8724b1127b5f..165da6fa8578 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/Remove-AzStorageActionTask.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/Remove-AzStorageActionTask.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageAction/StorageAction.Autorest/exports/Update-AzStorageActionTask.ps1 b/generated/StorageAction/StorageAction.Autorest/exports/Update-AzStorageActionTask.ps1 index 887a8de5af38..b7e16d25c18c 100644 --- a/generated/StorageAction/StorageAction.Autorest/exports/Update-AzStorageActionTask.ps1 +++ b/generated/StorageAction/StorageAction.Autorest/exports/Update-AzStorageActionTask.ps1 @@ -225,8 +225,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateExpanded.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateExpanded.cs index 082f5545c2af..7904f5d7d32f 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateExpanded.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateExpanded.cs @@ -45,18 +45,9 @@ public partial class NewAzStorageActionTask_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; - /// Represents Storage Task. private Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTask(); - /// - /// 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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -352,11 +343,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.NewAzStorageActi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -702,24 +688,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask 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/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonFilePath.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonFilePath.cs index bc3ffc8f24c9..f37b17968843 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonFilePath.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonFilePath.cs @@ -46,17 +46,8 @@ public partial class NewAzStorageActionTask_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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -271,11 +262,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.NewAzStorageActi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,24 +577,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask 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/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonString.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonString.cs index 6f48cfa20f96..9ce001846414 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonString.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/NewAzStorageActionTask_CreateViaJsonString.cs @@ -46,15 +46,6 @@ public partial class NewAzStorageActionTask_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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.NewAzStorageActi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.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.StorageAction.Models.IStorageTask 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/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_Delete.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_Delete.cs index a69c7df7908a..e9f246bf4c0b 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_Delete.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzStorageActionTask_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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.RemoveAzStorageA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,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/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_DeleteViaIdentity.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_DeleteViaIdentity.cs index c5a213645c89..2f6a4b830ad1 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_DeleteViaIdentity.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/RemoveAzStorageActionTask_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzStorageActionTask_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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.RemoveAzStorageA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.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/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateExpanded.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateExpanded.cs index 952b9b64f6d3..ff777d7ac7e3 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateExpanded.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateExpanded.cs @@ -45,18 +45,9 @@ public partial class UpdateAzStorageActionTask_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; - /// Represents Storage Task. private Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTask(); - /// - /// 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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -341,11 +332,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.UpdateAzStorageA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -730,24 +716,7 @@ private void Update_parametersBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask 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/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateViaIdentityExpanded.cs b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateViaIdentityExpanded.cs index 5644692f09d7..b4f5c6323ae0 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateViaIdentityExpanded.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/cmdlets/UpdateAzStorageActionTask_UpdateViaIdentityExpanded.cs @@ -45,18 +45,9 @@ public partial class UpdateAzStorageActionTask_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; - /// Represents Storage Task. private Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTask(); - /// - /// 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.StorageAction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ParameterCategory.Runtime)] @@ -295,11 +286,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Cmdlets.UpdateAzStorageA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -707,24 +693,7 @@ private void Update_parametersBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask 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/StorageAction/StorageAction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/StorageAction/StorageAction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 279273f45fe5..ec08cda6ce57 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/StorageAction/StorageAction.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/StorageAction/StorageAction.Autorest/generated/runtime/Context.cs b/generated/StorageAction/StorageAction.Autorest/generated/runtime/Context.cs index 67eef95cd16b..ddf01bd60492 100644 --- a/generated/StorageAction/StorageAction.Autorest/generated/runtime/Context.cs +++ b/generated/StorageAction/StorageAction.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageAction.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/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1 index 5dd6da6c75ae..440569fc3061 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.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/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystemSubnetRequiredSize.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystemSubnetRequiredSize.ps1 index dfc2c9db1be0..78eb802439f4 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystemSubnetRequiredSize.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystemSubnetRequiredSize.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/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1 index e2ef63a79f6e..091792181ed1 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.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/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1 index 47a8d886f330..b5b19e8f4447 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.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/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1 index d19c2c3b5cd2..b42d471284ae 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.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/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1 index 7416ee1a61d4..e7d2076d51a6 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.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/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1 index c1e8b89957b8..09db8c7db787 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.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/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1 index 998146376934..d4025cfca5c8 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.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/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1 index d5cec3b2d725..7e3a4d877f0c 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1 @@ -267,8 +267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1 index 27d0e1d56bd5..8fb6b5bd7555 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1 @@ -257,8 +257,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3b1c854c1a9c..188dba71b4d2 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StorageCache/StorageCache.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) { @@ -326,8 +325,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -563,8 +561,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -800,8 +797,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1037,8 +1033,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1280,8 +1275,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1682,8 +1676,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1988,8 +1981,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2329,8 +2321,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2660,8 +2651,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2891,8 +2881,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3141,8 +3130,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3392,8 +3380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +3630,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3857,8 +3843,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4071,8 +4056,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4379,8 +4363,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4666,8 +4649,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4954,8 +4936,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5241,8 +5222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAmlFileSystem.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAmlFileSystem.ps1 index babb6094f38a..f6bccf162cfb 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAmlFileSystem.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAmlFileSystem.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/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoExportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoExportJob.ps1 index aead6c166599..ec319db57522 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoExportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoExportJob.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/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoImportJob.ps1 index 377f2d03dc8b..08f8776d18d2 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoImportJob.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/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheImportJob.ps1 index 9e504efb7b84..cf50dd35385f 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheImportJob.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/StorageCache/StorageCache.Autorest/exports/Stop-AzStorageCacheAmlFilesystemArchive.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Stop-AzStorageCacheAmlFilesystemArchive.ps1 index f7a0c9b0dbd1..3359e1ee012a 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Stop-AzStorageCacheAmlFilesystemArchive.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Stop-AzStorageCacheAmlFilesystemArchive.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/StorageCache/StorageCache.Autorest/exports/Test-AzStorageCacheAmlFileSystemSubnet.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Test-AzStorageCacheAmlFileSystemSubnet.ps1 index 77398312cda1..081014faef52 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Test-AzStorageCacheAmlFileSystemSubnet.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Test-AzStorageCacheAmlFileSystemSubnet.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/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAmlFileSystem.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAmlFileSystem.ps1 index 544dae755c0e..0e6934283c43 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAmlFileSystem.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAmlFileSystem.ps1 @@ -236,8 +236,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoExportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoExportJob.ps1 index 482a693cdcf6..44c4c393f964 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoExportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoExportJob.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/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoImportJob.ps1 index a6404036a104..45064d5cf8eb 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoImportJob.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/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheImportJob.ps1 index fbcc93c6a4a0..90a2ae5ce6b7 100644 --- a/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheImportJob.ps1 +++ b/generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheImportJob.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/StorageCache/StorageCache.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/StorageCache/StorageCache.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index e73ffeb8530b..d4fe4c57f60e 100644 --- a/generated/StorageCache/StorageCache.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/StorageCache/StorageCache.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/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 index 6533842d3be2..04f64361ea7c 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.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/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 index 0b637c33e187..6ff26e90dd6f 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.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/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 index 60200f99cdaa..34cf3e8bafdb 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.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/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 index 6cf548f02fff..b7d82316b84f 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.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/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 index 8801ddb7973d..ac1dc5158025 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.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/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 index a313cbc16c7f..308f948d1e04 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 index 0d6c0161bd52..daad70146861 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.ps1 index 8fe4062c431b..276dfa79e339 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 index baa67d6d44d3..7619f66a931a 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 index a7c51312bcef..0dfa17a340ad 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 index a931a917a625..c53ee830378f 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 @@ -255,8 +255,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.ps1 index 7eb9218558a0..345d5b340476 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 index 35f50f97bc7f..20763c421da5 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 index a6edcb744200..4ee68cfe8560 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.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/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 index 7f72c5a62852..0fd1ab166706 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.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/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 index c35eaab855f2..d95980c6220d 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -405,8 +404,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -670,8 +668,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -963,8 +960,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1204,8 +1200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1421,8 +1416,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1749,8 +1743,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1991,8 +1984,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2209,8 +2201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -2736,8 +2726,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2988,8 +2977,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3251,8 +3239,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3509,8 +3496,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3789,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) { @@ -4101,8 +4086,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4367,8 +4351,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4613,8 +4596,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +4809,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5039,8 +5020,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5250,8 +5230,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5461,8 +5440,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5679,8 +5657,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5904,8 +5881,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6288,8 +6264,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6525,8 +6500,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6747,8 +6721,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6972,8 +6945,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -7416,8 +7387,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7638,8 +7608,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7876,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) { diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMover.ps1 index 08272ddc5d44..f60f96e24f55 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMover.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/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverEndpoint.ps1 index 03ef2f28fd3f..c85526ab07bb 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverEndpoint.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/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverJobDefinition.ps1 index 2f9c7e9fbfef..47181842ecc9 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverJobDefinition.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/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverProject.ps1 index bc3ea6e76cb2..bb0567995567 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Remove-AzStorageMoverProject.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/StorageMover/StorageMover.Autorest/exports/Start-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Start-AzStorageMoverJobDefinition.ps1 index ef86aad0f17b..d7a9eb3a7a5c 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Start-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Start-AzStorageMoverJobDefinition.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/StorageMover/StorageMover.Autorest/exports/Stop-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Stop-AzStorageMoverJobDefinition.ps1 index 08a078134666..678f90f42e15 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Stop-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Stop-AzStorageMoverJobDefinition.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/StorageMover/StorageMover.Autorest/exports/Unregister-AzStorageMoverAgent.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Unregister-AzStorageMoverAgent.ps1 index 61e8602befcb..714e30b4a315 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Unregister-AzStorageMoverAgent.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Unregister-AzStorageMoverAgent.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 index 2a00943239bd..01fea9727470 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 index f1ba3c3923a2..e1c2e0836f2c 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.ps1 index 63697ef579d8..a2240c964690 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 index c0fe4ea5bde7..ade8cc0ceed0 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 index 8f419ef2b297..facbd96c37cf 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 index 10cbd2419eaf..847c0869d9ef 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 @@ -238,8 +238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.ps1 index 7f038bbb7266..96c440930ba7 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 index a8e009a37deb..765207facc4a 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 index 6227e29563b1..597f388fea1f 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.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/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 index 5aa90d60a5a0..cce6ab7ed8f2 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.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/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 472d25f1232d..dcd7f28fdd59 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/StorageMover/StorageMover.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsCluster.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsCluster.ps1 index f4657b2393ef..fd522ba68279 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsCluster.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsCluster.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsClusterStreamingJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsClusterStreamingJob.ps1 index 1e371a3acc6a..5d9a6a653630 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsClusterStreamingJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsClusterStreamingJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsDefaultFunctionDefinition.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsDefaultFunctionDefinition.ps1 index 765cccb7f21e..e0f725bae2d3 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsDefaultFunctionDefinition.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsDefaultFunctionDefinition.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsFunction.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsFunction.ps1 index 0d17d1eb5591..a82c91bd1866 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsFunction.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsFunction.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsInput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsInput.ps1 index 96fe47ad99be..4e7d8736d238 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsInput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsInput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsJob.ps1 index 200e48561c86..d73ab1d0dba1 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsOutput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsOutput.ps1 index 2e72c3cb3a18..208f113a33ac 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsOutput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsOutput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsQuota.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsQuota.ps1 index 7643bf042d45..874d511c4095 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsQuota.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsQuota.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsTransformation.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsTransformation.ps1 index 6eeaf05b4399..da49f1198e9b 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsTransformation.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Get-AzStreamAnalyticsTransformation.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/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsCluster.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsCluster.ps1 index 95aa81186134..c3cbc03719f0 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsCluster.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsCluster.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/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsFunction.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsFunction.ps1 index 439360310a4e..cb02a823d05f 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsFunction.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsFunction.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/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsInput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsInput.ps1 index 206fb4a10371..4568f6ff8d79 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsInput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsInput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsJob.ps1 index 2d45b8218c53..f02c8479e1ba 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsOutput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsOutput.ps1 index 28d5c24f9e9e..ca1b36c3f02a 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsOutput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsOutput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsTransformation.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsTransformation.ps1 index c938bc7973f5..547c2f83f470 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsTransformation.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/New-AzStreamAnalyticsTransformation.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/StreamAnalytics/StreamAnalytics.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/ProxyCmdletDefinitions.ps1 index 20fd50d87361..2d333bc47913 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -330,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) { @@ -582,8 +580,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -834,8 +831,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1061,8 +1057,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1313,8 +1308,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1493,8 +1487,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1728,8 +1721,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1982,8 +1974,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2247,8 +2238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2480,8 +2470,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2724,8 +2713,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2969,8 +2957,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3200,8 +3187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3444,8 +3430,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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,8 +3696,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3945,8 +3929,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4225,8 +4208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4513,8 +4495,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4732,8 +4713,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4949,8 +4929,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5165,8 +5144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5448,8 +5426,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5662,8 +5639,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5863,8 +5839,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6062,8 +6037,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6261,8 +6235,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6496,8 +6469,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +6705,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7019,8 +6990,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7256,8 +7226,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsCluster.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsCluster.ps1 index b82e5a3c1acc..b0e3dd401548 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsCluster.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsCluster.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsFunction.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsFunction.ps1 index 779f2142d3f3..2cfcd216a72a 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsFunction.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsFunction.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsInput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsInput.ps1 index fdee73bd22c0..ecdeb1ceef5c 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsInput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsInput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsJob.ps1 index 108277a4f215..2923ce6b97f3 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsOutput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsOutput.ps1 index 194602a17d7f..c45bb4605938 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsOutput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Remove-AzStreamAnalyticsOutput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Start-AzStreamAnalyticsJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Start-AzStreamAnalyticsJob.ps1 index cf77b2dad952..5f4805dcbc82 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Start-AzStreamAnalyticsJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Start-AzStreamAnalyticsJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Stop-AzStreamAnalyticsJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Stop-AzStreamAnalyticsJob.ps1 index 5898bef0e204..0713bd14e498 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Stop-AzStreamAnalyticsJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Stop-AzStreamAnalyticsJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsFunction.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsFunction.ps1 index 002bb430d566..1ebb0a802536 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsFunction.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsFunction.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsInput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsInput.ps1 index a0c76776d163..c65f7694cdeb 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsInput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsInput.ps1 @@ -129,8 +129,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsOutput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsOutput.ps1 index d34a3473d6b2..3a58f273bc97 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsOutput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Test-AzStreamAnalyticsOutput.ps1 @@ -129,8 +129,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsCluster.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsCluster.ps1 index e25678b04b15..1a677fd56a25 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsCluster.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsCluster.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsFunction.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsFunction.ps1 index 82ad18c4ceac..c3d5e56681fe 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsFunction.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsFunction.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsInput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsInput.ps1 index 85a0d1e27c97..86423c28d322 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsInput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsInput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsJob.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsJob.ps1 index 12a3954070da..bb45326d538e 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsJob.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsJob.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsOutput.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsOutput.ps1 index 23d719e6cbcc..df5e799f4ba4 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsOutput.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsOutput.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/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsTransformation.ps1 b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsTransformation.ps1 index d202234072dd..f2b1db246288 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsTransformation.ps1 +++ b/generated/StreamAnalytics/StreamAnalytics.Autorest/exports/Update-AzStreamAnalyticsTransformation.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/StreamAnalytics/StreamAnalytics.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/StreamAnalytics/StreamAnalytics.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index e38861d8e42b..f166ca9afbaa 100644 --- a/generated/StreamAnalytics/StreamAnalytics.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/StreamAnalytics/StreamAnalytics.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/Subscription/Subscription.Autorest/exports/Disable-AzSubscription.ps1 b/generated/Subscription/Subscription.Autorest/exports/Disable-AzSubscription.ps1 index 527c20e1ea17..487d15e5a727 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Disable-AzSubscription.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Disable-AzSubscription.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/Subscription/Subscription.Autorest/exports/Enable-AzSubscription.ps1 b/generated/Subscription/Subscription.Autorest/exports/Enable-AzSubscription.ps1 index e7e3e863fea0..2243e2a96b99 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Enable-AzSubscription.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Enable-AzSubscription.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/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAcceptOwnershipStatus.ps1 b/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAcceptOwnershipStatus.ps1 index 1a4cf3148a3e..fb7109036770 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAcceptOwnershipStatus.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAcceptOwnershipStatus.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/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAlias.ps1 b/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAlias.ps1 index e1a234ac3d7b..f0c48c0b7a84 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAlias.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionAlias.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/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionPolicy.ps1 b/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionPolicy.ps1 index bbd610cbd95b..00ca02583b0d 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionPolicy.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Get-AzSubscriptionPolicy.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/Subscription/Subscription.Autorest/exports/Invoke-AzSubscriptionAcceptOwnership.ps1 b/generated/Subscription/Subscription.Autorest/exports/Invoke-AzSubscriptionAcceptOwnership.ps1 index 2b92adc0145d..acf3b43cd366 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Invoke-AzSubscriptionAcceptOwnership.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Invoke-AzSubscriptionAcceptOwnership.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/Subscription/Subscription.Autorest/exports/New-AzSubscriptionAlias.ps1 b/generated/Subscription/Subscription.Autorest/exports/New-AzSubscriptionAlias.ps1 index 81ad68ca607e..bdcb8841916c 100644 --- a/generated/Subscription/Subscription.Autorest/exports/New-AzSubscriptionAlias.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/New-AzSubscriptionAlias.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/Subscription/Subscription.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Subscription/Subscription.Autorest/exports/ProxyCmdletDefinitions.ps1 index cf4dae849b86..ad82eba21049 100644 --- a/generated/Subscription/Subscription.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -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) { @@ -489,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) { @@ -647,8 +644,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -883,8 +879,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1074,8 +1069,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1257,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) { @@ -1493,8 +1486,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1684,8 +1676,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Subscription/Subscription.Autorest/exports/Remove-AzSubscriptionAlias.ps1 b/generated/Subscription/Subscription.Autorest/exports/Remove-AzSubscriptionAlias.ps1 index 61feedfe0777..81b43b43e59e 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Remove-AzSubscriptionAlias.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Remove-AzSubscriptionAlias.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/Subscription/Subscription.Autorest/exports/Rename-AzSubscription.ps1 b/generated/Subscription/Subscription.Autorest/exports/Rename-AzSubscription.ps1 index 3bbd5eb92623..73865fef2f97 100644 --- a/generated/Subscription/Subscription.Autorest/exports/Rename-AzSubscription.ps1 +++ b/generated/Subscription/Subscription.Autorest/exports/Rename-AzSubscription.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/Subscription/Subscription.Autorest/generated/api/Models/BillingAccountPoliciesResponse.cs b/generated/Subscription/Subscription.Autorest/generated/api/Models/BillingAccountPoliciesResponse.cs index 22f3bd457189..4d9053f50844 100644 --- a/generated/Subscription/Subscription.Autorest/generated/api/Models/BillingAccountPoliciesResponse.cs +++ b/generated/Subscription/Subscription.Autorest/generated/api/Models/BillingAccountPoliciesResponse.cs @@ -37,22 +37,22 @@ public partial class BillingAccountPoliciesResponse : Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IBillingAccountPoliciesResponseInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Subscription/Subscription.Autorest/generated/api/Models/GetTenantPolicyResponse.cs b/generated/Subscription/Subscription.Autorest/generated/api/Models/GetTenantPolicyResponse.cs index 8b58f579c9c6..4d67abbeabde 100644 --- a/generated/Subscription/Subscription.Autorest/generated/api/Models/GetTenantPolicyResponse.cs +++ b/generated/Subscription/Subscription.Autorest/generated/api/Models/GetTenantPolicyResponse.cs @@ -45,7 +45,7 @@ public partial class GetTenantPolicyResponse : string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ITenantPolicyInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ITenantPolicyInternal)Property).PolicyId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ITenantPolicyInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ITenantPolicyInternal)Property).PolicyId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ITenantPolicy Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.TenantPolicy()); set { {_property = value;} } } @@ -54,22 +54,22 @@ public partial class GetTenantPolicyResponse : Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IGetTenantPolicyResponseInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Subscription/Subscription.Autorest/generated/api/Models/PutAliasRequest.cs b/generated/Subscription/Subscription.Autorest/generated/api/Models/PutAliasRequest.cs index b2a09b394512..b836c465d381 100644 --- a/generated/Subscription/Subscription.Autorest/generated/api/Models/PutAliasRequest.cs +++ b/generated/Subscription/Subscription.Autorest/generated/api/Models/PutAliasRequest.cs @@ -43,7 +43,7 @@ public partial class PutAliasRequest : public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestPropertiesInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for AdditionalProperty - Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestAdditionalProperties Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestInternal.AdditionalProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestPropertiesInternal)Property).AdditionalProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestPropertiesInternal)Property).AdditionalProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestAdditionalProperties Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestInternal.AdditionalProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestPropertiesInternal)Property).AdditionalProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestPropertiesInternal)Property).AdditionalProperty = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.IPutAliasRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.PutAliasRequestProperties()); set { {_property = value;} } } diff --git a/generated/Subscription/Subscription.Autorest/generated/api/Models/SubscriptionAliasResponse.cs b/generated/Subscription/Subscription.Autorest/generated/api/Models/SubscriptionAliasResponse.cs index d5d143bb68f6..c3f530f37a54 100644 --- a/generated/Subscription/Subscription.Autorest/generated/api/Models/SubscriptionAliasResponse.cs +++ b/generated/Subscription/Subscription.Autorest/generated/api/Models/SubscriptionAliasResponse.cs @@ -65,10 +65,10 @@ public partial class SubscriptionAliasResponse : public string ManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).ManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).ManagementGroupId = value ?? null; } /// Internal Acessors for AcceptOwnershipState - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.AcceptOwnershipState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.AcceptOwnershipState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipState = value ?? null; } /// Internal Acessors for AcceptOwnershipUrl - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.AcceptOwnershipUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.AcceptOwnershipUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).AcceptOwnershipUrl = value ?? null; } /// Internal Acessors for AliasName string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.AliasName { get => this._aliasName; set { {_aliasName = value;} } } @@ -80,28 +80,28 @@ public partial class SubscriptionAliasResponse : Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseProperties Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.SubscriptionAliasResponseProperties()); set { {_property = value;} } } /// Internal Acessors for SubscriptionId - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).SubscriptionId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponsePropertiesInternal)Property).SubscriptionId = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponseInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_Get.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_Get.cs index b011191284f2..a430be1eb302 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_Get.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_Get.cs @@ -421,7 +421,7 @@ protected override void StopProcessing() return ; } // onAccepted - response for 202 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_GetViaIdentity.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_GetViaIdentity.cs index baaea337c430..4de8e426c51a 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_GetViaIdentity.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/GetAzSubscriptionOperation_GetViaIdentity.cs @@ -425,7 +425,7 @@ protected override void StopProcessing() return ; } // onAccepted - response for 202 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptExpanded.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptExpanded.cs index 3db18f16c8df..353f65602d4d 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptExpanded.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzSubscriptionAcceptOwnership_AcceptExpanded : 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.Subscription.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Subscription.ParameterCategory.Runtime)] @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.InvokeAzSubscript /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,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/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaIdentityExpanded.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaIdentityExpanded.cs index 94744a39cb04..56eb4029eb4b 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaIdentityExpanded.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzSubscriptionAcceptOwnership_AcceptViaIdentityExpand /// 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.Subscription.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Subscription.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.InvokeAzSubscript /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -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/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonFilePath.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonFilePath.cs index 7daaa47101b6..18689b4dd338 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonFilePath.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonFilePath : /// 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.Subscription.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Subscription.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.InvokeAzSubscript /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,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/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonString.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonString.cs index 0674678e21b7..40b82f46fb08 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonString.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonString.cs @@ -41,15 +41,6 @@ public partial class InvokeAzSubscriptionAcceptOwnership_AcceptViaJsonString : 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.Subscription.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Subscription.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.InvokeAzSubscript /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,7 +537,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/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateExpanded.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateExpanded.cs index 7468b5c563eb..ec5cef31c178 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateExpanded.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzSubscriptionAlias_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; - - /// - /// 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 _aliasName; @@ -328,11 +319,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.NewAzSubscription /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -648,24 +634,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponse 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/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaIdentityExpanded.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaIdentityExpanded.cs index e501cdac0b1e..80f1f0012b03 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaIdentityExpanded.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzSubscriptionAlias_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.Subscription.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Subscription.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.NewAzSubscription /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -650,24 +636,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponse 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/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonFilePath.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonFilePath.cs index d981b10e2dc4..ffc19d60408c 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonFilePath.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzSubscriptionAlias_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; - /// Backing field for property. private string _aliasName; @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.NewAzSubscription /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,24 +537,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponse 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/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonString.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonString.cs index cd0b2c11f966..95553d6ccf81 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonString.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/NewAzSubscriptionAlias_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzSubscriptionAlias_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; - /// Backing field for property. private string _aliasName; @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Subscription.Cmdlets.NewAzSubscription /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Subscription.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,24 +535,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionAliasResponse 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/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_Delete.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_Delete.cs index f7f4dc14311b..37bc8243afee 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_Delete.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_Delete.cs @@ -464,7 +464,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -488,7 +488,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/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_DeleteViaIdentity.cs b/generated/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_DeleteViaIdentity.cs index aacc10f0110b..3e6ec8ac4a81 100644 --- a/generated/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_DeleteViaIdentity.cs +++ b/generated/Subscription/Subscription.Autorest/generated/cmdlets/RemoveAzSubscriptionAlias_DeleteViaIdentity.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); } @@ -491,7 +491,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/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 426ccae30a57..fec0af468d43 100644 --- a/generated/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Subscription/Subscription.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/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 6381fcc35307..cf44cd6751cb 100644 --- a/generated/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Subscription/Subscription.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/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 1563ae226c12..7f21d1f26af5 100644 --- a/generated/Subscription/Subscription.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Subscription/Subscription.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/Subscription/Subscription.Autorest/generated/runtime/Context.cs b/generated/Subscription/Subscription.Autorest/generated/runtime/Context.cs index c2e9b862cfff..be0acb8ef21e 100644 --- a/generated/Subscription/Subscription.Autorest/generated/runtime/Context.cs +++ b/generated/Subscription/Subscription.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Subscription.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/Subscription/Subscription.Autorest/generated/runtime/MessageAttribute.cs b/generated/Subscription/Subscription.Autorest/generated/runtime/MessageAttribute.cs index a4a6d2b22adc..fb9b208d6d1c 100644 --- a/generated/Subscription/Subscription.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Subscription/Subscription.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Subscription.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.Subscription" : @""; + //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/Subscription/Subscription.Autorest/generated/runtime/Properties/Resources.resx b/generated/Subscription/Subscription.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Subscription/Subscription.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Subscription/Subscription.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/Subscription/Subscription.Autorest/internal/New-AzSubscriptionAlias.ps1 b/generated/Subscription/Subscription.Autorest/internal/New-AzSubscriptionAlias.ps1 index 196fc9c7aab4..c4d4ddd2d65b 100644 --- a/generated/Subscription/Subscription.Autorest/internal/New-AzSubscriptionAlias.ps1 +++ b/generated/Subscription/Subscription.Autorest/internal/New-AzSubscriptionAlias.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create Alias Subscription. +Create Alias Subscription. .Description -create Alias Subscription. +Create Alias Subscription. .Example New-AzSubscriptionAlias -AliasName test-subscription -SubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX .Example diff --git a/generated/Subscription/Subscription.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Subscription/Subscription.Autorest/internal/ProxyCmdletDefinitions.ps1 index 0b894440fd53..8eb7d33f57dc 100644 --- a/generated/Subscription/Subscription.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Subscription/Subscription.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -308,9 +308,9 @@ end { <# .Synopsis -create Alias Subscription. +Create Alias Subscription. .Description -create Alias Subscription. +Create Alias Subscription. .Example New-AzSubscriptionAlias -AliasName test-subscription -SubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX .Example @@ -710,9 +710,9 @@ end { <# .Synopsis -add Subscription tenant policy for user's tenant. +Add Subscription tenant policy for user's tenant. .Description -add Subscription tenant policy for user's tenant. +Add Subscription tenant policy for user's tenant. .Example {{ Add code here }} .Example diff --git a/generated/Subscription/Subscription.Autorest/internal/Update-AzSubscriptionPolicy.ps1 b/generated/Subscription/Subscription.Autorest/internal/Update-AzSubscriptionPolicy.ps1 index d9bddb55863f..5c072167481b 100644 --- a/generated/Subscription/Subscription.Autorest/internal/Update-AzSubscriptionPolicy.ps1 +++ b/generated/Subscription/Subscription.Autorest/internal/Update-AzSubscriptionPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -add Subscription tenant policy for user's tenant. +Add Subscription tenant policy for user's tenant. .Description -add Subscription tenant policy for user's tenant. +Add Subscription tenant policy for user's tenant. .Example {{ Add code here }} .Example diff --git a/generated/Support/Support.Autorest/Properties/AssemblyInfo.cs b/generated/Support/Support.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 6aa81fa2d926..000000000000 --- a/generated/Support/Support.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 - Support")] -[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("4091715e-fde6-4baf-a470-f21c5831db47")] -[assembly: AssemblyVersion("2.1.0")] -[assembly: AssemblyFileVersion("2.1.0")] diff --git a/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscript.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscript.ps1 index ebb5ebbc9be8..74851193e329 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscript.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscript.ps1 @@ -154,6 +154,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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 { List = 'Az.Support.private\Get-AzSupportChatTranscript_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.Support.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/Support/Support.Autorest/exports/Get-AzSupportChatTranscriptsNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscriptsNoSubscription.ps1 index 234eef56ceae..4c28fded4815 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscriptsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportChatTranscriptsNoSubscription.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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,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/Support/Support.Autorest/exports/Get-AzSupportCommunication.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportCommunication.ps1 index 301c272aeaaa..e7b217a68df3 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportCommunication.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportCommunication.ps1 @@ -170,6 +170,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -194,8 +202,6 @@ begin { List = 'Az.Support.private\Get-AzSupportCommunication_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -209,6 +215,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/Support/Support.Autorest/exports/Get-AzSupportCommunicationsNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportCommunicationsNoSubscription.ps1 index 60506a7cf133..542cf776f66a 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportCommunicationsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportCommunicationsNoSubscription.ps1 @@ -162,6 +162,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -192,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/Support/Support.Autorest/exports/Get-AzSupportFile.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportFile.ps1 index be9ae17cad35..300535e5ec4b 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportFile.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportFile.ps1 @@ -159,6 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -183,8 +191,6 @@ begin { List = 'Az.Support.private\Get-AzSupportFile_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -198,6 +204,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/Support/Support.Autorest/exports/Get-AzSupportFileWorkspace.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportFileWorkspace.ps1 index 9056de3dfb42..888a5ce86046 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportFileWorkspace.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportFileWorkspace.ps1 @@ -128,6 +128,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -150,8 +158,6 @@ begin { GetViaIdentity = 'Az.Support.private\Get-AzSupportFileWorkspace_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -165,6 +171,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/Support/Support.Autorest/exports/Get-AzSupportFileWorkspacesNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportFileWorkspacesNoSubscription.ps1 index 83228716b566..0931250b75ed 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportFileWorkspacesNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportFileWorkspacesNoSubscription.ps1 @@ -120,6 +120,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -148,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/Support/Support.Autorest/exports/Get-AzSupportFilesNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportFilesNoSubscription.ps1 index 03ed6d129300..ab5f2032e808 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportFilesNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportFilesNoSubscription.ps1 @@ -150,6 +150,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -180,6 +188,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/Support/Support.Autorest/exports/Get-AzSupportOperation.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportOperation.ps1 index d65754765a74..6b71adcede77 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportOperation.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportOperation.ps1 @@ -88,6 +88,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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/Support/Support.Autorest/exports/Get-AzSupportProblemClassification.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportProblemClassification.ps1 index b99c1484f9cf..b8f2c6449776 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportProblemClassification.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportProblemClassification.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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,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/Support/Support.Autorest/exports/Get-AzSupportService.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportService.ps1 index 6beeaff57255..a35514b4d581 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportService.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportService.ps1 @@ -120,6 +120,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -149,6 +157,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/Support/Support.Autorest/exports/Get-AzSupportTicket.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportTicket.ps1 index aace0efa1e01..08102620d2f4 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportTicket.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportTicket.ps1 @@ -153,6 +153,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -176,8 +184,6 @@ begin { GetViaIdentity = 'Az.Support.custom\Get-AzSupportTicket'; } if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -191,6 +197,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/Support/Support.Autorest/exports/Get-AzSupportTicketsNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/Get-AzSupportTicketsNoSubscription.ps1 index 5b2184e2fff8..982aaa1ede44 100644 --- a/generated/Support/Support.Autorest/exports/Get-AzSupportTicketsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/Get-AzSupportTicketsNoSubscription.ps1 @@ -144,6 +144,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -173,6 +181,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/Support/Support.Autorest/exports/New-AzSupportCommunication.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportCommunication.ps1 index ac9751db4875..979c653ff4ca 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportCommunication.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportCommunication.ps1 @@ -140,6 +140,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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,8 +169,6 @@ begin { CreateExpanded = 'Az.Support.private\New-AzSupportCommunication_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -176,6 +182,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/Support/Support.Autorest/exports/New-AzSupportCommunicationsNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportCommunicationsNoSubscription.ps1 index af913b1e3b70..e3af48b12d33 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportCommunicationsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportCommunicationsNoSubscription.ps1 @@ -132,6 +132,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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/Support/Support.Autorest/exports/New-AzSupportFileAndUpload.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportFileAndUpload.ps1 index 3ea9298c3386..52da3edda577 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportFileAndUpload.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportFileAndUpload.ps1 @@ -110,6 +110,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -131,8 +139,6 @@ begin { CreateExpanded = 'Az.Support.custom\New-AzSupportFileAndUpload'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -146,6 +152,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/Support/Support.Autorest/exports/New-AzSupportFileAndUploadNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportFileAndUploadNoSubscription.ps1 index c308d1a8d512..9ba1d75e9562 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportFileAndUploadNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -103,6 +103,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -130,6 +138,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/Support/Support.Autorest/exports/New-AzSupportFileWorkspace.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportFileWorkspace.ps1 index 00b998c93124..b27a3b8fed5a 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportFileWorkspace.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportFileWorkspace.ps1 @@ -103,6 +103,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -124,8 +132,6 @@ begin { Create = 'Az.Support.private\New-AzSupportFileWorkspace_Create'; } if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -139,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/Support/Support.Autorest/exports/New-AzSupportFileWorkspacesNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportFileWorkspacesNoSubscription.ps1 index 32299b420822..cc4ac71495d5 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportFileWorkspacesNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportFileWorkspacesNoSubscription.ps1 @@ -95,6 +95,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -122,6 +130,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/Support/Support.Autorest/exports/New-AzSupportTicket.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportTicket.ps1 index 84adbf6b4333..690070fb27d6 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportTicket.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportTicket.ps1 @@ -322,6 +322,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -343,8 +351,6 @@ begin { CreateExpanded = 'Az.Support.private\New-AzSupportTicket_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -358,6 +364,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/Support/Support.Autorest/exports/New-AzSupportTicketsNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/New-AzSupportTicketsNoSubscription.ps1 index e5a5727e7a44..825cf0b8f15c 100644 --- a/generated/Support/Support.Autorest/exports/New-AzSupportTicketsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/New-AzSupportTicketsNoSubscription.ps1 @@ -304,6 +304,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -331,6 +339,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/Support/Support.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Support/Support.Autorest/exports/ProxyCmdletDefinitions.ps1 index 6cdacc9eadfc..22346d2d914a 100644 --- a/generated/Support/Support.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Support/Support.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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,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) @@ -358,6 +369,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -382,8 +401,6 @@ begin { List = 'Az.Support.private\Get-AzSupportChatTranscript_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -397,6 +414,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) @@ -588,6 +608,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -618,6 +646,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) @@ -817,6 +848,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -841,8 +880,6 @@ begin { List = 'Az.Support.private\Get-AzSupportCommunication_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -856,6 +893,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) @@ -1035,6 +1075,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -1065,6 +1113,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) @@ -1214,6 +1265,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -1242,6 +1301,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) @@ -1399,6 +1461,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -1421,8 +1491,6 @@ begin { GetViaIdentity = 'Az.Support.private\Get-AzSupportFileWorkspace_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1436,6 +1504,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) @@ -1624,6 +1695,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -1648,8 +1727,6 @@ begin { List = 'Az.Support.private\Get-AzSupportFile_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1663,6 +1740,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) @@ -1837,6 +1917,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -1867,6 +1955,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) @@ -2016,6 +2107,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -2045,6 +2144,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) @@ -2206,6 +2308,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -2233,6 +2343,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) @@ -2402,6 +2515,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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 +2544,6 @@ begin { CreateExpanded = 'Az.Support.private\New-AzSupportCommunication_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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 +2557,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) @@ -2562,6 +2684,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -2589,6 +2719,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) @@ -2721,6 +2854,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -2742,8 +2883,6 @@ begin { Create = 'Az.Support.private\New-AzSupportFileWorkspace_Create'; } if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2757,6 +2896,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) @@ -3090,6 +3232,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -3117,6 +3267,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) @@ -3468,6 +3621,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -3489,8 +3650,6 @@ begin { CreateExpanded = 'Az.Support.private\New-AzSupportTicket_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3504,6 +3663,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) @@ -3707,6 +3869,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -3733,8 +3903,6 @@ begin { CheckViaJsonString = 'Az.Support.private\Test-AzSupportCommunicationNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3748,6 +3916,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) @@ -3940,6 +4111,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -3972,6 +4151,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) @@ -4142,6 +4324,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -4166,8 +4356,6 @@ begin { CheckViaJsonString = 'Az.Support.private\Test-AzSupportTicketNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4181,6 +4369,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) @@ -4343,6 +4534,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -4373,6 +4572,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) @@ -4619,6 +4821,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -4647,6 +4857,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) @@ -4901,6 +5114,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -4923,8 +5144,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Support.private\Update-AzSupportTicket_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4938,6 +5157,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) @@ -5055,6 +5277,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -5082,6 +5312,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) @@ -5264,6 +5497,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -5287,8 +5528,6 @@ begin { GetViaIdentity = 'Az.Support.custom\Get-AzSupportTicket'; } if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5302,6 +5541,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) @@ -5475,6 +5717,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -5504,6 +5754,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) @@ -5643,6 +5896,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -5664,8 +5925,6 @@ begin { CreateExpanded = 'Az.Support.custom\New-AzSupportFileAndUpload'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5679,6 +5938,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) @@ -5811,6 +6073,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -5838,6 +6108,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/Support/Support.Autorest/exports/Test-AzSupportCommunicationNameAvailability.ps1 b/generated/Support/Support.Autorest/exports/Test-AzSupportCommunicationNameAvailability.ps1 index 4e243e7446f2..3b9fbb7e46f3 100644 --- a/generated/Support/Support.Autorest/exports/Test-AzSupportCommunicationNameAvailability.ps1 +++ b/generated/Support/Support.Autorest/exports/Test-AzSupportCommunicationNameAvailability.ps1 @@ -174,6 +174,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -200,8 +208,6 @@ begin { CheckViaJsonString = 'Az.Support.private\Test-AzSupportCommunicationNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -215,6 +221,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/Support/Support.Autorest/exports/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.ps1 b/generated/Support/Support.Autorest/exports/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.ps1 index 156ea2a7884c..66c9d06a5ccb 100644 --- a/generated/Support/Support.Autorest/exports/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.ps1 +++ b/generated/Support/Support.Autorest/exports/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.ps1 @@ -163,6 +163,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -195,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/Support/Support.Autorest/exports/Test-AzSupportTicketNameAvailability.ps1 b/generated/Support/Support.Autorest/exports/Test-AzSupportTicketNameAvailability.ps1 index 193503736417..43c8c00b0c9e 100644 --- a/generated/Support/Support.Autorest/exports/Test-AzSupportTicketNameAvailability.ps1 +++ b/generated/Support/Support.Autorest/exports/Test-AzSupportTicketNameAvailability.ps1 @@ -141,6 +141,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -165,8 +173,6 @@ begin { CheckViaJsonString = 'Az.Support.private\Test-AzSupportTicketNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -180,6 +186,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/Support/Support.Autorest/exports/Test-AzSupportTicketsNoSubscriptionNameAvailability.ps1 b/generated/Support/Support.Autorest/exports/Test-AzSupportTicketsNoSubscriptionNameAvailability.ps1 index 841e637197f8..d70af08ea256 100644 --- a/generated/Support/Support.Autorest/exports/Test-AzSupportTicketsNoSubscriptionNameAvailability.ps1 +++ b/generated/Support/Support.Autorest/exports/Test-AzSupportTicketsNoSubscriptionNameAvailability.ps1 @@ -133,6 +133,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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,6 +171,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/Support/Support.Autorest/exports/Update-AzSupportTicket.ps1 b/generated/Support/Support.Autorest/exports/Update-AzSupportTicket.ps1 index 3b8b7e3c9541..b7c152ec24bf 100644 --- a/generated/Support/Support.Autorest/exports/Update-AzSupportTicket.ps1 +++ b/generated/Support/Support.Autorest/exports/Update-AzSupportTicket.ps1 @@ -225,6 +225,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -247,8 +255,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Support.private\Update-AzSupportTicket_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -262,6 +268,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/Support/Support.Autorest/exports/Update-AzSupportTicketsNoSubscription.ps1 b/generated/Support/Support.Autorest/exports/Update-AzSupportTicketsNoSubscription.ps1 index cbf03de4b740..67c28ae83f97 100644 --- a/generated/Support/Support.Autorest/exports/Update-AzSupportTicketsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/exports/Update-AzSupportTicketsNoSubscription.ps1 @@ -217,6 +217,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.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() } @@ -245,6 +253,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/Support/Support.Autorest/generated/api/Models/ChatTranscriptDetails.cs b/generated/Support/Support.Autorest/generated/api/Models/ChatTranscriptDetails.cs index 67793acd3ed0..169bb33a3065 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/ChatTranscriptDetails.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/ChatTranscriptDetails.cs @@ -34,19 +34,37 @@ public partial class ChatTranscriptDetails : Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ChatTranscriptDetailsProperties()); set { {_property = value;} } } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsPropertiesInternal)Property).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetailsPropertiesInternal)Property).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] @@ -76,37 +94,37 @@ public partial class ChatTranscriptDetails : /// [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Support/Support.Autorest/generated/api/Models/CommunicationDetails.cs b/generated/Support/Support.Autorest/generated/api/Models/CommunicationDetails.cs index bcab81cd7306..305e2fbf6a91 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/CommunicationDetails.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/CommunicationDetails.cs @@ -42,13 +42,13 @@ public partial class CommunicationDetails : public string Id { get => this._id; } /// Internal Acessors for CommunicationDirection - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.CommunicationDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationDirection = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.CommunicationDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationDirection = value ?? null; } /// Internal Acessors for CommunicationType - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.CommunicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.CommunicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CommunicationType = value ?? null; } /// Internal Acessors for CreatedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.CreatedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CreatedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CreatedDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.CreatedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CreatedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsPropertiesInternal)Property).CreatedDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetailsInternal.Id { get => this._id; set { {_id = value;} } } diff --git a/generated/Support/Support.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Support/Support.Autorest/generated/api/Models/ErrorResponse.cs index 7e79291c7622..770085fb2b25 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] diff --git a/generated/Support/Support.Autorest/generated/api/Models/FileDetails.cs b/generated/Support/Support.Autorest/generated/api/Models/FileDetails.cs index cf353b4dbef3..de45e52c487a 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/FileDetails.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/FileDetails.cs @@ -45,22 +45,40 @@ public partial class FileDetails : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for CreatedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsInternal.CreatedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsPropertiesInternal)Property).CreatedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsPropertiesInternal)Property).CreatedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsInternal.CreatedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsPropertiesInternal)Property).CreatedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsPropertiesInternal)Property).CreatedOn = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.FileDetailsProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] @@ -90,37 +108,37 @@ public partial class FileDetails : /// [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Support.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Support/Support.Autorest/generated/api/Models/FileWorkspaceDetails.cs b/generated/Support/Support.Autorest/generated/api/Models/FileWorkspaceDetails.cs index 3b0f47f39bba..a55000b9fb83 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/FileWorkspaceDetails.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/FileWorkspaceDetails.cs @@ -33,25 +33,43 @@ public partial class FileWorkspaceDetails : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for CreatedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsInternal.CreatedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).CreatedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).CreatedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsInternal.CreatedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).CreatedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).CreatedOn = value ?? default(global::System.DateTime); } /// Internal Acessors for ExpirationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsInternal.ExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).ExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).ExpirationTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsInternal.ExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).ExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsPropertiesInternal)Property).ExpirationTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.FileWorkspaceDetailsProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] @@ -72,31 +90,31 @@ public partial class FileWorkspaceDetails : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Support/Support.Autorest/generated/api/Models/Operation.cs b/generated/Support/Support.Autorest/generated/api/Models/Operation.cs index 778189c57ac4..51832bd4d891 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/Operation.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/Operation.cs @@ -40,16 +40,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } } diff --git a/generated/Support/Support.Autorest/generated/api/Models/ProxyResource.cs b/generated/Support/Support.Autorest/generated/api/Models/ProxyResource.cs index 732cf07d8192..4ec66183572d 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Support/Support.Autorest/generated/api/Models/Resource.cs b/generated/Support/Support.Autorest/generated/api/Models/Resource.cs index 4c3afd3b9fcc..172c49372067 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/Resource.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Support.Origin(Microsoft.Azure.PowerShell.Cmdlets.Support.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetails.cs b/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetails.cs index 120a6ae1d9e4..f3db610a6521 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetails.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetails.cs @@ -107,64 +107,64 @@ public partial class SupportTicketDetails : public string IsTemporaryTicket { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).IsTemporaryTicket; } /// Internal Acessors for ContactDetail - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IContactProfile Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IContactProfile Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ContactDetail = value ?? null /* model class */; } /// Internal Acessors for CreatedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.CreatedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).CreatedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).CreatedDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.CreatedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).CreatedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).CreatedDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for IsTemporaryTicket - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.IsTemporaryTicket { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).IsTemporaryTicket; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).IsTemporaryTicket = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.IsTemporaryTicket { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).IsTemporaryTicket; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).IsTemporaryTicket = value ?? null; } /// Internal Acessors for ModifiedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ModifiedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ModifiedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ModifiedDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ModifiedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ModifiedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ModifiedDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for ProblemClassificationDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ProblemClassificationDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ProblemClassificationDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ProblemClassificationDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ProblemClassificationDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ProblemClassificationDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ProblemClassificationDisplayName = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.SupportTicketDetailsProperties()); set { {_property = value;} } } /// Internal Acessors for QuotaTicketDetail - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IQuotaTicketDetails Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.QuotaTicketDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).QuotaTicketDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).QuotaTicketDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IQuotaTicketDetails Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.QuotaTicketDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).QuotaTicketDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).QuotaTicketDetail = value ?? null /* model class */; } /// Internal Acessors for ServiceDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceDisplayName = value ?? null; } /// Internal Acessors for ServiceLevelAgreement - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreement Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreement { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreement; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreement = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreement Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreement { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreement; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreement = value ?? null /* model class */; } /// Internal Acessors for ServiceLevelAgreementExpirationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreementExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementExpirationTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreementExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementExpirationTime = value ?? default(global::System.DateTime); } /// Internal Acessors for ServiceLevelAgreementSlaMinute - int? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreementSlaMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementSlaMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementSlaMinute = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreementSlaMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementSlaMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementSlaMinute = value ?? default(int); } /// Internal Acessors for ServiceLevelAgreementStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreementStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.ServiceLevelAgreementStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).ServiceLevelAgreementStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for SupportEngineer - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineer Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportEngineer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineer = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineer Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportEngineer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineer = value ?? null /* model class */; } /// Internal Acessors for SupportEngineerEmailAddress - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportEngineerEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineerEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineerEmailAddress = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportEngineerEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineerEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportEngineerEmailAddress = value ?? null; } /// Internal Acessors for SupportPlanDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportPlanDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportPlanDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanDisplayName = value ?? null; } /// Internal Acessors for SupportPlanType - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportPlanType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.SupportPlanType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).SupportPlanType = value ?? null; } /// Internal Acessors for TechnicalTicketDetail - Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ITechnicalTicketDetails Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.TechnicalTicketDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).TechnicalTicketDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).TechnicalTicketDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ITechnicalTicketDetails Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.TechnicalTicketDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).TechnicalTicketDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal)Property).TechnicalTicketDetail = value ?? null /* model class */; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetailsProperties.cs b/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetailsProperties.cs index d0b5a748a1bf..922aad7292b0 100644 --- a/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetailsProperties.cs +++ b/generated/Support/Support.Autorest/generated/api/Models/SupportTicketDetailsProperties.cs @@ -133,13 +133,13 @@ public partial class SupportTicketDetailsProperties : Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreement Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreement { get => (this._serviceLevelAgreement = this._serviceLevelAgreement ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ServiceLevelAgreement()); set { {_serviceLevelAgreement = value;} } } /// Internal Acessors for ServiceLevelAgreementExpirationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreementExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).ExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).ExpirationTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreementExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).ExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).ExpirationTime = value ?? default(global::System.DateTime); } /// Internal Acessors for ServiceLevelAgreementSlaMinute - int? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreementSlaMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).SlaMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).SlaMinute = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreementSlaMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).SlaMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).SlaMinute = value ?? default(int); } /// Internal Acessors for ServiceLevelAgreementStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreementStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.ServiceLevelAgreementStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IServiceLevelAgreementInternal)ServiceLevelAgreement).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.Status { get => this._status; set { {_status = value;} } } @@ -148,7 +148,7 @@ public partial class SupportTicketDetailsProperties : Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineer Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.SupportEngineer { get => (this._supportEngineer = this._supportEngineer ?? new Microsoft.Azure.PowerShell.Cmdlets.Support.Models.SupportEngineer()); set { {_supportEngineer = value;} } } /// Internal Acessors for SupportEngineerEmailAddress - string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.SupportEngineerEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineerInternal)SupportEngineer).EmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineerInternal)SupportEngineer).EmailAddress = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.SupportEngineerEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineerInternal)SupportEngineer).EmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportEngineerInternal)SupportEngineer).EmailAddress = value ?? null; } /// Internal Acessors for SupportPlanDisplayName string Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetailsPropertiesInternal.SupportPlanDisplayName { get => this._supportPlanDisplayName; set { {_supportPlanDisplayName = value;} } } diff --git a/generated/Support/Support.Autorest/generated/api/Support.cs b/generated/Support/Support.Autorest/generated/api/Support.cs index b7e297a3d512..88620a0a0e94 100644 --- a/generated/Support/Support.Autorest/generated/api/Support.cs +++ b/generated/Support/Support.Autorest/generated/api/Support.cs @@ -2018,16 +2018,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -2040,7 +2041,10 @@ public partial class Support 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.Support.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 @@ -2168,16 +2172,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -2190,7 +2195,10 @@ public partial class Support 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.Support.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 @@ -3738,16 +3746,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -3760,7 +3769,10 @@ public partial class Support 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.Support.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 @@ -3888,16 +3900,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -3910,7 +3923,10 @@ public partial class Support 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.Support.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 @@ -4696,7 +4712,7 @@ public partial class Support } } - /// Create a new file workspace for the specified subscription. + /// create a new file workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. /// File workspace name. /// a delegate that is called when the remote service returns 201 (Created). @@ -4736,7 +4752,7 @@ public partial class Support } } - /// Create a new file workspace for the specified subscription. + /// create a new file workspace for the specified subscription. /// /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4786,7 +4802,7 @@ public partial class Support } } - /// Create a new file workspace for the specified subscription. + /// create a new file workspace for the specified subscription. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.ISendAsync pipeline to use to make the request. @@ -4834,7 +4850,7 @@ public partial class Support } } - /// Create a new file workspace for the specified subscription. + /// create a new file workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. /// File workspace name. /// an instance that will receive events. @@ -5309,7 +5325,7 @@ public partial class Support } } - /// Create a new file workspace. + /// create a new file workspace. /// File workspace name. /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5346,7 +5362,7 @@ public partial class Support } } - /// Create a new file workspace. + /// create a new file workspace. /// /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5393,7 +5409,7 @@ public partial class Support } } - /// Create a new file workspace. + /// create a new file workspace. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.ISendAsync pipeline to use to make the request. @@ -5438,7 +5454,7 @@ public partial class Support } } - /// Create a new file workspace. + /// create a new file workspace. /// File workspace name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.ISendAsync pipeline to use to make the request. @@ -5896,7 +5912,7 @@ public partial class Support } } - /// Update a new file under a workspace for the specified subscription. + /// update a new file under a workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. /// File workspace name. /// File name. @@ -5945,7 +5961,7 @@ public partial class Support } } - /// Update a new file under a workspace for the specified subscription. + /// update a new file under a workspace for the specified subscription. /// /// Create file object /// a delegate that is called when the remote service returns 201 (Created). @@ -6004,7 +6020,7 @@ public partial class Support } } - /// Update a new file under a workspace for the specified subscription. + /// update a new file under a workspace for the specified subscription. /// /// Create file object /// an instance that will receive events. @@ -6061,7 +6077,7 @@ public partial class Support } } - /// Update a new file under a workspace for the specified subscription. + /// update a new file under a workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. /// File workspace name. /// File name. @@ -6109,7 +6125,7 @@ public partial class Support } } - /// Update a new file under a workspace for the specified subscription. + /// update a new file under a workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. /// File workspace name. /// File name. @@ -6155,7 +6171,7 @@ public partial class Support } } - /// Update a new file under a workspace for the specified subscription. + /// update a new file under a workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. /// File workspace name. /// File name. @@ -6968,7 +6984,7 @@ public partial class Support } } - /// Update a new file under a workspace. + /// update a new file under a workspace. /// File workspace name. /// File name. /// Create file object @@ -7014,7 +7030,7 @@ public partial class Support } } - /// Update a new file under a workspace. + /// update a new file under a workspace. /// /// Create file object /// a delegate that is called when the remote service returns 201 (Created). @@ -7070,7 +7086,7 @@ public partial class Support } } - /// Update a new file under a workspace. + /// update a new file under a workspace. /// /// Create file object /// an instance that will receive events. @@ -7124,7 +7140,7 @@ public partial class Support } } - /// Update a new file under a workspace. + /// update a new file under a workspace. /// File workspace name. /// File name. /// Json string supplied to the FilesNoSubscriptionCreate operation @@ -7169,7 +7185,7 @@ public partial class Support } } - /// Update a new file under a workspace. + /// update a new file under a workspace. /// File workspace name. /// File name. /// Json string supplied to the FilesNoSubscriptionCreate operation @@ -7212,7 +7228,7 @@ public partial class Support } } - /// Update a new file under a workspace. + /// update a new file under a workspace. /// File workspace name. /// File name. /// Create file object @@ -10372,7 +10388,7 @@ public partial class Support } /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -10431,7 +10447,7 @@ public partial class Support } /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -10500,7 +10516,7 @@ public partial class Support } /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -10567,7 +10583,7 @@ public partial class Support } /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -10625,7 +10641,7 @@ public partial class Support } /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -10681,7 +10697,7 @@ public partial class Support } /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -10752,16 +10768,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -10774,7 +10791,10 @@ public partial class Support 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.Support.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 @@ -10902,16 +10922,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -10924,7 +10945,10 @@ public partial class Support 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.Support.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 @@ -12131,7 +12155,7 @@ public partial class Support } /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -12183,7 +12207,7 @@ public partial class Support } /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -12245,7 +12269,7 @@ public partial class Support } /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -12305,7 +12329,7 @@ public partial class Support } /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -12356,7 +12380,7 @@ public partial class Support } /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -12405,7 +12429,7 @@ public partial class Support } /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -12471,16 +12495,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -12493,7 +12518,10 @@ public partial class Support 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.Support.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 @@ -12621,16 +12649,17 @@ public partial class Support 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.Support.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Support.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"); + 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 @@ -12643,7 +12672,10 @@ public partial class Support 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.Support.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_Upload.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_Upload.cs index b48fd3ac361f..46d435affe8e 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_Upload.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_Upload.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadExpanded.cs index 3fb69cfe9cec..cbd3f915b804 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadExpanded.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentity.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentity.cs index a4a909530413..cca0750e76fa 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentity.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentity.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityExpanded.cs index 8ac5b850a838..4fd162455ae4 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityExpanded.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspace.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspace.cs index 8058bea4867f..542c5e59c2e2 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspace.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspace.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspaceExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspaceExpanded.cs index dc8c2a98f2ea..921f9126fbc4 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspaceExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaIdentityFileWorkspaceExpanded.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonFilePath.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonFilePath.cs index cc9cb672f5ad..37d4fcc9bf23 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonFilePath.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonFilePath.cs @@ -502,7 +502,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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonString.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonString.cs index fdf70be63523..6e77570910da 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonString.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFile_UploadViaJsonString.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_Upload.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_Upload.cs index dad5ac09ef10..32ff41e0e643 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_Upload.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_Upload.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadExpanded.cs index 4ba63234a163..fa7f0b15145a 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadExpanded.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentity.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentity.cs index 1adc7cb9de77..50c3a965eaf4 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentity.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentity.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityExpanded.cs index f13d3eba715a..4fafde3f137a 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityExpanded.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspace.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspace.cs index 1c493689c0c6..e883d77c6aa8 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspace.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspace.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspaceExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspaceExpanded.cs index 1c11764bf057..3129a549e19d 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspaceExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaIdentityFileWorkspaceExpanded.cs @@ -499,7 +499,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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonFilePath.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonFilePath.cs index 01c56a9b5c89..c61cedc081ab 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonFilePath.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonFilePath.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/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonString.cs b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonString.cs index 254789ff193f..5cdbbd8b9532 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonString.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/InvokeAzSupportUploadFilesNoSubscription_UploadViaJsonString.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); } diff --git a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunication_CreateExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunication_CreateExpanded.cs index dece571e9091..0142bd226422 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunication_CreateExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunication_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzSupportCommunication_CreateExpanded : 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.Support.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Support.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets.NewAzSupportCommunicat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Support.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails 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/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunicationsNoSubscription_CreateExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunicationsNoSubscription_CreateExpanded.cs index 8d16c710ca2b..468168d0cf2c 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunicationsNoSubscription_CreateExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportCommunicationsNoSubscription_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzSupportCommunicationsNoSubscription_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; - - /// - /// 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.Support.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Support.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets.NewAzSupportCommunicat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.Models.ICommunicationDetails 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/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspace_Create.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspace_Create.cs index d05c22c1fcde..5ee1087662b3 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspace_Create.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspace_Create.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Cmdlets; using System; - /// Create a new file workspace for the specified subscription. + /// create a new file workspace for the specified subscription. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSupportFileWorkspace_Create", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"Create a new file workspace for the specified subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"create a new file workspace for the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}", ApiVersion = "2024-04-01")] public partial class NewAzSupportFileWorkspace_Create : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspacesNoSubscription_Create.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspacesNoSubscription_Create.cs index b84d425030aa..a38f65020e6c 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspacesNoSubscription_Create.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFileWorkspacesNoSubscription_Create.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Cmdlets; using System; - /// Create a new file workspace. + /// create a new file workspace. /// /// [OpenAPI] Create=>PUT:"/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSupportFileWorkspacesNoSubscription_Create", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"Create a new file workspace.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"create a new file workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.HttpPath(Path = "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}", ApiVersion = "2024-04-01")] public partial class NewAzSupportFileWorkspacesNoSubscription_Create : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFile_CreateExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFile_CreateExpanded.cs index 94f7dfff4658..cafde4e74f45 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFile_CreateExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFile_CreateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Cmdlets; using System; - /// Create a new file under a workspace for the specified subscription. + /// create a new file under a workspace for the specified subscription. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Support.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSupportFile_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"Create a new file under a workspace for the specified subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"create a new file under a workspace for the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", ApiVersion = "2024-04-01")] public partial class NewAzSupportFile_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFilesNoSubscription_CreateExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFilesNoSubscription_CreateExpanded.cs index fe65ddf40daa..14e611e9e964 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFilesNoSubscription_CreateExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportFilesNoSubscription_CreateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.Cmdlets; using System; - /// Create a new file under a workspace. + /// create a new file under a workspace. /// /// [OpenAPI] Create=>PUT:"/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Support.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSupportFilesNoSubscription_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"Create a new file under a workspace.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"create a new file under a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.HttpPath(Path = "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", ApiVersion = "2024-04-01")] public partial class NewAzSupportFilesNoSubscription_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicket_CreateExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicket_CreateExpanded.cs index 7ad4de7ee88e..b4dadc6753c5 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicket_CreateExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicket_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets using System; /// - /// Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management + /// create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management /// issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support /// ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem /// categories required for support ticket creation.

Adding attachments is not currently supported via the API. To @@ -29,7 +29,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSupportTicket_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"Create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.

Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.

Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.

**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"create a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.

Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.

Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.

**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}", ApiVersion = "2024-04-01")] public partial class NewAzSupportTicket_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -56,15 +56,6 @@ public partial class NewAzSupportTicket_CreateExpanded : 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; - /// Advanced diagnostic consent to be updated on the support ticket. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Advanced diagnostic consent to be updated on the support ticket.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Support.ParameterCategory.Body)] @@ -583,11 +574,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets.NewAzSupportTicket_Cre /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Support.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -903,24 +889,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails 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/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicketsNoSubscription_CreateExpanded.cs b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicketsNoSubscription_CreateExpanded.cs index ab4f4769f78b..5d505948f5c0 100644 --- a/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicketsNoSubscription_CreateExpanded.cs +++ b/generated/Support/Support.Autorest/generated/cmdlets/NewAzSupportTicketsNoSubscription_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets using System; /// - /// Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) + /// create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) /// required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most /// recent set of services and problem categories required for support ticket creation.

Adding attachments is not /// currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) @@ -25,7 +25,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSupportTicketsNoSubscription_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"Create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.

Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.

Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.

")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Description(@"create a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.

Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.

Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.

")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.HttpPath(Path = "/providers/Microsoft.Support/supportTickets/{supportTicketName}", ApiVersion = "2024-04-01")] public partial class NewAzSupportTicketsNoSubscription_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -52,15 +52,6 @@ public partial class NewAzSupportTicketsNoSubscription_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; - - /// - /// 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; - /// Advanced diagnostic consent to be updated on the support ticket. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Advanced diagnostic consent to be updated on the support ticket.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Support.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Support.ParameterCategory.Body)] @@ -559,11 +550,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Support.Cmdlets.NewAzSupportTicketsNoS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Support.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -879,24 +865,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails 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/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 0761a92a5bdf..4f392c04ae01 100644 --- a/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Support/Support.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/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index cd1b90822136..bd0b8a84224f 100644 --- a/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.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.Support.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/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 9769380ec679..d2d0c952e8ca 100644 --- a/generated/Support/Support.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Support/Support.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/Support/Support.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Support/Support.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 13482aac6b00..70e3e8f2bf17 100644 --- a/generated/Support/Support.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Support/Support.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/Support/Support.Autorest/generated/runtime/Context.cs b/generated/Support/Support.Autorest/generated/runtime/Context.cs index 0214f2662099..f0b29b3c7bc1 100644 --- a/generated/Support/Support.Autorest/generated/runtime/Context.cs +++ b/generated/Support/Support.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.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/Support/Support.Autorest/generated/runtime/MessageAttribute.cs b/generated/Support/Support.Autorest/generated/runtime/MessageAttribute.cs index a5c0be19b446..441ab341dc99 100644 --- a/generated/Support/Support.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Support/Support.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support" : @""; + //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/Support/Support.Autorest/generated/runtime/Properties/Resources.resx b/generated/Support/Support.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Support/Support.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Support/Support.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/Support/Support.Autorest/internal/Get-AzSupportOperation.ps1 b/generated/Support/Support.Autorest/internal/Get-AzSupportOperation.ps1 index 5a0095937f29..8712bacfad40 100644 --- a/generated/Support/Support.Autorest/internal/Get-AzSupportOperation.ps1 +++ b/generated/Support/Support.Autorest/internal/Get-AzSupportOperation.ps1 @@ -88,11 +88,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Support.private\Get-AzSupportOperation_List'; } $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/Support/Support.Autorest/internal/Get-AzSupportTicket.ps1 b/generated/Support/Support.Autorest/internal/Get-AzSupportTicket.ps1 index ee20cc9b557b..d4edcaac033d 100644 --- a/generated/Support/Support.Autorest/internal/Get-AzSupportTicket.ps1 +++ b/generated/Support/Support.Autorest/internal/Get-AzSupportTicket.ps1 @@ -151,14 +151,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.Support.private\Get-AzSupportTicket_Get'; GetViaIdentity = 'Az.Support.private\Get-AzSupportTicket_GetViaIdentity'; List = 'Az.Support.private\Get-AzSupportTicket_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -167,6 +168,9 @@ begin { } $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/Support/Support.Autorest/internal/Get-AzSupportTicketsNoSubscription.ps1 b/generated/Support/Support.Autorest/internal/Get-AzSupportTicketsNoSubscription.ps1 index 84a9e20621dd..606a5568006b 100644 --- a/generated/Support/Support.Autorest/internal/Get-AzSupportTicketsNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/internal/Get-AzSupportTicketsNoSubscription.ps1 @@ -141,6 +141,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.Support.private\Get-AzSupportTicketsNoSubscription_Get'; GetViaIdentity = 'Az.Support.private\Get-AzSupportTicketsNoSubscription_GetViaIdentity'; @@ -148,6 +151,9 @@ begin { } $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/Support/Support.Autorest/internal/Invoke-AzSupportUploadFile.ps1 b/generated/Support/Support.Autorest/internal/Invoke-AzSupportUploadFile.ps1 index ce065dc7e04e..5c794233edd7 100644 --- a/generated/Support/Support.Autorest/internal/Invoke-AzSupportUploadFile.ps1 +++ b/generated/Support/Support.Autorest/internal/Invoke-AzSupportUploadFile.ps1 @@ -212,6 +212,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Upload = 'Az.Support.private\Invoke-AzSupportUploadFile_Upload'; UploadExpanded = 'Az.Support.private\Invoke-AzSupportUploadFile_UploadExpanded'; @@ -223,8 +226,6 @@ begin { UploadViaJsonString = 'Az.Support.private\Invoke-AzSupportUploadFile_UploadViaJsonString'; } if (('Upload', 'UploadExpanded', 'UploadViaJsonFilePath', 'UploadViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -233,6 +234,9 @@ begin { } $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/Support/Support.Autorest/internal/Invoke-AzSupportUploadFilesNoSubscription.ps1 b/generated/Support/Support.Autorest/internal/Invoke-AzSupportUploadFilesNoSubscription.ps1 index 469b311577fb..1037759f3ebe 100644 --- a/generated/Support/Support.Autorest/internal/Invoke-AzSupportUploadFilesNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/internal/Invoke-AzSupportUploadFilesNoSubscription.ps1 @@ -201,6 +201,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Upload = 'Az.Support.private\Invoke-AzSupportUploadFilesNoSubscription_Upload'; UploadExpanded = 'Az.Support.private\Invoke-AzSupportUploadFilesNoSubscription_UploadExpanded'; @@ -213,6 +216,9 @@ begin { } $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/Support/Support.Autorest/internal/New-AzSupportFile.ps1 b/generated/Support/Support.Autorest/internal/New-AzSupportFile.ps1 index 84fa8f4df845..da717d20deb1 100644 --- a/generated/Support/Support.Autorest/internal/New-AzSupportFile.ps1 +++ b/generated/Support/Support.Autorest/internal/New-AzSupportFile.ps1 @@ -133,12 +133,13 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.Support.private\New-AzSupportFile_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -147,6 +148,9 @@ begin { } $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/Support/Support.Autorest/internal/New-AzSupportFilesNoSubscription.ps1 b/generated/Support/Support.Autorest/internal/New-AzSupportFilesNoSubscription.ps1 index 60473b9bd8cc..218ba2a132bd 100644 --- a/generated/Support/Support.Autorest/internal/New-AzSupportFilesNoSubscription.ps1 +++ b/generated/Support/Support.Autorest/internal/New-AzSupportFilesNoSubscription.ps1 @@ -125,11 +125,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.Support.private\New-AzSupportFilesNoSubscription_CreateExpanded'; } $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/Support/Support.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Support/Support.Autorest/internal/ProxyCmdletDefinitions.ps1 index 5ac9323b6091..a71b28dae50f 100644 --- a/generated/Support/Support.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Support/Support.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -88,11 +88,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Support.private\Get-AzSupportOperation_List'; } $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) @@ -249,6 +255,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.Support.private\Get-AzSupportTicketsNoSubscription_Get'; GetViaIdentity = 'Az.Support.private\Get-AzSupportTicketsNoSubscription_GetViaIdentity'; @@ -256,6 +265,9 @@ begin { } $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) @@ -422,14 +434,15 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Get = 'Az.Support.private\Get-AzSupportTicket_Get'; GetViaIdentity = 'Az.Support.private\Get-AzSupportTicket_GetViaIdentity'; List = 'Az.Support.private\Get-AzSupportTicket_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.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -438,6 +451,9 @@ begin { } $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) @@ -654,6 +670,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Upload = 'Az.Support.private\Invoke-AzSupportUploadFilesNoSubscription_Upload'; UploadExpanded = 'Az.Support.private\Invoke-AzSupportUploadFilesNoSubscription_UploadExpanded'; @@ -666,6 +685,9 @@ begin { } $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) @@ -893,6 +915,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Upload = 'Az.Support.private\Invoke-AzSupportUploadFile_Upload'; UploadExpanded = 'Az.Support.private\Invoke-AzSupportUploadFile_UploadExpanded'; @@ -904,8 +929,6 @@ begin { UploadViaJsonString = 'Az.Support.private\Invoke-AzSupportUploadFile_UploadViaJsonString'; } if (('Upload', 'UploadExpanded', 'UploadViaJsonFilePath', 'UploadViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -914,6 +937,9 @@ begin { } $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) @@ -1054,11 +1080,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.Support.private\New-AzSupportFilesNoSubscription_CreateExpanded'; } $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) @@ -1207,12 +1239,13 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateExpanded = 'Az.Support.private\New-AzSupportFile_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1221,6 +1254,9 @@ begin { } $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/src/Site/Site.Autorest/resources/README.md b/generated/Support/Support.Autorest/resources/README.md similarity index 100% rename from src/Site/Site.Autorest/resources/README.md rename to generated/Support/Support.Autorest/resources/README.md diff --git a/generated/Terraform/Terraform.Autorest/exports/Export-AzTerraform.ps1 b/generated/Terraform/Terraform.Autorest/exports/Export-AzTerraform.ps1 index 1cc8683c22dd..a37a7292a73f 100644 --- a/generated/Terraform/Terraform.Autorest/exports/Export-AzTerraform.ps1 +++ b/generated/Terraform/Terraform.Autorest/exports/Export-AzTerraform.ps1 @@ -142,6 +142,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -165,8 +173,6 @@ begin { ExportViaJsonString = 'Az.Terraform.private\Export-AzTerraform_ExportViaJsonString'; } if (('Export', 'ExportViaJsonFilePath', 'ExportViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -180,6 +186,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/Terraform/Terraform.Autorest/exports/New-AzTerraformExportQueryObject.ps1 b/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportQueryObject.ps1 index 8c0b3514692b..4e5ec682a42f 100644 --- a/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportQueryObject.ps1 +++ b/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportQueryObject.ps1 @@ -80,6 +80,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -107,6 +110,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/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceGroupObject.ps1 b/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceGroupObject.ps1 index fbf37d893f57..14f6cb549428 100644 --- a/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceGroupObject.ps1 +++ b/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceGroupObject.ps1 @@ -71,6 +71,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -98,6 +101,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/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceObject.ps1 b/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceObject.ps1 index cf0ddeacde1e..4c6b6f2ba5ee 100644 --- a/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceObject.ps1 +++ b/generated/Terraform/Terraform.Autorest/exports/New-AzTerraformExportResourceObject.ps1 @@ -87,6 +87,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -114,6 +117,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/Terraform/Terraform.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Terraform/Terraform.Autorest/exports/ProxyCmdletDefinitions.ps1 index 44c368093888..ae22c11009f0 100644 --- a/generated/Terraform/Terraform.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Terraform/Terraform.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -142,6 +142,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -165,8 +173,6 @@ begin { ExportViaJsonString = 'Az.Terraform.private\Export-AzTerraform_ExportViaJsonString'; } if (('Export', 'ExportViaJsonFilePath', 'ExportViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -180,6 +186,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) @@ -289,6 +298,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -316,6 +328,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) @@ -416,6 +431,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -443,6 +461,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) @@ -559,6 +580,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Terraform.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() } @@ -586,6 +610,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/Terraform/Terraform.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Terraform/Terraform.Autorest/generated/api/Models/ErrorResponse.cs index d29ea197e80a..aa20b48142ac 100644 --- a/generated/Terraform/Terraform.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Terraform/Terraform.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Terraform.Origin(Microsoft.Azure.PowerShell.Cmdlets.Terraform.PropertyOrigin.Inlined)] diff --git a/generated/Terraform/Terraform.Autorest/generated/api/Models/Operation.cs b/generated/Terraform/Terraform.Autorest/generated/api/Models/Operation.cs index 35060c3a4b2b..2aa79a13cc71 100644 --- a/generated/Terraform/Terraform.Autorest/generated/api/Models/Operation.cs +++ b/generated/Terraform/Terraform.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Terraform/Terraform.Autorest/generated/api/Models/OperationStatus.cs b/generated/Terraform/Terraform.Autorest/generated/api/Models/OperationStatus.cs index a1041753c65b..f881d4cd1dea 100644 --- a/generated/Terraform/Terraform.Autorest/generated/api/Models/OperationStatus.cs +++ b/generated/Terraform/Terraform.Autorest/generated/api/Models/OperationStatus.cs @@ -59,13 +59,13 @@ public partial class OperationStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for EndTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } @@ -74,7 +74,7 @@ public partial class OperationStatus : Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IExportResult Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ExportResult()); set { {_property = value;} } } @@ -86,7 +86,7 @@ public partial class OperationStatus : global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Terraform/Terraform.Autorest/generated/api/Terraform.cs b/generated/Terraform/Terraform.Autorest/generated/api/Terraform.cs index cf703fc8a8b6..7d3af7c09249 100644 --- a/generated/Terraform/Terraform.Autorest/generated/api/Terraform.cs +++ b/generated/Terraform/Terraform.Autorest/generated/api/Terraform.cs @@ -305,13 +305,13 @@ public partial class Terraform 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.Terraform.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Terraform.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Terraform.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -460,13 +460,13 @@ public partial class Terraform 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.Terraform.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Terraform.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Terraform.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 _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); diff --git a/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_Export.cs b/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_Export.cs index 9cc5805d17e1..73d48df75d4a 100644 --- a/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_Export.cs +++ b/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_Export.cs @@ -41,15 +41,6 @@ public partial class ExportAzTerraform_Export : 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.Terraform.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Terraform.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Terraform.Cmdlets.ExportAzTerraform_Ex /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Terraform.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,24 +537,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatus 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/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonFilePath.cs b/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonFilePath.cs index 8e2ec8b190ac..ac623a66141f 100644 --- a/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonFilePath.cs +++ b/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class ExportAzTerraform_ExportViaJsonFilePath : 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.Terraform.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Terraform.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Terraform.Cmdlets.ExportAzTerraform_Ex /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Terraform.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,24 +539,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatus 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/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonString.cs b/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonString.cs index 0e45089c67a9..92dae9a5d62f 100644 --- a/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonString.cs +++ b/generated/Terraform/Terraform.Autorest/generated/cmdlets/ExportAzTerraform_ExportViaJsonString.cs @@ -42,15 +42,6 @@ public partial class ExportAzTerraform_ExportViaJsonString : 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.Terraform.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Terraform.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Terraform.Cmdlets.ExportAzTerraform_Ex /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Terraform.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,24 +537,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.IOperationStatus 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/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 8dea5eafb319..959dc1af670b 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -149,8 +149,7 @@ protected override void ProcessRecord() else { var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().ToPsList(); - if (!String.IsNullOrEmpty(aliasesList)) - { + if (!String.IsNullOrEmpty(aliasesList)) { sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); } } diff --git a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs deleted file mode 100644 index dc9eb04de6f3..000000000000 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs +++ /dev/null @@ -1,75 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Text; - -namespace Microsoft.Azure.PowerShell.Cmdlets.Terraform.Runtime.PowerShell -{ - [Cmdlet("New", "AssemblyInfo")] - [DoNotExport] - public class NewAssemblyInfo : PSCmdlet - { - private readonly string assemblyInfoPath = Path.Combine(".", "Properties", "AssemblyInfo.cs"); - private const string assemblyName = "Terraform"; - private const string assemblyVersion = "0.1.0"; - private const string assemblyCompanyName = ""; - private const string assemblyProduct = ""; - private const string assemblyCopyright = ""; - protected override void ProcessRecord() - { - try - { - if (File.Exists(assemblyInfoPath)) - { - return; - } - StringBuilder sb = new StringBuilder(); - sb.AppendLine(@" -# ---------------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------------- -"); - sb.Append($"{Environment.NewLine}"); - sb.AppendLine("using System;"); - sb.AppendLine("using System.Reflection;"); - sb.AppendLine("using System.Runtime.InteropServices;"); - sb.Append($"{Environment.NewLine}"); - sb.AppendLine($"[assembly: AssemblyTitle(\"Microsoft Azure Powershell - {assemblyName}\")]"); - sb.AppendLine($"[assembly: AssemblyCompany(\"{assemblyCompanyName}\")]"); - sb.AppendLine($"[assembly: AssemblyProduct(\"{assemblyProduct}\")]"); - sb.AppendLine($"[assembly: AssemblyCopyright(\"{assemblyCopyright}\")]"); - sb.Append($"{Environment.NewLine}"); - sb.AppendLine("[assembly: ComVisible(false)]"); - sb.AppendLine("[assembly: CLSCompliant(false)]"); - sb.AppendLine($"[assembly: Guid(\"{Guid.NewGuid()}\")]"); - sb.AppendLine($"[assembly: AssemblyVersion(\"{assemblyVersion}\")]"); - sb.Append($"[assembly: AssemblyFileVersion(\"{assemblyVersion}\")]"); - - FileInfo assemblyInfo = new FileInfo(assemblyInfoPath); - assemblyInfo.Directory.Create(); - File.WriteAllText(assemblyInfo.FullName, sb.ToString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} \ No newline at end of file diff --git a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index f75512697c33..c83b16fca9c4 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Terraform/Terraform.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/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index db5cdbcfb0d5..f8e1ec732cc7 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Terraform.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.Terraform.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.Terraform.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/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index e8da3db069b1..dc8a3487f9df 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Terraform/Terraform.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/Terraform/Terraform.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 26bb506b7749..7eccf99b79cf 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Terraform/Terraform.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/Terraform/Terraform.Autorest/generated/runtime/Context.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/Context.cs index 3f73d6736567..0472dccd0f47 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/Context.cs +++ b/generated/Terraform/Terraform.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Terraform.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/Terraform/Terraform.Autorest/generated/runtime/MessageAttribute.cs b/generated/Terraform/Terraform.Autorest/generated/runtime/MessageAttribute.cs index f6ea77e5cdc2..a223d6ca2de9 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Terraform/Terraform.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Terraform.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.Terraform" : @""; + //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/Terraform/Terraform.Autorest/generated/runtime/Properties/Resources.resx b/generated/Terraform/Terraform.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Terraform/Terraform.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Terraform/Terraform.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/SpringCloud/SpringCloud.Autorest/resources/README.md b/generated/Terraform/Terraform.Autorest/resources/README.md similarity index 100% rename from src/SpringCloud/SpringCloud.Autorest/resources/README.md rename to generated/Terraform/Terraform.Autorest/resources/README.md diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningAccount.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningAccount.ps1 index ebd87180bfde..9213cdf86dae 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningAccount.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningAccount.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/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningCertificateProfile.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningCertificateProfile.ps1 index 4affeb5fe6c5..c5d8a16e5a4b 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningCertificateProfile.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Get-AzTrustedSigningCertificateProfile.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/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningAccount.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningAccount.ps1 index 46f32ab010fc..153389f1fdc9 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningAccount.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningAccount.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a trusted Signing Account. +Create a trusted Signing Account. .Description -create a trusted Signing Account. +Create a trusted Signing Account. .Example New-AzTrustedSigningAccount -AccountName test -ResourceGroupName rg-test -Location eastus -SkuName Basic .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/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningCertificateProfile.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningCertificateProfile.ps1 index 72a875dc21ea..55c3d9a31304 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningCertificateProfile.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/New-AzTrustedSigningCertificateProfile.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a certificate profile. +Create a certificate profile. .Description -create a certificate profile. +Create a certificate profile. .Example New-AzTrustedSigningCertificateProfile -AccountName test -ResourceGroupName rg-test -ProfileName test -IdentityValidationId 5ab4583e-d027-4998-9d65-a2e88981829f -ProfileType PublicTrustTest @@ -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/TrustedSigning/TrustedSigning.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/ProxyCmdletDefinitions.ps1 index 4f24b74a77cc..617a65c24809 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/TrustedSigning/TrustedSigning.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) { @@ -370,8 +369,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -459,9 +457,9 @@ end { <# .Synopsis -create a trusted Signing Account. +Create a trusted Signing Account. .Description -create a trusted Signing Account. +Create a trusted Signing Account. .Example New-AzTrustedSigningAccount -AccountName test -ResourceGroupName rg-test -Location eastus -SkuName Basic .Example @@ -603,8 +601,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -691,9 +688,9 @@ end { <# .Synopsis -create a certificate profile. +Create a certificate profile. .Description -create a certificate profile. +Create a certificate profile. .Example New-AzTrustedSigningCertificateProfile -AccountName test -ResourceGroupName rg-test -ProfileName test -IdentityValidationId 5ab4583e-d027-4998-9d65-a2e88981829f -ProfileType PublicTrustTest @@ -865,8 +862,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1088,8 +1084,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1330,8 +1325,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1538,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) { @@ -1627,9 +1620,9 @@ end { <# .Synopsis -update a trusted signing account. +Update a trusted signing account. .Description -update a trusted signing account. +Update a trusted signing account. .Example Update-AzTrustedSigningAccount -AccountName test -ResourceGroupName rg-test -SkuName Premium .Example @@ -1792,8 +1785,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningAccount.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningAccount.ps1 index aa2f21643629..1ab70d70456d 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningAccount.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningAccount.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/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningCertificateProfile.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningCertificateProfile.ps1 index 8baef30e2f6c..c5afa44e832a 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningCertificateProfile.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Remove-AzTrustedSigningCertificateProfile.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/TrustedSigning/TrustedSigning.Autorest/exports/Test-AzTrustedSigningAccountNameAvailability.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Test-AzTrustedSigningAccountNameAvailability.ps1 index 49c018e4c75a..cec0a55324eb 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Test-AzTrustedSigningAccountNameAvailability.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Test-AzTrustedSigningAccountNameAvailability.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/TrustedSigning/TrustedSigning.Autorest/exports/Update-AzTrustedSigningAccount.ps1 b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Update-AzTrustedSigningAccount.ps1 index 644b26a64e67..efb71c82723a 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/exports/Update-AzTrustedSigningAccount.ps1 +++ b/generated/TrustedSigning/TrustedSigning.Autorest/exports/Update-AzTrustedSigningAccount.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a trusted signing account. +Update a trusted signing account. .Description -update a trusted signing account. +Update a trusted signing account. .Example Update-AzTrustedSigningAccount -AccountName test -ResourceGroupName rg-test -SkuName Premium .Example @@ -181,8 +181,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Certificate.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Certificate.cs index 706675f55cfd..a22bb497b715 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Certificate.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Certificate.cs @@ -38,7 +38,7 @@ public partial class Certificate : Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IRevocation Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateInternal.Revocation { get => (this._revocation = this._revocation ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.Revocation()); set { {_revocation = value;} } } /// Internal Acessors for RevocationStatus - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateInternal.RevocationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IRevocationInternal)Revocation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IRevocationInternal)Revocation).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateInternal.RevocationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IRevocationInternal)Revocation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IRevocationInternal)Revocation).Status = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IRevocation _revocation; diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CertificateProfile.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CertificateProfile.cs index 4b5f8a670079..5249acb3e6ad 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CertificateProfile.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CertificateProfile.cs @@ -60,28 +60,46 @@ public partial class CertificateProfile : public bool? IncludeStreetAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).IncludeStreetAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).IncludeStreetAddress = value ?? default(bool); } /// Internal Acessors for Certificate - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.Certificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Certificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Certificate = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.Certificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Certificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Certificate = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileProperties Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CertificateProfileProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfileInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfilePropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] @@ -114,31 +132,31 @@ public partial class CertificateProfile : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccount.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccount.cs index f6b21c25e17e..c84d656790b6 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccount.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccount.cs @@ -31,31 +31,49 @@ public partial class CodeSigningAccount : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AccountUri - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.AccountUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).AccountUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).AccountUri = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.AccountUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).AccountUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).AccountUri = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountProperties Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CodeSigningAccountProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IAccountSku Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).Sku = value; } + Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IAccountSku Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPropertiesInternal)Property).Sku = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] @@ -84,31 +102,31 @@ public partial class CodeSigningAccount : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccountPatch.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccountPatch.cs index 9428bd516689..7f12f87f9243 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccountPatch.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/CodeSigningAccountPatch.cs @@ -17,7 +17,7 @@ public partial class CodeSigningAccountPatch : Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchProperties Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CodeSigningAccountPatchProperties()); set { {_property = value;} } } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IAccountSkuPatch Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchPropertiesInternal)Property).Sku = value; } + Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IAccountSkuPatch Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchPropertiesInternal)Property).Sku = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatchProperties _property; diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ErrorResponse.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ErrorResponse.cs index 6787948795a6..fc9bfd74a892 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Operation.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Operation.cs index 7e1b157172af..696044be2dba 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Operation.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ProxyResource.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ProxyResource.cs index 2eaa106d20b1..7aefaed92f32 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Resource.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Resource.cs index 681e52fda00c..6ee02c1332f8 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Resource.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/TrackedResource.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/TrackedResource.cs index 5ed9e3d8c757..73bb36b85b85 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/TrustedSigning/TrustedSigning.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.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Origin(Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateExpanded.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateExpanded.cs index 15347b79d7b2..025d9cbc71b9 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateExpanded.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzTrustedSigningAccount_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; - /// Trusted signing account resource. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccount _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CodeSigningAccount(); - /// - /// 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 _accountName; @@ -284,11 +275,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.NewAzTrustedSig /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonFilePath.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonFilePath.cs index b07cca762a08..f1c59833d19a 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonFilePath.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzTrustedSigningAccount_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; - /// Backing field for property. private string _accountName; @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.NewAzTrustedSig /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonString.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonString.cs index 9e590db7251b..f8bded30f30a 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonString.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningAccount_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzTrustedSigningAccount_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; - /// Backing field for property. private string _accountName; @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.NewAzTrustedSig /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateExpanded.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateExpanded.cs index 2eb08a510e19..c43ac9de474f 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateExpanded.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzTrustedSigningCertificateProfile_CreateExpanded : 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; - /// Certificate profile resource. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfile _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CertificateProfile(); - /// - /// 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 _accountName; @@ -348,11 +339,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.NewAzTrustedSig /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -668,24 +654,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfile 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonFilePath.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonFilePath.cs index a1e8a59a643b..c8fb2c6b8846 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonFilePath.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzTrustedSigningCertificateProfile_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; - /// Backing field for property. private string _accountName; @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.NewAzTrustedSig /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICertificateProfile 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonString.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonString.cs index 398b5293ba38..84c1a5433452 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonString.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/NewAzTrustedSigningCertificateProfile_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzTrustedSigningCertificateProfile_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; - /// Backing field for property. private string _accountName; @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.NewAzTrustedSig /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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.TrustedSigning.Models.ICertificateProfile 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_Delete.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_Delete.cs index 53bb7f90a83e..e162e5d29e3d 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_Delete.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzTrustedSigningAccount_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; - /// Backing field for property. private string _accountName; @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.RemoveAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_DeleteViaIdentity.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_DeleteViaIdentity.cs index 7a807dd57004..689b12da64d8 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_DeleteViaIdentity.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningAccount_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzTrustedSigningAccount_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.TrustedSigning.Category(global::Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.RemoveAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_Delete.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_Delete.cs index 98c5e3f58429..930681678b4f 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_Delete.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzTrustedSigningCertificateProfile_Delete : 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; - /// Backing field for property. private string _accountName; @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.RemoveAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,7 +577,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -615,7 +601,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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentity.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentity.cs index 219dae561309..0b5eec6b9ff2 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentity.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzTrustedSigningCertificateProfile_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.TrustedSigning.Category(global::Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.RemoveAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentityCodeSigningAccount.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentityCodeSigningAccount.cs index cdf7b61a6d41..580f85fd4d74 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentityCodeSigningAccount.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentityCodeSigningAccount.cs @@ -40,15 +40,6 @@ public partial class RemoveAzTrustedSigningCertificateProfile_DeleteViaIdentityC /// 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.TrustedSigning.Category(global::Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.RemoveAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateExpanded.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateExpanded.cs index f097e7f48535..16e498cd62e8 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateExpanded.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzTrustedSigningAccount_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; - /// Parameters for creating or updating a trusted signing account. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatch _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CodeSigningAccountPatch(); - /// - /// 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 _accountName; @@ -273,11 +264,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.UpdateAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,24 +579,7 @@ public UpdateAzTrustedSigningAccount_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaIdentityExpanded.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaIdentityExpanded.cs index 6e97493c1952..e64bc236104b 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaIdentityExpanded.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzTrustedSigningAccount_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; - /// Parameters for creating or updating a trusted signing account. private Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccountPatch _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.CodeSigningAccountPatch(); - /// - /// 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.TrustedSigning.Category(global::Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.UpdateAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,24 +557,7 @@ public UpdateAzTrustedSigningAccount_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonFilePath.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonFilePath.cs index d8a4275f6b1b..70d8bd8eb95c 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonFilePath.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzTrustedSigningAccount_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; - /// Backing field for property. private string _accountName; @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.UpdateAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzTrustedSigningAccount_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonString.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonString.cs index 278ff02a17e2..c2c2c93e599d 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonString.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/cmdlets/UpdateAzTrustedSigningAccount_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzTrustedSigningAccount_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; - /// Backing field for property. private string _accountName; @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Cmdlets.UpdateAzTrusted /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ public UpdateAzTrustedSigningAccount_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.Models.ICodeSigningAccount 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/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 50755b5190d0..26df521d6589 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/TrustedSigning/TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index c0d322429bfb..9c0974b5920f 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/TrustedSigning/TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index c835fd15531d..5381ac104fed 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/TrustedSigning/TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Context.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Context.cs index 066213c0bb8c..6ef33294b9bf 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Context.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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/TrustedSigning/TrustedSigning.Autorest/generated/runtime/MessageAttribute.cs b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/MessageAttribute.cs index d09148fd8dbd..196fac9283cc 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.TrustedSigning.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.TrustedSigning" : @""; + //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/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Properties/Resources.resx b/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/TrustedSigning/TrustedSigning.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/TrustedSigning/TrustedSigning.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/VMware/VMware.Autorest/Properties/AssemblyInfo.cs b/generated/VMware/VMware.Autorest/Properties/AssemblyInfo.cs index da07cbac2ae6..c728c035de4a 100644 --- a/generated/VMware/VMware.Autorest/Properties/AssemblyInfo.cs +++ b/generated/VMware/VMware.Autorest/Properties/AssemblyInfo.cs @@ -23,4 +23,4 @@ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.7.2")] [assembly: System.Reflection.AssemblyVersionAttribute("0.7.2")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file +[assembly: System.CLSCompliantAttribute(false)] diff --git a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 index 7499d0569ba1..616fd93a191b 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.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/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 index e037ba867585..5fdf05d35a8e 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 @@ -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/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 index cbb7d1305444..5c98dc49f53d 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 @@ -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/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 index ae2ff4783088..bef4638d66f3 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 @@ -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/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 index db39db6f114b..438a436d8de3 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.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/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 index 4c6de31f53a9..bcb4b4f73991 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.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/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 index 23a9efebaf9a..45cec0614be1 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 @@ -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/VMware/VMware.Autorest/exports/Get-AzVMwareHost.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareHost.ps1 index c45b6a1606f1..e689cffb29a6 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareHost.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareHost.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/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 index 5b9159bf4736..4a864d019a1e 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.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/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 index 8ceb48efccd6..0c96c9bccfbc 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.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/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 index e9b086714e09..e03a36181018 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.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/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 index 785376145192..b2e76bb5ff27 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.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/VMware/VMware.Autorest/exports/Get-AzVMwareProvisionedNetwork.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareProvisionedNetwork.ps1 index a8c389e4f9df..b161c915aeb1 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareProvisionedNetwork.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareProvisionedNetwork.ps1 @@ -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/VMware/VMware.Autorest/exports/Get-AzVMwarePureStoragePolicy.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePureStoragePolicy.ps1 index 3ea148be398b..c61ca0c59ab7 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePureStoragePolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwarePureStoragePolicy.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/VMware/VMware.Autorest/exports/Get-AzVMwareSku.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareSku.ps1 index 90d69ff3ae64..0c36fca0ace2 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareSku.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareSku.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 index 198b903b79a2..bb8ee186e73d 100644 --- a/generated/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.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/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 index 56c81489e4b0..f3c0b2a56644 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareAddon.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/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 index 58641e3012a0..7e61ce71486a 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.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/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 index 2548832f5c64..ced10688fc5c 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.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/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 index 6525ed514664..e4201465d220 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 @@ -267,8 +267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 index aa9c45a73529..5419881a4d4a 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 @@ -299,8 +299,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 index 359cb2f81128..46f5d0b61b4b 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.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/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 index 52eda62da948..a2a1ed420312 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.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/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 index 96c278f43b97..bfe41d53ad6d 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 @@ -271,8 +271,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 index cb45a56630e7..f749188c2e94 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.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/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 index 65fce6ebd1b8..606cb319fc17 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.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/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 index 997305be8dbe..8a96cc888b23 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.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/VMware/VMware.Autorest/exports/New-AzVMwarePureStoragePolicy.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePureStoragePolicy.ps1 index d5bfe45d5619..3c774c651550 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePureStoragePolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePureStoragePolicy.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/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 index 61fa6bbf64e4..1c6de4e1f9f0 100644 --- a/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -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) { @@ -483,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) { @@ -676,8 +674,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -951,8 +948,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1274,8 +1270,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1553,8 +1548,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1876,8 +1870,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2109,8 +2102,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2431,8 +2423,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2619,8 +2610,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2853,8 +2843,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3131,8 +3120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3408,8 +3396,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3582,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) { @@ -3902,8 +3888,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +4179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4484,8 +4468,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4823,8 +4806,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5194,8 +5176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5497,8 +5478,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5743,8 +5723,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6085,8 +6064,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6332,8 +6310,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6577,8 +6554,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6871,8 +6847,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7165,8 +7140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7459,8 +7433,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7753,8 +7726,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8089,8 +8061,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8384,8 +8355,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8632,8 +8602,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8969,8 +8938,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9259,8 +9227,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9438,8 +9405,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9651,8 +9617,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9939,8 +9904,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10229,8 +10193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10564,8 +10527,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10935,8 +10897,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11238,8 +11199,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11478,8 +11438,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11842,8 +11801,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12247,8 +12205,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12541,8 +12498,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12780,8 +12736,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12991,8 +12946,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13555,8 +13509,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14435,8 +14388,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14684,8 +14636,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 index 8f0a9b675506..72f953f7b3d1 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.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/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 index 38c4a7e01afb..a62bd8fd217d 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.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/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 index 45dfdab9ac03..94cdbac9c72f 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.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/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 index e3a6f98a2987..f4d14111f55b 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.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/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 index 73a3d58211c2..39e955d52922 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 @@ -264,8 +264,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 index 57b545726038..ae06c0e8e434 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.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/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 index e0c585eac080..b267be9cab1f 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.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/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 index 8850ee14632e..5e48a0357c10 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 @@ -266,8 +266,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 index ad895459c282..5286346bb309 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.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/VMware/VMware.Autorest/exports/Remove-AzVMwarePureStoragePolicy.ps1 b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePureStoragePolicy.ps1 index d17ecc1134a4..5ee9920756be 100644 --- a/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePureStoragePolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Remove-AzVMwarePureStoragePolicy.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/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 b/generated/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 index 703f1ff501f7..1d187413b745 100644 --- a/generated/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.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/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 b/generated/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 index 9a6d337385ae..cc8bd261ec05 100644 --- a/generated/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.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/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 index 03c86898bf11..6f14928d25c3 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.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/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 index 6bc5fdcd93fd..d86737e914ca 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.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/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 index 01bb1c1f9c72..322860c0f665 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.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/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 index 31195d46eb43..55c4499fec87 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 @@ -299,8 +299,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 index ff23c6ac89db..9f15e79e3adb 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.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/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 index 3710e93170df..44c3b75e9ccd 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.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/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 index 313fac2f4352..8dbd48e95065 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.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/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 index 67f66394a723..79c8fe0e50f9 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 @@ -332,8 +332,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePureStoragePolicy.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePureStoragePolicy.ps1 index 31e558123a1f..3f0ec3e52756 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePureStoragePolicy.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePureStoragePolicy.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/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs index 3dc329db6315..2d6bc319c7c1 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs @@ -41,15 +41,6 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictExpanded : 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; - /// Set VM DRS-driven movement to restricted (enabled) or not (disabled) private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineRestrictMovement _restrictMovementBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement(); @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.LockAzVMwareVirtualMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,7 +599,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/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs index 45dbef945cb7..7068fce76d85 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs @@ -41,15 +41,6 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClust /// 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; - /// Set VM DRS-driven movement to restricted (enabled) or not (disabled) private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineRestrictMovement _restrictMovementBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement(); @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.LockAzVMwareVirtualMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -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/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs index b0377ac45249..3cc9f380bc37 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpan /// 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; - /// Set VM DRS-driven movement to restricted (enabled) or not (disabled) private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineRestrictMovement _restrictMovementBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement(); @@ -227,11 +218,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.LockAzVMwareVirtualMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -572,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/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs index 437c8b1cb54b..61eb5c3ec1c4 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPriva /// 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; - /// Set VM DRS-driven movement to restricted (enabled) or not (disabled) private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineRestrictMovement _restrictMovementBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement(); @@ -257,11 +248,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.LockAzVMwareVirtualMach /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,7 +581,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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs index 2ef8fca7e6c6..c25b5d1aeac6 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzVMwareAddon_CreateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareAddon_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IAddon 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs index ea6594a8865a..69fe3602a24b 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzVMwareAddon_CreateViaIdentityExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareAddon_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IAddon 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs index 6112c1ca43e0..1693c52d521e 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareAddon_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IAddon 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs index 202378a20753..89e10044860c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareAuthorization_CreateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareAuthorizatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IExpressRouteAuthorization 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs index dc443112f69a..d0a694729f7f 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareAuthorization_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareAuthorizatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IExpressRouteAuthorization 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs index 929184cc435e..7508d883c907 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpan /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareAuthorizatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IExpressRouteAuthorization 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs index 61d7abe4f40f..cac022fbacac 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareCloudLink_CreateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareCloudLink_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.VMware.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.VMware.Models.ICloudLink 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs index 117dbc297f65..d6382b54776b 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareCloudLink_CreateViaIdentityExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareCloudLink_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.VMware.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.VMware.Models.ICloudLink 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs index a0a3fac8a807..7d1a1bca7ab4 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareCloudLink_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.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs index a837a63998c5..02f7b75362fd 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareCluster_CreateExpanded : 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; - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -365,11 +356,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareCluster_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -685,24 +671,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs index e66eeb9e8a3f..f4603cc56fa4 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareCluster_CreateViaIdentityExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareCluster_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -651,24 +637,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs index 069104c0aa5f..cc332c181ecb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded : /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -325,11 +316,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareCluster_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -666,24 +652,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs index cff049a371ec..30a96c4d5c12 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareDatastore_CreateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -360,11 +351,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareDatastore_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.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -680,24 +666,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs index 9f3cf177d91c..085d6e25e1e8 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityClusterExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -303,11 +294,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareDatastore_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.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -648,24 +634,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs index c92b2ef89003..4882aafa57c9 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareDatastore_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.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs index b4a8565ac8f6..bcf2d211e546 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -320,11 +311,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareDatastore_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.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -661,24 +647,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs index 2346dfac0519..aa7e5c993fd3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : 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 global reach connection resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection _globalReachConnectionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnection(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareGlobalReachC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -624,24 +610,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs index 590db4fee997..27e77406585c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwareGlobalReachConnection_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 global reach connection resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection _globalReachConnectionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnection(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareGlobalReachC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,24 +578,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs index 357a4e54e54e..3abc462d54bc 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCl /// 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 global reach connection resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection _globalReachConnectionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnection(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareGlobalReachC /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs index 0647e945cf6c..a18442e706d5 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwareIscsiPath_CreateExpanded : 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; - /// An iSCSI path resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareIscsiPath_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.VMware.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.VMware.Models.IIscsiPath 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs index 2bac21be2367..c4228fdd2fd3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwareIscsiPath_CreateViaIdentityExpanded : 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; - /// An iSCSI path resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareIscsiPath_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.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,24 +544,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs index 38d9bf341974..724cc0055592 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePlacementPolicy_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; - /// A vSphere Distributed Resource Scheduler (DRS) placement policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy _placementPolicyBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePlacementPol /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs index 236e2864167c..5692e17cde8f 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded /// 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 vSphere Distributed Resource Scheduler (DRS) placement policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy _placementPolicyBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePlacementPol /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs index 4d48aed343dd..e60fb5b05d79 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded : 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; - /// A vSphere Distributed Resource Scheduler (DRS) placement policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy _placementPolicyBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePlacementPol /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,24 +552,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs index 8d6fb2a08f63..08e3771cc4fc 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExp /// 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 vSphere Distributed Resource Scheduler (DRS) placement policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy _placementPolicyBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePlacementPol /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs index 23950722f3be..f9889ef83659 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs @@ -40,15 +40,6 @@ public partial class NewAzVMwarePrivateCloudNsxtPassword_Rotate : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePrivateCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs index 3b0df4518cc5..4a5559cf56f3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs @@ -40,15 +40,6 @@ public partial class NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePrivateCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs index 325c3abc18b7..70a8c5661eee 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs @@ -40,15 +40,6 @@ public partial class NewAzVMwarePrivateCloudVcenterPassword_Rotate : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePrivateCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs index bd122957f162..655728448258 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs @@ -40,15 +40,6 @@ public partial class NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity : /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePrivateCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs index d69d0a436c72..589f8be29148 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzVMwarePrivateCloud_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 private cloud resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud _privateCloudBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloud(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -567,11 +558,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePrivateCloud /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -887,24 +873,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateExpanded.cs index c29126088ae0..3555c2faa1b3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePureStoragePolicy_CreateExpanded : 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; - /// An instance describing a Pure Storage Policy Based Management policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PureStoragePolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePureStorageP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityExpanded.cs index 8c791fef94b1..9a0ee233f5c8 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePureStoragePolicy_CreateViaIdentityExpanded : 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; - /// An instance describing a Pure Storage Policy Based Management policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PureStoragePolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePureStorageP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IPureStoragePolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityPrivateCloudExpanded.cs index f2b0d2cd0717..e387e6a0321c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePureStoragePolicy_CreateViaIdentityPrivateCloudExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVMwarePureStoragePolicy_CreateViaIdentityPrivateCloudE /// 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; - /// An instance describing a Pure Storage Policy Based Management policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PureStoragePolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwarePureStorageP /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs index 353a78fd04d5..3fe0c22a1eb1 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareScriptExecution_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; - - /// - /// 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; - /// An instance of a script executed by a user - custom or AVS private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution _scriptExecutionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecution(); @@ -362,11 +353,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareScriptExecut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -682,24 +668,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs index 94de22f10edf..222b3100ec9e 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareScriptExecution_CreateViaIdentityExpanded : 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; - - /// - /// 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; - /// An instance of a script executed by a user - custom or AVS private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution _scriptExecutionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecution(); @@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareScriptExecut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -648,24 +634,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs index fbe3149a476a..028b644bcbd5 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExp /// 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; - /// An instance of a script executed by a user - custom or AVS private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution _scriptExecutionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecution(); @@ -322,11 +313,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareScriptExecut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -664,24 +650,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs index bff9479241a6..2bb9b91604e8 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDhcp_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; - - /// - /// 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; - /// NSX DHCP private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs index 35ea9d765475..a7ca6fd55d64 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDhcp_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; - /// NSX DHCP private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs index dde1e2251aef..cf00b1eb22b0 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateClou /// 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; - /// NSX DHCP private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IWorkloadNetworkDhcp 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs index 2e1b59a17d91..20e32c08b287 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDnsService_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; - - /// - /// 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; - /// NSX DNS Service private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -653,24 +639,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs index d604bf45071d..0145f5a9b5e4 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDnsService_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; - - /// - /// 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; - /// NSX DNS Service private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs index a973d0cbff28..5ab181cb829d 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPriva /// 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; - /// NSX DNS Service private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs index d8ada83c1ca3..2a714aa2c341 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_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; - - /// - /// 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; - /// NSX DNS Zone private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -653,24 +639,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs index 8d30ac2c1026..887e1a9a7383 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_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; - /// NSX DNS Zone private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -622,24 +608,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs index 77e093dd7eaf..181a14d54c56 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateC /// 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; - /// NSX DNS Zone private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs index 6017d0c76c44..af34c2605d21 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded : 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; - /// NSX Port Mirroring private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs index 5ff36b02aa99..dbb95260ecf4 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityEx /// 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; - /// NSX Port Mirroring private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IWorkloadNetworkPortMirroring 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs index 88fad664490a..43264ec0f256 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPr /// 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; - /// NSX Port Mirroring private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs index b0febaf2d3e0..d6a0ba0d6a73 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkPublicIP_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; - - /// - /// 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; - /// NSX Public IP Block private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP _workloadNetworkPublicIPBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIP(); @@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,24 +593,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs index ec56a5461c1d..9088e863ba68 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpande /// 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; - /// NSX Public IP Block private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP _workloadNetworkPublicIPBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIP(); @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IWorkloadNetworkPublicIP 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs index ef4d920796a4..123fbbb22b6c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivate /// 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; - /// NSX Public IP Block private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP _workloadNetworkPublicIPBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIP(); @@ -247,11 +238,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IWorkloadNetworkPublicIP 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs index 36ace85fe3ee..52e67193013b 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkSegment_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; - - /// - /// 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; - /// NSX Segment private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs index 738b6053c864..eb7e5611798c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkSegment_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; - /// NSX Segment private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -610,24 +596,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs index 98aae39505a7..0016c901ccf0 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateC /// 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; - /// NSX Segment private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs index 0117059640fb..8d7cd4cf9562 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkVMGroup_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; - - /// - /// 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; - /// NSX VM Group private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs index 9c46650d7241..95e03618990e 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkVMGroup_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; - /// NSX VM Group private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup 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/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs index 24abdc1ee7eb..910b61ce13ef 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateC /// 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; - /// NSX VM Group private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareWorkloadNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Models.IWorkloadNetworkVMGroup 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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs index fdbfdd5e9604..dce033acaabe 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareAddon_Delete : global::System.Management.Auto /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareAddon_Del /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs index 0504f4267a76..5a7a515d403f 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareAddon_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareAddon_Del /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs index 74df9bc15ca1..a5fc04f54e09 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareAddon_Del /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -572,7 +558,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -596,7 +582,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs index 8b23cbab628d..082e14ce2100 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareAuthorization_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareAuthoriza /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs index 503c9a4b5ddd..9d2802ee83d2 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareAuthorization_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareAuthoriza /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs index 515289566fae..9e527e32858d 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud : /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareAuthoriza /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs index 71d5511c483e..cefe664e4d2c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareCloudLink_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareCloudLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs index 715599cec911..3c0bfac88812 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareCloudLink_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareCloudLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs index 90646a1a45ff..a8d17b131df7 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareCloudLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs index 6f036f19732b..3bf816cc7fd0 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareCluster_Delete : global::System.Management.Au /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareCluster_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs index 49922d092af7..868eacf9f93a 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareCluster_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareCluster_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs index 14007b284c9d..fac6871dc7e8 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareCluster_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs index 631da3993b64..aa8e068ad412 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareDatastore_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,7 +593,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -631,7 +617,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs index d624dcfdc965..4ec3caafda72 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareDatastore_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,7 +548,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -586,7 +572,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs index 9c88189b637e..f38c9afa0276 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareDatastore_DeleteViaIdentityCluster : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,7 +561,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -599,7 +585,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs index f7b4db543d73..f1c52080b8cb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,7 +572,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -610,7 +596,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs index b6285c95e400..ddd34d2fd401 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareGlobalReachConnection_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareGlobalRea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs index 7e03bc3a8029..10e8e25e74b6 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareGlobalRea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs index 36c60fee9c69..c66b39ca87fe 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivat /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareGlobalRea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs index 44b70aba1cdd..61faf3a35404 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareIscsiPath_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareIscsiPath /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs index 7e3f4860ace8..6ce872a991f8 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwareIscsiPath_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareIscsiPath /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs index 1e319f59ad4a..213c87d54803 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePlacementPolicy_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,7 +593,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -631,7 +617,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs index 05298537aa25..fd60244670b6 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePlacementPolicy_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,7 +548,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -586,7 +572,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs index 423b040f0610..3980b4fb0b4d 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,7 +561,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -599,7 +585,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs index 90f5260ff927..94a21e77b8cc 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -612,7 +598,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs index 43e993b052d7..aa68d5a233f6 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwarePrivateCloud_Delete : 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; - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePrivateCl /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs index f3af66091bec..29e566ef86a9 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwarePrivateCloud_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePrivateCl /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_Delete.cs index 2e83e51ae4c6..cf2d264804de 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePureStoragePolicy_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePureStora /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,7 +577,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -615,7 +601,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentity.cs index c28a103ae9e7..c5c3cec50cb5 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePureStoragePolicy_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePureStora /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentityPrivateCloud.cs index 3076511f2078..5cbef3188feb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePureStoragePolicy_DeleteViaIdentityPrivateCloud.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVMwarePureStoragePolicy_DeleteViaIdentityPrivateClo /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwarePureStora /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs index bba5c9b4ed69..318d6c7d4329 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareScriptExecution_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareScriptExe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs index 423030d2b3f2..e9b9061238aa 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareScriptExecution_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareScriptExe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs index 5409679c7108..c7fb1e86b618 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareScriptExe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs index bf6b47aea930..87a6e3520dd2 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDhcp_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs index ec46107886df..3d2114ac2a63 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs index bddc50423d9b..95b597170a22 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateC /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs index cc679882fe77..237e48d2ceeb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsService_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs index 3fe6e4e42890..8511f2473017 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsService_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +571,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs index 01fb29646bec..bd354c5d1613 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDn /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs index d069aa853cd7..96b9c0f0ea46 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsZone_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs index 7e33e6da3605..92155eeb803b 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs index 0097322410c6..3c5c57152616 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZo /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs index 5365dc4c904c..8ae0c04a5596 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs index 9bf47f350b07..cb33bb71d912 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentit /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +571,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs index 283a8ab03e36..dc1ec089958c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentit /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs index ed209c7601d2..e378104b3554 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkPublicIP_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs index 94042d18573b..baf0225c6de3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs index a29db98fde98..38f95f0b16b2 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPubl /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs index 97bf72e985de..4254191f00a1 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkSegment_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs index 6bc0b5bae8c4..50f6f6918005 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs index 6e82eeea8416..95c01bc99335 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPriva /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs index 595b029cadc8..cdbffb88fc93 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkVMGroup_Delete : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs index ca57d663bc8e..4c0d996e685e 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,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/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs index a75f2efeee10..4524d96f1760 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs @@ -41,15 +41,6 @@ public partial class RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGro /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs index faa04c0638d4..e3bdbb4bde0f 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareAuthorization_UpdateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareAuthoriza /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ private void Update_authorizationBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs index 8cfc16e0500d..eeb42b3d8651 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareAuthoriza /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,24 +560,7 @@ private void Update_authorizationBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs index cf1db0862707..597f21a77731 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudEx /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareAuthoriza /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ private void Update_authorizationBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs index 7006b142bd46..1d1643255108 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareCloudLink_UpdateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareCloudLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ private void Update_cloudLinkBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs index a9673b8a1886..e63a57ac0637 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareCloudLink_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareCloudLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,24 +560,7 @@ private void Update_cloudLinkBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs index 5761dcae21ad..9b41412d12e2 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpand /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareCloudLink /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ private void Update_cloudLinkBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs index a0290a060b0b..69f0239061fc 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareCluster_UpdateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -354,11 +345,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareCluster_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -674,24 +660,7 @@ public UpdateAzVMwareCluster_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs index 047e0e66aa8b..6d240ea7e000 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareCluster_UpdateViaIdentityExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareCluster_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,24 +626,7 @@ public UpdateAzVMwareCluster_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs index c1a9acde060e..b5e8e63c0ca3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -314,11 +305,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareCluster_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -655,24 +641,7 @@ public UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs index e017ca3c66d2..f00d795859ad 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareDatastore_UpdateExpanded : 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -360,11 +351,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -714,24 +700,7 @@ private void Update_datastoreBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs index 838735ee507a..55fbd58042df 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded : /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -305,11 +296,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -686,24 +672,7 @@ private void Update_datastoreBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs index 489982358fc7..7615cbc28be1 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareDatastore_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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -671,24 +657,7 @@ private void Update_datastoreBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs index 5bfa93861444..2ae3a063a529 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpand /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -320,11 +311,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareDatastore /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -698,24 +684,7 @@ private void Update_datastoreBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs index 4d6f17d41424..5861606b1f31 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwareGlobalReachConnection_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; - /// A global reach connection resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection _globalReachConnectionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnection(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareGlobalRea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -642,24 +628,7 @@ private void Update_globalReachConnectionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs index 4313e1f008de..f5e0cf6280f3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpand /// 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 global reach connection resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection _globalReachConnectionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnection(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareGlobalRea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ private void Update_globalReachConnectionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs index d16cde3a1d75..583a827c438c 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivat /// 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 global reach connection resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection _globalReachConnectionBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnection(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareGlobalRea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ private void Update_globalReachConnectionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs index d76efc955263..6572572fb949 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwareIscsiPath_UpdateExpanded : 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; - /// An iSCSI path resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareIscsiPath /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -576,24 +562,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs index 10d105a8f5b0..0603caaa15a3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwareIscsiPath_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; - /// An iSCSI path resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -207,11 +198,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareIscsiPath /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,24 +542,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs index 686f3a84fc73..6801e697d7a6 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePlacementPolicy_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; - /// An update of a DRS placement policy resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate _placementPolicyUpdateBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyUpdate(); - /// - /// 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; - /// vm-host placement policy affinity strength (should/must) [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "vm-host placement policy affinity strength (should/must)")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] @@ -340,11 +331,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -660,24 +646,7 @@ public UpdateAzVMwarePlacementPolicy_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs index dd33e2787a3d..18ea49ca8a25 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpan /// 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; - /// An update of a DRS placement policy resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate _placementPolicyUpdateBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyUpdate(); - /// - /// 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; - /// vm-host placement policy affinity strength (should/must) [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "vm-host placement policy affinity strength (should/must)")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ public UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs index c8cd42f99f40..7a736b591442 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePlacementPolicy_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; - /// An update of a DRS placement policy resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate _placementPolicyUpdateBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyUpdate(); - /// - /// 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; - /// vm-host placement policy affinity strength (should/must) [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "vm-host placement policy affinity strength (should/must)")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ public UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs index 9ea874ffbd80..29ee688a5beb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloud /// 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; - /// An update of a DRS placement policy resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate _placementPolicyUpdateBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyUpdate(); - /// - /// 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; - /// vm-host placement policy affinity strength (should/must) [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "vm-host placement policy affinity strength (should/must)")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePlacement /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -642,24 +628,7 @@ public UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs index 9211a7f33f6b..c81a0ea319f3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : 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 private cloud resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud _privateCloudBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloud(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -510,11 +501,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePrivateCl /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -944,24 +930,7 @@ private void Update_privateCloudBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs index 3a7115981e97..e72aa6712745 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : 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; - /// A private cloud resource private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud _privateCloudBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloud(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -467,11 +458,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePrivateCl /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -924,24 +910,7 @@ private void Update_privateCloudBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateExpanded.cs index fcfb84726f7a..93a641a4febf 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePureStoragePolicy_UpdateExpanded : 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; - /// An instance describing a Pure Storage Policy Based Management policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PureStoragePolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePureStora /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,24 +606,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityExpanded.cs index 794d655f001c..ac92630ed556 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePureStoragePolicy_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; - /// An instance describing a Pure Storage Policy Based Management policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PureStoragePolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePureStora /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,24 +577,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityPrivateCloudExpanded.cs index c442aa9e246e..4ab7fa041dfb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityPrivateCloudExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzVMwarePureStoragePolicy_UpdateViaIdentityPrivateClo /// 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; - /// An instance describing a Pure Storage Policy Based Management policy private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PureStoragePolicy(); - /// - /// 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.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePureStora /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPureStoragePolicy 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs index 98039c5c5a17..85b7168ed38b 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_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; - - /// - /// 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; - /// NSX DHCP private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ public UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs index 2370054e028b..42874d866ecb 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_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; - - /// - /// 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; - /// NSX DHCP private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ public UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs index 7ea5b2f0b5fd..ea89be67d73f 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateC /// 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; - /// NSX DHCP private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ public UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs index 49409f9a00ef..51a37857f969 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_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; - /// NSX DNS Service private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -653,24 +639,7 @@ public UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs index d556f0b5bd1f..5f4b8f533992 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_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; - /// NSX DNS Service private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ public UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs index f5f29ab79357..143a26ebbb1b 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPr /// 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; - /// NSX DNS Service private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ public UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpa // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs index 0c7206414cb7..300f736fe027 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded : 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; - /// NSX DNS Zone private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -653,24 +639,7 @@ public UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs index 1c78872e0370..51dccce77fa1 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpan /// 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; - /// NSX DNS Zone private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ public UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs index dd1481e381d0..7f4e54f854f3 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPriva /// 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; - /// NSX DNS Zone private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ public UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpande // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs index 1d4199b6f657..52ac40df1e89 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_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; - /// NSX Port Mirroring private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); @@ -323,11 +314,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ public UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs index 522b63f3b32e..b871fc51da39 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentit /// 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; - /// NSX Port Mirroring private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ public UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs index 24e2915073e4..5788b0a6da3d 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentit /// 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; - /// NSX Port Mirroring private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ public UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudE // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs index 2a2783e1ad2c..11f4e4d13bf5 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded : 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; - /// NSX Segment private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ public UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs index cb0bbb6600e0..47af6cc25e7e 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpan /// 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; - /// NSX Segment private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ public UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs index b8e7e297cdff..215b7c75b485 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPriva /// 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; - /// NSX Segment private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ public UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpande // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs index 33731c7dffb1..05da226c4381 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded : 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; - /// NSX VM Group private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ public UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs index 1b351df861fc..37ad9b299ec2 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpan /// 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; - /// NSX VM Group private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,24 +575,7 @@ public UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup 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/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs index f4a70c404f19..9c0295b5a2b6 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPriva /// 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; - /// NSX VM Group private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareWorkloadN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ public UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpande // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup 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/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 429844e0662f..7537c5cfd5be 100644 --- a/generated/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/VMware/VMware.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/VMware/VMware.Autorest/generated/runtime/Context.cs b/generated/VMware/VMware.Autorest/generated/runtime/Context.cs index c6517f9d78aa..9dd8d55f8460 100644 --- a/generated/VMware/VMware.Autorest/generated/runtime/Context.cs +++ b/generated/VMware/VMware.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.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/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsGateway.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsGateway.ps1 index d6afbc6f6556..2125f21f15fb 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsGateway.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsGateway.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/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1 index d670d27bb387..dc8ffc9e5ed7 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Get-AzVoiceServicesCommunicationsTestLine.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/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsGateway.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsGateway.ps1 index 9096650f441f..73cb50fcbc0b 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsGateway.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsGateway.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a CommunicationsGateway +Create a CommunicationsGateway .Description -create a CommunicationsGateway +Create a CommunicationsGateway .Example $region = @() $region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast -PrimaryRegionOperatorAddress '198.51.100.1' @@ -34,8 +34,8 @@ 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. SERVICELOCATION : The regions in which to deploy the resources needed for Teams Calling - Name : The name of the region in which the resources needed for Teams Calling will be deployed. PrimaryRegionPropertyOperatorAddress >: IP address to use to contact the operator network from this region + [Name ]: The name of the region in which the resources needed for Teams Calling will be deployed. [PrimaryRegionPropertyAllowedMediaSourceAddressPrefix >]: The allowed source IP address or CIDR ranges for media [PrimaryRegionPropertyAllowedSignalingSourceAddressPrefix >]: The allowed source IP address or CIDR ranges for signaling [PrimaryRegionPropertyEsrpAddress >]: IP address to use to contact the ESRP from this region @@ -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/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsTestLine.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsTestLine.ps1 index 11bf6a50c3e6..9eff49faf79b 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsTestLine.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/New-AzVoiceServicesCommunicationsTestLine.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a TestLine +Create a TestLine .Description -create a TestLine +Create a TestLine .Example New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Location westcentralus -Purpose 'Automated' -PhoneNumber "+1-555-1234" @@ -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/VoiceServices/VoiceServices.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/ProxyCmdletDefinitions.ps1 index b2cab88dca04..84f8f5f11d67 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -382,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) { @@ -471,9 +469,9 @@ end { <# .Synopsis -create a CommunicationsGateway +Create a CommunicationsGateway .Description -create a CommunicationsGateway +Create a CommunicationsGateway .Example $region = @() $region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast -PrimaryRegionOperatorAddress '198.51.100.1' @@ -489,8 +487,8 @@ 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. SERVICELOCATION : The regions in which to deploy the resources needed for Teams Calling - Name : The name of the region in which the resources needed for Teams Calling will be deployed. PrimaryRegionPropertyOperatorAddress >: IP address to use to contact the operator network from this region + [Name ]: The name of the region in which the resources needed for Teams Calling will be deployed. [PrimaryRegionPropertyAllowedMediaSourceAddressPrefix >]: The allowed source IP address or CIDR ranges for media [PrimaryRegionPropertyAllowedSignalingSourceAddressPrefix >]: The allowed source IP address or CIDR ranges for signaling [PrimaryRegionPropertyEsrpAddress >]: IP address to use to contact the ESRP from this region @@ -684,8 +682,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -772,9 +769,9 @@ end { <# .Synopsis -create a TestLine +Create a TestLine .Description -create a TestLine +Create a TestLine .Example New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Location westcentralus -Purpose 'Automated' -PhoneNumber "+1-555-1234" @@ -957,8 +954,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1184,8 +1180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1430,8 +1425,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1632,8 +1626,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1720,9 +1713,9 @@ end { <# .Synopsis -update a CommunicationsGateway +Update a CommunicationsGateway .Description -update a CommunicationsGateway +Update a CommunicationsGateway .Example Update-AzVoiceServicesCommunicationsGateway -ResourceGroupName vtest-communication-rg -Name vsc-gateway-pwsh01 -Tag @{'key1'='value1'} .Example @@ -1866,8 +1859,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1955,9 +1947,9 @@ end { <# .Synopsis -update a TestLine +Update a TestLine .Description -update a TestLine +Update a TestLine .Example Update-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Tag @{'key1'='value1'} .Example @@ -2125,8 +2117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1 index 139aa266b320..80390098b02a 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsGateway.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/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1 index 33b0778ff8d2..75997303ddb6 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Remove-AzVoiceServicesCommunicationsTestLine.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/VoiceServices/VoiceServices.Autorest/exports/Test-AzVoiceServicesNameAvailability.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Test-AzVoiceServicesNameAvailability.ps1 index ad8831400558..d2ee84cd849b 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Test-AzVoiceServicesNameAvailability.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Test-AzVoiceServicesNameAvailability.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/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsGateway.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsGateway.ps1 index e4d017a82a85..7030ce1b65d0 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsGateway.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsGateway.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a CommunicationsGateway +Update a CommunicationsGateway .Description -update a CommunicationsGateway +Update a CommunicationsGateway .Example Update-AzVoiceServicesCommunicationsGateway -ResourceGroupName vtest-communication-rg -Name vsc-gateway-pwsh01 -Tag @{'key1'='value1'} .Example @@ -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/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1 b/generated/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1 index e40b7e18754c..d57f77d5afbc 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1 +++ b/generated/VoiceServices/VoiceServices.Autorest/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a TestLine +Update a TestLine .Description -update a TestLine +Update a TestLine .Example Update-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Tag @{'key1'='value1'} .Example @@ -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/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGateway.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGateway.cs index 2b9974fc60ee..6d7d3c421500 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGateway.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGateway.cs @@ -57,34 +57,52 @@ public partial class CommunicationsGateway : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AutoGeneratedDomainNameLabel - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.AutoGeneratedDomainNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).AutoGeneratedDomainNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).AutoGeneratedDomainNameLabel = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.AutoGeneratedDomainNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).AutoGeneratedDomainNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).AutoGeneratedDomainNameLabel = value ?? null; } /// Internal Acessors for Connectivity - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.Connectivity { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Connectivity; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Connectivity = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.Connectivity { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Connectivity; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Connectivity = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayProperties Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.CommunicationsGatewayProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGatewayPropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] @@ -125,31 +143,31 @@ public partial class CommunicationsGateway : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGatewayProperties.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGatewayProperties.cs index 0598d11be24a..216fd89673e7 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGatewayProperties.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/CommunicationsGatewayProperties.cs @@ -180,7 +180,7 @@ public partial interface ICommunicationsGatewayProperties : System.Collections.Generic.List Codec { get; set; } /// How to connect back to the operator network, e.g. MAPS [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ErrorResponse.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ErrorResponse.cs index 203875e93178..c555928ca66c 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Operation.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Operation.cs index 80512a558b65..54a71fcfe7ba 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Operation.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Resource.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Resource.cs index cf0194acf886..2f2a8ab0966a 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Resource.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ServiceRegionProperties.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ServiceRegionProperties.cs index 94d64c736bdd..5cd31de4b0ec 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ServiceRegionProperties.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/ServiceRegionProperties.cs @@ -62,7 +62,7 @@ public partial interface IServiceRegionProperties : /// The name of the region in which the resources needed for Teams Calling will be deployed. ///
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TestLine.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TestLine.cs index 2ad6010be8d3..b6da94bb758b 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TestLine.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TestLine.cs @@ -27,25 +27,43 @@ public partial class TestLine : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLineProperties Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.TestLineProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLinePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLinePropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] @@ -78,31 +96,31 @@ public partial class TestLine : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TrackedResource.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TrackedResource.cs index 281eadc05308..eec8cf286e97 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/VoiceServices/VoiceServices.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.VoiceServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateExpanded.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateExpanded.cs index d5b9c6769467..b897fcb99279 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateExpanded.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVoiceServicesCommunicationsGateway_CreateExpanded : 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 CommunicationsGateway resource private Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGateway _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.CommunicationsGateway(); - /// - /// 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; - /// Details of API bridge functionality, if required [global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Details of API bridge functionality, if required")] @@ -383,11 +374,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -703,24 +689,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ICommunicationsGateway 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonFilePath.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonFilePath.cs index 75810a1bb301..ae668315efb5 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonFilePath.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzVoiceServicesCommunicationsGateway_CreateViaJsonFilePa /// 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.Models.ICommunicationsGateway 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonString.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonString.cs index 39dc94d5cd50..f00c2188494f 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonString.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsGateway_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzVoiceServicesCommunicationsGateway_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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.Models.ICommunicationsGateway 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateExpanded.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateExpanded.cs index 5ceb96831081..ea25f4324125 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateExpanded.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVoiceServicesCommunicationsTestLine_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; - /// A TestLine resource private Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLine _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.TestLine(); - /// - /// 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLine 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaIdentityCommunicationsGatewayExpanded.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaIdentityCommunicationsGatewayExpanded.cs index fa6d0f4347cb..0036dd6c88c8 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaIdentityCommunicationsGatewayExpanded.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaIdentityCommunicationsGatewayExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzVoiceServicesCommunicationsTestLine_CreateViaIdentityC /// 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 TestLine resource private Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLine _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.TestLine(); - /// - /// 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -271,11 +262,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ITestLine 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonFilePath.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonFilePath.cs index 1026494f95b8..7a362af63330 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonFilePath.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzVoiceServicesCommunicationsTestLine_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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.Models.ITestLine 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonString.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonString.cs index efe6af951ed6..6eb2d438e8a0 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonString.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/NewAzVoiceServicesCommunicationsTestLine_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzVoiceServicesCommunicationsTestLine_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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.NewAzVoiceServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.Models.ITestLine 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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_Delete.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_Delete.cs index 1833ef38dd47..c040b1d48a66 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_Delete.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVoiceServicesCommunicationsGateway_Delete : 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.RemoveAzVoiceSer /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_DeleteViaIdentity.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_DeleteViaIdentity.cs index b4581f4bc7df..3744260ba14b 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_DeleteViaIdentity.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsGateway_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVoiceServicesCommunicationsGateway_DeleteViaIdentit /// 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.RemoveAzVoiceSer /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_Delete.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_Delete.cs index 4c8a4579cd7a..9b201077f5ed 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_Delete.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVoiceServicesCommunicationsTestLine_Delete : 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.RemoveAzVoiceSer /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentity.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentity.cs index 2de5d42f49ea..02123bbf43fb 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentity.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdenti /// 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.RemoveAzVoiceSer /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +571,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/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentityCommunicationsGateway.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentityCommunicationsGateway.cs index 901e2b428b90..3d156dfd376a 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentityCommunicationsGateway.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/cmdlets/RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdentityCommunicationsGateway.cs @@ -40,15 +40,6 @@ public partial class RemoveAzVoiceServicesCommunicationsTestLine_DeleteViaIdenti /// 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.VoiceServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Cmdlets.RemoveAzVoiceSer /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 3f6d80638eb4..9b49e3338778 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/VoiceServices/VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 4335c1ca515e..db5cc89f9861 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/VoiceServices/VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 80aec601caa3..d7a0e711ca1f 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/VoiceServices/VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/runtime/Context.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/Context.cs index cb7b6c6e87cd..89a090eb4530 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/Context.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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/VoiceServices/VoiceServices.Autorest/generated/runtime/MessageAttribute.cs b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/MessageAttribute.cs index 6977d96e7ff8..a4e6b05ec63b 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices" : @""; + //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/VoiceServices/VoiceServices.Autorest/generated/runtime/Properties/Resources.resx b/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/VoiceServices/VoiceServices.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/VoiceServices/VoiceServices.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/WeightsAndBiases/WeightsAndBiases.Autorest/exports/Get-AzWeightsAndBiasesInstance.ps1 b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/exports/Get-AzWeightsAndBiasesInstance.ps1 index da6ffbeae8bb..13521bc2e048 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/exports/Get-AzWeightsAndBiasesInstance.ps1 +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/exports/Get-AzWeightsAndBiasesInstance.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/WeightsAndBiases/WeightsAndBiases.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/exports/ProxyCmdletDefinitions.ps1 index da6ffbeae8bb..13521bc2e048 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/WeightsAndBiases/WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs index 80c274f16c89..8b16c8a0257a 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs @@ -23,10 +23,10 @@ public partial class Components19Kgb1NSchemasAzureResourcemanagerCommontypesMana public string ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId = value ?? null; } /// The principal ID of the assigned identity. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/ErrorResponse.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/ErrorResponse.cs index 135b77f5e1aa..da1d30c35ba4 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceProperties.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceProperties.cs index 7460d00c900f..bc2ee5e9f655 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceProperties.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceProperties.cs @@ -32,10 +32,10 @@ public partial class InstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal.Marketplace { get => (this._marketplace = this._marketplace ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.LiftrBaseMarketplaceDetails()); set { {_marketplace = value;} } } /// Internal Acessors for MarketplaceOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail = value ?? null /* model class */; } /// Internal Acessors for MarketplaceSubscriptionStatus - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus = value ?? null; } /// Internal Acessors for PartnerProperty Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal.PartnerProperty { get => (this._partnerProperty = this._partnerProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.PartnerProperties()); set { {_partnerProperty = value;} } } diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceResource.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceResource.cs index 87f7baf99bd4..8dbb3a74bf1e 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceResource.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/InstanceResource.cs @@ -62,7 +62,7 @@ public partial class InstanceResource : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Azure subscription id for the the marketplace offer is purchased from [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] @@ -76,46 +76,64 @@ public partial class InstanceResource : Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Marketplace - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.Marketplace { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).Marketplace; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).Marketplace = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.Marketplace { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).Marketplace; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).Marketplace = value ?? null /* model class */; } /// Internal Acessors for MarketplaceOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceOfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceOfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceOfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceOfferDetail = value ?? null /* model class */; } /// Internal Acessors for MarketplaceSubscriptionStatus - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceSubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceSubscriptionStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceSubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).MarketplaceSubscriptionStatus = value ?? null; } /// Internal Acessors for PartnerProperty - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.PartnerProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).PartnerProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).PartnerProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.PartnerProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).PartnerProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).PartnerProperty = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.InstanceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SingleSignOnProperty - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseSingleSignOnPropertiesV2 Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.SingleSignOnProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).SingleSignOnProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).SingleSignOnProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseSingleSignOnPropertiesV2 Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.SingleSignOnProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).SingleSignOnProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).SingleSignOnProperty = value ?? null /* model class */; } /// Internal Acessors for User - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseUserDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.User { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).User; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).User = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ILiftrBaseUserDetails Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstanceResourceInternal.User { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).User; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IInstancePropertiesInternal)Property).User = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] @@ -192,31 +210,31 @@ public partial class InstanceResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Operation.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Operation.cs index c89d628d1a53..9fc703d0fb7b 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Operation.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Resource.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Resource.cs index 7a94a289c739..03b8fc03992b 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Resource.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.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.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/TrackedResource.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/TrackedResource.cs index 6afaf7547859..9053a36a655c 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.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.WeightsAndBiases.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. ///
[Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Origin(Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 250afe138b2d..43cfc7dcb97b 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 5540ad70ee03..63950a8c51ae 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 4a0e7e584955..78865bd6923f 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Context.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Context.cs index 9727c80b0693..9b23445151e0 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Context.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/MessageAttribute.cs b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/MessageAttribute.cs index 2e72c0876bbb..f774b1e4df09 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.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.WeightsAndBiases" : @""; + //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/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Properties/Resources.resx b/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/WeightsAndBiases/WeightsAndBiases.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/WeightsAndBiases/WeightsAndBiases.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/WindowsIotServices/WindowsIotServices.Autorest/exports/Get-AzWindowsIotServicesDevice.ps1 b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Get-AzWindowsIotServicesDevice.ps1 index 2fa2aebf2194..96ab6b2694be 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Get-AzWindowsIotServicesDevice.ps1 +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Get-AzWindowsIotServicesDevice.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/WindowsIotServices/WindowsIotServices.Autorest/exports/New-AzWindowsIotServicesDevice.ps1 b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/New-AzWindowsIotServicesDevice.ps1 index 9069e50900b5..fe6013f64660 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/New-AzWindowsIotServicesDevice.ps1 +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/New-AzWindowsIotServicesDevice.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. .Description -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. .Example New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' @@ -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/WindowsIotServices/WindowsIotServices.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/ProxyCmdletDefinitions.ps1 index fe934d3e696c..6d962235ec95 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -231,10 +230,10 @@ end { <# .Synopsis -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. .Description -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. .Example New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' @@ -393,8 +392,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -687,10 +684,10 @@ end { <# .Synopsis -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. .Description -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. .Example Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 @@ -875,8 +872,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Remove-AzWindowsIotServicesDevice.ps1 b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Remove-AzWindowsIotServicesDevice.ps1 index bfb708a522cf..55a0cdd5a8bc 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Remove-AzWindowsIotServicesDevice.ps1 +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Remove-AzWindowsIotServicesDevice.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/WindowsIotServices/WindowsIotServices.Autorest/exports/Update-AzWindowsIotServicesDevice.ps1 b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Update-AzWindowsIotServicesDevice.ps1 index 63fc8595b0ee..ea027bda8f83 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Update-AzWindowsIotServicesDevice.ps1 +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/exports/Update-AzWindowsIotServicesDevice.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. .Description -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. .Example Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 @@ -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/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/DeviceService.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/DeviceService.cs index a96e539e0f69..181aad974c28 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/DeviceService.cs +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/DeviceService.cs @@ -49,16 +49,16 @@ public partial class DeviceService : Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServiceProperties Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.DeviceServiceProperties()); set { {_property = value;} } } /// Internal Acessors for StartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServiceInternal.StartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServicePropertiesInternal)Property).StartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServicePropertiesInternal)Property).StartDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServiceInternal.StartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServicePropertiesInternal)Property).StartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IDeviceServicePropertiesInternal)Property).StartDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] diff --git a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/ProxyResource.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/ProxyResource.cs index 22ae314328b4..0a00bcd9be7e 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/ProxyResource.cs @@ -26,13 +26,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] diff --git a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/TrackedResource.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/TrackedResource.cs index c864d501b348..6d2fe5c96090 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/api/Models/TrackedResource.cs @@ -31,13 +31,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] diff --git a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index c24747049032..a85960e32933 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/WindowsIotServices/WindowsIotServices.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/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index b70d6349d6e9..6ecc195e02e5 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/WindowsIotServices/WindowsIotServices.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/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 64f2da393aa2..dbbb56621b63 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/WindowsIotServices/WindowsIotServices.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/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Context.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Context.cs index ebfb543c2b03..8a1bdb1aa96c 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Context.cs +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/MessageAttribute.cs b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/MessageAttribute.cs index de5be1479b0a..cab64dd93b46 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices" : @""; + //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/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Properties/Resources.resx b/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/WindowsIotServices/WindowsIotServices.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/WindowsIotServices/WindowsIotServices.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/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsMonitor.ps1 index 3b0991ccf5a7..f0823d75a830 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsMonitor.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/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1 b/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1 index 17b5181fd89c..26682fba65e2 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsProviderInstance.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/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1 index 9173cedf9d86..059f0b0a81ab 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.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/Workloads/Monitors.Autorest/exports/New-AzWorkloadsMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsMonitor.ps1 index fd70a7218bce..7ce1a1e02fd5 100644 --- a/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsMonitor.ps1 @@ -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/Workloads/Monitors.Autorest/exports/New-AzWorkloadsProviderInstance.ps1 b/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsProviderInstance.ps1 index 2e449978d56c..c1b7dc6fd7f6 100644 --- a/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsProviderInstance.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsProviderInstance.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/Workloads/Monitors.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1 index cc2fa9e23444..18e6c3bd9272 100644 --- a/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.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/Workloads/Monitors.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Workloads/Monitors.Autorest/exports/ProxyCmdletDefinitions.ps1 index 5addb815049e..3aa53c72aba3 100644 --- a/generated/Workloads/Monitors.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -375,8 +374,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -582,8 +580,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -858,8 +855,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1129,8 +1125,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +1361,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1591,8 +1585,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1835,8 +1828,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2047,8 +2039,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2326,8 +2317,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2589,8 +2579,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2849,8 +2838,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsMonitor.ps1 index 64cbba6babdb..471a3b8952fc 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsMonitor.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1 b/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1 index ac4fd28d4354..0836b4c14a87 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsProviderInstance.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/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1 index 68a7345a3090..3de048abea0e 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.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/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsMonitor.ps1 index 7d0aad2dbad6..63ea02209dcf 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsMonitor.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/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsProviderInstance.ps1 b/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsProviderInstance.ps1 index 0f869ef79fea..3a32d935c8fc 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsProviderInstance.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsProviderInstance.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/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1 b/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1 index a2be22400f62..df0ddca11627 100644 --- a/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1 +++ b/generated/Workloads/Monitors.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.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/Workloads/Monitors.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Workloads/Monitors.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 2d8904990798..477e36abcd3e 100644 --- a/generated/Workloads/Monitors.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Workloads/Monitors.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/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1 index 775ffc3536f2..19da396161b2 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1 index 39c9b67db021..9de5c5ccb16b 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapCentralInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1 index 4cd1fa093dd5..9c9f514a8bb6 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1 index 5712edb602d6..da94ac841a5a 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1 index aa33e25c13e3..4a0e4b08b4eb 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.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/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1 index dc9bc80672e8..18207870771e 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.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/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1 index 066bc827b05b..433a3e64c20a 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.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/Workloads/SapVirtualInstance.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1 index 48c64c7fff8c..047e703d350a 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/New-AzWorkloadsSapVirtualInstance.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/Workloads/SapVirtualInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 index 4249d74ad435..ee5301226e72 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -405,8 +404,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) { @@ -861,8 +858,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1148,8 +1144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1462,8 +1457,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1752,8 +1746,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2062,8 +2055,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2293,8 +2285,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +2579,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2889,8 +2879,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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,8 +3179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3462,8 +3450,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3753,8 +3740,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4041,8 +4027,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4331,8 +4316,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4595,8 +4579,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4859,8 +4842,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5126,8 +5108,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5391,8 +5372,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5672,8 +5652,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Workloads/SapVirtualInstance.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1 index ffe49a3d0fae..e656068c68da 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1 index d7b39943c5f5..8b424028a324 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1 index 33fd9f653dc6..7d3724b3d57e 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapCentralInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1 index 8f3e8dc137d1..d3e29f1488bf 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1 index 30e1a2ee29c9..3f25cc79c827 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1 index 624f9a0c4a2b..04d949cbf03b 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1 index 5ea694633de5..5c502a0b32a4 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1 index 497605f6644d..f37e1fc85527 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1 index 1bba549533ac..ff73237bfa85 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1 index 9d8001eb0dd5..78db6c8f01a5 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1 index 9f88af0b2a15..a627739b96a3 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapCentralInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1 index 79f6f0a175b0..eaec876ef210 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.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/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1 b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1 index 22973cc19645..a89cb79a4cb3 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1 +++ b/generated/Workloads/SapVirtualInstance.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.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/Workloads/SapVirtualInstance.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Workloads/SapVirtualInstance.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 5b34773e5c6c..ac9f23a298d6 100644 --- a/generated/Workloads/SapVirtualInstance.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Workloads/SapVirtualInstance.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/src/ServiceBus/ServiceBus.Autorest/Properties/AssemblyInfo.cs b/src/ServiceBus/ServiceBus.Autorest/Properties/AssemblyInfo.cs index 632ad9ccebbe..41b713dbc42e 100644 --- a/src/ServiceBus/ServiceBus.Autorest/Properties/AssemblyInfo.cs +++ b/src/ServiceBus/ServiceBus.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 - ServiceBus")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("4.1.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("4.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/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md b/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md index 58fec368fd1c..b65e91c2ce9f 100644 --- a/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md @@ -1,6 +1,6 @@ --- Module Name: Az.ServiceBus -Module Guid: 15201554-4ce4-4bba-9029-e89ff5c6c83f +Module Guid: 66261450-17a7-49ac-a8f2-747e322304f1 Download Help Link: https://learn.microsoft.com/powershell/module/az.servicebus Help Version: 1.0.0.0 Locale: en-US @@ -61,7 +61,7 @@ Returns a description for the specified topic. Creates a ServiceBus Namespace, Queue, Topic Authorization Rule ### [New-AzServiceBusGeoDRConfiguration](New-AzServiceBusGeoDRConfiguration.md) -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) ### [New-AzServiceBusIPRuleConfig](New-AzServiceBusIPRuleConfig.md) Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet @@ -76,17 +76,17 @@ Create an in-memory object for KeyVaultProperties. Creates a new ServiceBus namespace. ### [New-AzServiceBusQueue](New-AzServiceBusQueue.md) -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. ### [New-AzServiceBusRule](New-AzServiceBusRule.md) -create a new rule and create an existing rule +Create a new rule and create an existing rule ### [New-AzServiceBusSubscription](New-AzServiceBusSubscription.md) -create a topic subscription. +Create a topic subscription. ### [New-AzServiceBusTopic](New-AzServiceBusTopic.md) -create a topic in the specified namespace. +Create a topic in the specified namespace. ### [New-AzServiceBusVirtualNetworkRuleConfig](New-AzServiceBusVirtualNetworkRuleConfig.md) Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet @@ -147,7 +147,7 @@ Updates a ServiceBus Subscription Updates a ServiceBus Topic ### [Start-AzServiceBusMigration](Start-AzServiceBusMigration.md) -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace ### [Stop-AzServiceBusMigration](Stop-AzServiceBusMigration.md) This operation reverts Migration diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md index 68d5833a6d75..0a034b7a1ebe 100644 --- a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzServiceBusGeoDRConfiguration ## SYNOPSIS -create a new Alias(Disaster Recovery configuration) +Create a new Alias(Disaster Recovery configuration) ## SYNTAX @@ -34,7 +34,7 @@ New-AzServiceBusGeoDRConfiguration -Name -NamespaceInputObject -NamespaceInputObject ``` ## DESCRIPTION -create a Service Bus queue. +Create a Service Bus queue. This operation is idempotent. ## EXAMPLES diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md index 53e66a51c5f2..46911864e047 100644 --- a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzServiceBusRule ## SYNOPSIS -create a new rule and create an existing rule +Create a new rule and create an existing rule ## SYNTAX @@ -75,7 +75,7 @@ New-AzServiceBusRule -Name -SubscriptionName -TopicInputObject ``` ## DESCRIPTION -create a new rule and create an existing rule +Create a new rule and create an existing rule ## EXAMPLES diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md index 949e9ee24b5a..4ee8c81ee42a 100644 --- a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzServiceBusSubscription ## SYNOPSIS -create a topic subscription. +Create a topic subscription. ## SYNTAX @@ -58,7 +58,7 @@ New-AzServiceBusSubscription -Name -TopicInputObject -NamespaceInputObject ``` ## DESCRIPTION -create a topic in the specified namespace. +Create a topic in the specified namespace. ## EXAMPLES diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md index 720afa125d02..0abec6809320 100644 --- a/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Start-AzServiceBusMigration ## SYNOPSIS -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace ## SYNTAX @@ -19,7 +19,7 @@ Start-AzServiceBusMigration -NamespaceName -ResourceGroupName ``` ## DESCRIPTION -create Migration configuration and starts migration of entities from Standard to Premium namespace +Create Migration configuration and starts migration of entities from Standard to Premium namespace ## EXAMPLES diff --git a/src/ServiceBus/ServiceBus/AutorestUpgradeLog.md b/src/ServiceBus/ServiceBus/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ServiceBus/ServiceBus/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs b/src/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs index c85b54fac4b5..9c7fc14c1646 100644 --- a/src/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs +++ b/src/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs @@ -20,10 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ServiceLinker")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.3")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.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/ServiceLinker/ServiceLinker.Autorest/docs/Az.ServiceLinker.md b/src/ServiceLinker/ServiceLinker.Autorest/docs/Az.ServiceLinker.md index 5570d13720c6..6923838e4c87 100644 --- a/src/ServiceLinker/ServiceLinker.Autorest/docs/Az.ServiceLinker.md +++ b/src/ServiceLinker/ServiceLinker.Autorest/docs/Az.ServiceLinker.md @@ -1,6 +1,6 @@ --- Module Name: Az.ServiceLinker -Module Guid: 062b07c1-a69d-4f21-a156-6438b1bc4adf +Module Guid: 2201d244-c29c-42b3-a778-f46025b89bb1 Download Help Link: https://learn.microsoft.com/powershell/module/az.servicelinker Help Version: 1.0.0.0 Locale: en-US @@ -12,13 +12,13 @@ Microsoft Azure PowerShell: ServiceLinker cmdlets ## Az.ServiceLinker Cmdlets ### [Get-AzServiceLinkerConfigurationForContainerApp](Get-AzServiceLinkerConfigurationForContainerApp.md) -list source configurations for a linker in container app. +List source configurations for a linker in container app. ### [Get-AzServiceLinkerConfigurationForSpringCloud](Get-AzServiceLinkerConfigurationForSpringCloud.md) -list source configurations for a linker in spring cloud. +List source configurations for a linker in spring cloud. ### [Get-AzServiceLinkerConfigurationForWebApp](Get-AzServiceLinkerConfigurationForWebApp.md) -list source configurations for a linker in webapp. +List source configurations for a linker in webapp. ### [Get-AzServiceLinkerConfigurationName](Get-AzServiceLinkerConfigurationName.md) Lists the configuration names generated by Service Connector for all target, client types, auth types. diff --git a/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForContainerApp.md b/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForContainerApp.md index 99e99a534bc4..b07486112a39 100644 --- a/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForContainerApp.md +++ b/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForContainerApp.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzServiceLinkerConfigurationForContainerApp ## SYNOPSIS -list source configurations for a linker in container app. +List source configurations for a linker in container app. ## SYNTAX @@ -19,7 +19,7 @@ Get-AzServiceLinkerConfigurationForContainerApp -LinkerName -ContainerA ``` ## DESCRIPTION -list source configurations for a linker in container app. +List source configurations for a linker in container app. ## EXAMPLES diff --git a/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForSpringCloud.md b/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForSpringCloud.md index 44609b3573f8..1174c3d4941e 100644 --- a/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForSpringCloud.md +++ b/src/ServiceLinker/ServiceLinker.Autorest/docs/Get-AzServiceLinkerConfigurationForSpringCloud.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzServiceLinkerConfigurationForSpringCloud ## SYNOPSIS -list source configurations for a linker in spring cloud. +List source configurations for a linker in spring cloud. ## SYNTAX @@ -19,7 +19,7 @@ Get-AzServiceLinkerConfigurationForSpringCloud -LinkerName -AppName -ResourceGroupNam ``` ## DESCRIPTION -list source configurations for a linker in webapp. +List source configurations for a linker in webapp. ## EXAMPLES diff --git a/src/ServiceLinker/ServiceLinker.Autorest/examples/Remove-AzServiceLinkerForSpringcloud.md b/src/ServiceLinker/ServiceLinker.Autorest/examples/Remove-AzServiceLinkerForSpringcloud.md index 10a2205692c8..56f7fe4dbe50 100644 --- a/src/ServiceLinker/ServiceLinker.Autorest/examples/Remove-AzServiceLinkerForSpringcloud.md +++ b/src/ServiceLinker/ServiceLinker.Autorest/examples/Remove-AzServiceLinkerForSpringcloud.md @@ -1,6 +1,21 @@ -### Example 1: Remove linker +### Example 1: {{ Add title here }} ```powershell -Remove-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name testLinker +{{ Add code here }} ``` -Remove linker \ No newline at end of file +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} diff --git a/src/ServiceLinker/ServiceLinker/AutorestUpgradeLog.md b/src/ServiceLinker/ServiceLinker/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ServiceLinker/ServiceLinker/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Site/Site.Autorest/Properties/AssemblyInfo.cs b/src/Site/Site.Autorest/Properties/AssemblyInfo.cs index e38dec318c06..1820cb947edf 100644 --- a/src/Site/Site.Autorest/Properties/AssemblyInfo.cs +++ b/src/Site/Site.Autorest/Properties/AssemblyInfo.cs @@ -20,10 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Site")] -[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/Site/Site.Autorest/docs/Az.Site.md b/src/Site/Site.Autorest/docs/Az.Site.md index daedaa53dd63..8c6071c5e4ad 100644 --- a/src/Site/Site.Autorest/docs/Az.Site.md +++ b/src/Site/Site.Autorest/docs/Az.Site.md @@ -1,6 +1,6 @@ --- Module Name: Az.Site -Module Guid: b53c3ae8-5a9c-4886-b110-45e1a4e69e78 +Module Guid: 12c4f12c-e747-4723-b173-81076bc3124f Download Help Link: https://learn.microsoft.com/powershell/module/az.site Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Site/Site.Autorest/test/loadEnv.ps1 b/src/Site/Site.Autorest/test/loadEnv.ps1 index 0e55b68c359e..6a7c385c6b7d 100644 --- a/src/Site/Site.Autorest/test/loadEnv.ps1 +++ b/src/Site/Site.Autorest/test/loadEnv.ps1 @@ -20,23 +20,10 @@ if ($TestMode -eq 'live') { if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $envFilePath = Join-Path $PSScriptRoot $envFile } else { - $envFilePath = Join-Path $PSScriptRoot "..\$envFile" + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' } -Write-Host "Loading environment from: $envFile (TestMode: $TestMode)" -Write-Host "Environment file path: $envFilePath" -Write-Host "Environment file exists: $(Test-Path -Path $envFilePath)" - $env = @{} if (Test-Path -Path $envFilePath) { - $envData = Get-Content $envFilePath | ConvertFrom-Json - # Convert PSCustomObject to Hashtable - $envData.psobject.properties | ForEach-Object { - $env[$_.Name] = $_.Value - } + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} - Write-Host "Loaded environment variables: $($env.Keys -join ', ')" - Write-Host "Resource Group: $($env.resourceGroup)" - Write-Host "Site Name 01: $($env.siteName01)" -} else { - Write-Warning "Environment file not found: $envFilePath" } \ No newline at end of file diff --git a/src/Site/Site/AutorestUpgradeLog.md b/src/Site/Site/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Site/Site/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Sphere/Sphere.Autorest/Properties/AssemblyInfo.cs b/src/Sphere/Sphere.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..cd693e73674b --- /dev/null +++ b/src/Sphere/Sphere.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 - Sphere")] +[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/Sphere/Sphere.Autorest/docs/Az.Sphere.md b/src/Sphere/Sphere.Autorest/docs/Az.Sphere.md index 4559012a1b6b..6e982c635d1f 100644 --- a/src/Sphere/Sphere.Autorest/docs/Az.Sphere.md +++ b/src/Sphere/Sphere.Autorest/docs/Az.Sphere.md @@ -1,6 +1,6 @@ --- Module Name: Az.Sphere -Module Guid: 4855dcb5-d1a4-45e3-b4b2-49d37925ed0b +Module Guid: bdd67ab1-ce38-41d2-9b24-c97d3755d70a Download Help Link: https://learn.microsoft.com/powershell/module/az.sphere Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Sphere/Sphere/AutorestUpgradeLog.md b/src/Sphere/Sphere/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Sphere/Sphere/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/SpringCloud/SpringCloud.Autorest/Properties/AssemblyInfo.cs b/src/SpringCloud/SpringCloud.Autorest/Properties/AssemblyInfo.cs index e5ff1429181d..7d7523ee17c2 100644 --- a/src/SpringCloud/SpringCloud.Autorest/Properties/AssemblyInfo.cs +++ b/src/SpringCloud/SpringCloud.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 - SpringCloud")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.4.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.4.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/SpringCloud/SpringCloud.Autorest/docs/Az.SpringCloud.md b/src/SpringCloud/SpringCloud.Autorest/docs/Az.SpringCloud.md index 9ec170ad61c6..7bc4202145a5 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/Az.SpringCloud.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/Az.SpringCloud.md @@ -1,6 +1,6 @@ --- Module Name: Az.SpringCloud -Module Guid: bced8d1c-4a71-4435-b0cd-b1f90ea30349 +Module Guid: 5f9dffc9-d5ec-4327-a531-4727263a9b96 Download Help Link: https://learn.microsoft.com/powershell/module/az.springcloud Help Version: 1.0.0.0 Locale: en-US @@ -81,19 +81,19 @@ Lists all of the available skus of the Microsoft.AppPlatform provider. List test keys for a Service. ### [New-AzSpringCloud](New-AzSpringCloud.md) -create a new Service or update an exiting Service. +Create a new Service or update an exiting Service. ### [New-AzSpringCloudApp](New-AzSpringCloudApp.md) -create a new App or update an exiting App. +Create a new App or update an exiting App. ### [New-AzSpringCloudAppBinding](New-AzSpringCloudAppBinding.md) -create a new Binding or create an exiting Binding. +Create a new Binding or create an exiting Binding. ### [New-AzSpringCloudAppCustomDomain](New-AzSpringCloudAppCustomDomain.md) -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. ### [New-AzSpringCloudAppDeployment](New-AzSpringCloudAppDeployment.md) -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. ### [New-AzSpringCloudAppDeploymentBuildResultObject](New-AzSpringCloudAppDeploymentBuildResultObject.md) Create an in-memory object for BuildResultUserSourceInfo. @@ -111,7 +111,7 @@ Create an in-memory object for SourceUploadedUserSourceInfo. Create an in-memory object for LoadedCertificate. ### [New-AzSpringCloudBuildpackBinding](New-AzSpringCloudBuildpackBinding.md) -create a buildpack binding. +Create a buildpack binding. ### [New-AzSpringCloudBuildpackObject](New-AzSpringCloudBuildpackObject.md) Create an in-memory object for BuildpackProperties. @@ -120,16 +120,16 @@ Create an in-memory object for BuildpackProperties. Create an in-memory object for BuildpacksGroupProperties. ### [New-AzSpringCloudBuildServiceAgentPool](New-AzSpringCloudBuildServiceAgentPool.md) -update build service agent pool. +Update build service agent pool. ### [New-AzSpringCloudBuildServiceBuilder](New-AzSpringCloudBuildServiceBuilder.md) -create a KPack builder. +Create a KPack builder. ### [New-AzSpringCloudCertificate](New-AzSpringCloudCertificate.md) -create certificate resource. +Create certificate resource. ### [New-AzSpringCloudConfigurationService](New-AzSpringCloudConfigurationService.md) -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. ### [New-AzSpringCloudConfigurationServiceGitRepositoryObject](New-AzSpringCloudConfigurationServiceGitRepositoryObject.md) Create an in-memory object for ConfigurationServiceGitRepository. @@ -144,7 +144,7 @@ Create an in-memory object for GitPatternRepository. Create an in-memory object for KeyVaultCertificateProperties. ### [New-AzSpringCloudRegistry](New-AzSpringCloudRegistry.md) -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. ### [New-AzSpringCloudTestKey](New-AzSpringCloudTestKey.md) Regenerate a test key for a Service. @@ -213,29 +213,29 @@ Set existing Deployment under the app as active Operation to update an exiting Binding. ### [Update-AzSpringCloudAppCustomDomain](Update-AzSpringCloudAppCustomDomain.md) -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. ### [Update-AzSpringCloudAppDeployment](Update-AzSpringCloudAppDeployment.md) Operation to update an exiting Deployment. ### [Update-AzSpringCloudBuildpackBinding](Update-AzSpringCloudBuildpackBinding.md) -update a buildpack binding. +Update a buildpack binding. ### [Update-AzSpringCloudBuildServiceAgentPool](Update-AzSpringCloudBuildServiceAgentPool.md) -update build service agent pool. +Update build service agent pool. ### [Update-AzSpringCloudBuildServiceBuilder](Update-AzSpringCloudBuildServiceBuilder.md) -update a KPack builder. +Update a KPack builder. ### [Update-AzSpringCloudCertificate](Update-AzSpringCloudCertificate.md) -update certificate resource. +Update certificate resource. ### [Update-AzSpringCloudConfigServer](Update-AzSpringCloudConfigServer.md) -update the config server. +Update the config server. ### [Update-AzSpringCloudConfigurationService](Update-AzSpringCloudConfigurationService.md) -update the default Application Configuration Service or update the existing Application Configuration Service. +Update the default Application Configuration Service or update the existing Application Configuration Service. ### [Update-AzSpringCloudMonitoringSetting](Update-AzSpringCloudMonitoringSetting.md) -update the Monitoring Setting. +Update the Monitoring Setting. diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloud.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloud.md index 8cf94970a694..6b513f069156 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloud.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloud.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloud ## SYNOPSIS -create a new Service or update an exiting Service. +Create a new Service or update an exiting Service. ## SYNTAX @@ -22,7 +22,7 @@ New-AzSpringCloud -Name -ResourceGroupName [-SubscriptionId -ResourceGroupName -ServiceName -Name -ResourceGroupName ``` ## DESCRIPTION -create a new Binding or create an exiting Binding. +Create a new Binding or create an exiting Binding. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppCustomDomain.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppCustomDomain.md index 42491582c676..b5fd337d5076 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppCustomDomain.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppCustomDomain.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudAppCustomDomain ## SYNOPSIS -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. ## SYNTAX @@ -48,7 +48,7 @@ New-AzSpringCloudAppCustomDomain -AppName -Name -ResourceGroup ``` ## DESCRIPTION -create custom domain of one lifecycle application. +Create custom domain of one lifecycle application. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppDeployment.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppDeployment.md index 7a0b37c9a413..96e3f521f90d 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppDeployment.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudAppDeployment.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudAppDeployment ## SYNOPSIS -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. ## SYNTAX @@ -54,7 +54,7 @@ New-AzSpringCloudAppDeployment -AppName -Name -ResourceGroupNa ``` ## DESCRIPTION -create a new Deployment or create an exiting Deployment. +Create a new Deployment or create an exiting Deployment. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceAgentPool.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceAgentPool.md index 8235a0dc0247..21d58f7e62e2 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceAgentPool.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceAgentPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudBuildServiceAgentPool ## SYNOPSIS -update build service agent pool. +Update build service agent pool. ## SYNTAX @@ -53,7 +53,7 @@ New-AzSpringCloudBuildServiceAgentPool -ResourceGroupName -ServiceName ``` ## DESCRIPTION -update build service agent pool. +Update build service agent pool. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceBuilder.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceBuilder.md index a04a3ea84eb1..f4690f723883 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceBuilder.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildServiceBuilder.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudBuildServiceBuilder ## SYNOPSIS -create a KPack builder. +Create a KPack builder. ## SYNTAX @@ -49,7 +49,7 @@ New-AzSpringCloudBuildServiceBuilder -Name -ResourceGroupName ``` ## DESCRIPTION -create a KPack builder. +Create a KPack builder. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildpackBinding.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildpackBinding.md index 37d28e096e13..f850f46b3aeb 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildpackBinding.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudBuildpackBinding.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudBuildpackBinding ## SYNOPSIS -create a buildpack binding. +Create a buildpack binding. ## SYNTAX @@ -57,7 +57,7 @@ New-AzSpringCloudBuildpackBinding -BuilderName -Name -Resource ``` ## DESCRIPTION -create a buildpack binding. +Create a buildpack binding. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudCertificate.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudCertificate.md index b253462a7f06..3cd44a7d4201 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudCertificate.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudCertificate.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudCertificate ## SYNOPSIS -create certificate resource. +Create certificate resource. ## SYNTAX @@ -41,7 +41,7 @@ New-AzSpringCloudCertificate -Name -ResourceGroupName -Service ``` ## DESCRIPTION -create certificate resource. +Create certificate resource. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudConfigurationService.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudConfigurationService.md index f7cb1346000f..ec1fc4a2db25 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudConfigurationService.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudConfigurationService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudConfigurationService ## SYNOPSIS -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. ## SYNTAX @@ -41,7 +41,7 @@ New-AzSpringCloudConfigurationService -ResourceGroupName -ServiceName < ``` ## DESCRIPTION -create the default Application Configuration Service or create the existing Application Configuration Service. +Create the default Application Configuration Service or create the existing Application Configuration Service. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudRegistry.md b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudRegistry.md index 1d22fb2319f4..caa683c4dfd2 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudRegistry.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/New-AzSpringCloudRegistry.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSpringCloudRegistry ## SYNOPSIS -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. ## SYNTAX @@ -31,7 +31,7 @@ New-AzSpringCloudRegistry -SpringInputObject [-DefaultPro ``` ## DESCRIPTION -create the default Service Registry or create the existing Service Registry. +Create the default Service Registry or create the existing Service Registry. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudAppCustomDomain.md b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudAppCustomDomain.md index a88f95f1bc81..0db25a01c57b 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudAppCustomDomain.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudAppCustomDomain.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSpringCloudAppCustomDomain ## SYNOPSIS -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. ## SYNTAX @@ -55,7 +55,7 @@ Update-AzSpringCloudAppCustomDomain -AppName -Name -ResourceGr ``` ## DESCRIPTION -update custom domain of one lifecycle application. +Update custom domain of one lifecycle application. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudBuildServiceAgentPool.md b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudBuildServiceAgentPool.md index 9c10d493de4b..0516e982ffed 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudBuildServiceAgentPool.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudBuildServiceAgentPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSpringCloudBuildServiceAgentPool ## SYNOPSIS -update build service agent pool. +Update build service agent pool. ## SYNTAX @@ -39,7 +39,7 @@ Update-AzSpringCloudBuildServiceAgentPool -SpringInputObject -SpringInputObject -Name ``` ## DESCRIPTION -update a buildpack binding. +Update a buildpack binding. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudCertificate.md b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudCertificate.md index 4d13a5ad5e8d..48c5a1ded953 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudCertificate.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudCertificate.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSpringCloudCertificate ## SYNOPSIS -update certificate resource. +Update certificate resource. ## SYNTAX @@ -33,7 +33,7 @@ Update-AzSpringCloudCertificate -Name -SpringInputObject -ResourceGroupName -Jso ``` ## DESCRIPTION -update the config server. +Update the config server. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudConfigurationService.md b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudConfigurationService.md index 2f75d69cc54c..409a77dd8fc1 100644 --- a/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudConfigurationService.md +++ b/src/SpringCloud/SpringCloud.Autorest/docs/Update-AzSpringCloudConfigurationService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSpringCloudConfigurationService ## SYNOPSIS -update the default Application Configuration Service or update the existing Application Configuration Service. +Update the default Application Configuration Service or update the existing Application Configuration Service. ## SYNTAX @@ -34,7 +34,7 @@ Update-AzSpringCloudConfigurationService -SpringInputObject -ResourceGroupName ``` ## DESCRIPTION -update the Monitoring Setting. +Update the Monitoring Setting. ## EXAMPLES diff --git a/src/SpringCloud/SpringCloud/AutorestUpgradeLog.md b/src/SpringCloud/SpringCloud/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/SpringCloud/SpringCloud/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/StackHCIVM/StackHCIVM.Autorest/Properties/AssemblyInfo.cs b/src/StackHCIVM/StackHCIVM.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..a4894bd6c0c6 --- /dev/null +++ b/src/StackHCIVM/StackHCIVM.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 - StackHcivm")] +[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/StackHCIVM/StackHCIVM.Autorest/docs/Az.StackHCIVM.md b/src/StackHCIVM/StackHCIVM.Autorest/docs/Az.StackHCIVM.md index 46cf21080b49..c2f62b36eff8 100644 --- a/src/StackHCIVM/StackHCIVM.Autorest/docs/Az.StackHCIVM.md +++ b/src/StackHCIVM/StackHCIVM.Autorest/docs/Az.StackHCIVM.md @@ -1,6 +1,6 @@ --- Module Name: Az.StackHCIVM -Module Guid: 7389f67c-ec9d-4c13-9c9a-308834413af6 +Module Guid: 79d323c2-015c-4934-a553-acff86579aae Download Help Link: https://learn.microsoft.com/powershell/module/az.stackhcivm Help Version: 1.0.0.0 Locale: en-US diff --git a/src/StackHCIVM/StackHCIVM/AutorestUpgradeLog.md b/src/StackHCIVM/StackHCIVM/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/StackHCIVM/StackHCIVM/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/StandbyPool/StandbyPool.Autorest/Properties/AssemblyInfo.cs b/src/StandbyPool/StandbyPool.Autorest/Properties/AssemblyInfo.cs index 1563e1fceba0..c8e668b5d7e5 100644 --- a/src/StandbyPool/StandbyPool.Autorest/Properties/AssemblyInfo.cs +++ b/src/StandbyPool/StandbyPool.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 - StandbyPool")] -[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/StandbyPool/StandbyPool.Autorest/custom/Az.StandbyPool.custom.psm1 b/src/StandbyPool/StandbyPool.Autorest/custom/Az.StandbyPool.custom.psm1 index 7f35c5caf429..2ba1d30d0a22 100644 --- a/src/StandbyPool/StandbyPool.Autorest/custom/Az.StandbyPool.custom.psm1 +++ b/src/StandbyPool/StandbyPool.Autorest/custom/Az.StandbyPool.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.StandbyPool.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.StandbyPool.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.StandbyPool.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.StandbyPool.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/StandbyPool/StandbyPool.Autorest/custom/README.md b/src/StandbyPool/StandbyPool.Autorest/custom/README.md index af009ccc27a6..ccd0d0ff969d 100644 --- a/src/StandbyPool/StandbyPool.Autorest/custom/README.md +++ b/src/StandbyPool/StandbyPool.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.StandbyPool` 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.StandbyPool.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.StandbyPool` 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.StandbyPool.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.StandbyPool.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.StandbyPool.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.StandbyPool`. - `Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.StandbyPool`. 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.StandbyPool`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/docs/Az.StandbyPool.md b/src/StandbyPool/StandbyPool.Autorest/docs/Az.StandbyPool.md index 101e723d4024..177b87b22fb3 100644 --- a/src/StandbyPool/StandbyPool.Autorest/docs/Az.StandbyPool.md +++ b/src/StandbyPool/StandbyPool.Autorest/docs/Az.StandbyPool.md @@ -1,6 +1,6 @@ --- Module Name: Az.StandbyPool -Module Guid: 906124f0-0d0b-43ea-a3f8-27a8a5ed0afa +Module Guid: c53fc34e-c220-44b5-ba74-6de3a39dfd19 Download Help Link: https://learn.microsoft.com/powershell/module/az.standbypool Help Version: 1.0.0.0 Locale: en-US @@ -24,10 +24,10 @@ Get a StandbyVirtualMachinePoolResource Get a StandbyVirtualMachinePoolRuntimeViewResource ### [New-AzStandbyContainerGroupPool](New-AzStandbyContainerGroupPool.md) -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource ### [New-AzStandbyVMPool](New-AzStandbyVMPool.md) -create a StandbyVirtualMachinePoolResource +Create a StandbyVirtualMachinePoolResource ### [Remove-AzStandbyContainerGroupPool](Remove-AzStandbyContainerGroupPool.md) Delete a StandbyContainerGroupPoolResource @@ -36,8 +36,8 @@ Delete a StandbyContainerGroupPoolResource Delete a StandbyVirtualMachinePoolResource ### [Update-AzStandbyContainerGroupPool](Update-AzStandbyContainerGroupPool.md) -update a StandbyContainerGroupPoolResource +Update a StandbyContainerGroupPoolResource ### [Update-AzStandbyVMPool](Update-AzStandbyVMPool.md) -update a StandbyVirtualMachinePoolResource +Update a StandbyVirtualMachinePoolResource diff --git a/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyContainerGroupPool.md b/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyContainerGroupPool.md index 916bcb08261d..5e5a22044dd4 100644 --- a/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyContainerGroupPool.md +++ b/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyContainerGroupPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzStandbyContainerGroupPool ## SYNOPSIS -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource ## SYNTAX @@ -35,7 +35,7 @@ New-AzStandbyContainerGroupPool -Name -ResourceGroupName -Json ``` ## DESCRIPTION -create a StandbyContainerGroupPoolResource +Create a StandbyContainerGroupPoolResource ## EXAMPLES diff --git a/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyVMPool.md b/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyVMPool.md index cf00e6f9ab94..55829c196d8a 100644 --- a/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyVMPool.md +++ b/src/StandbyPool/StandbyPool.Autorest/docs/New-AzStandbyVMPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzStandbyVMPool ## SYNOPSIS -create a StandbyVirtualMachinePoolResource +Create a StandbyVirtualMachinePoolResource ## SYNTAX @@ -33,7 +33,7 @@ New-AzStandbyVMPool -Name -ResourceGroupName -JsonString -ResourceGroupName -J ``` ## DESCRIPTION -update a StandbyContainerGroupPoolResource +Update a StandbyContainerGroupPoolResource ## EXAMPLES diff --git a/src/StandbyPool/StandbyPool.Autorest/docs/Update-AzStandbyVMPool.md b/src/StandbyPool/StandbyPool.Autorest/docs/Update-AzStandbyVMPool.md index 58c5cab9b176..e3d05e776677 100644 --- a/src/StandbyPool/StandbyPool.Autorest/docs/Update-AzStandbyVMPool.md +++ b/src/StandbyPool/StandbyPool.Autorest/docs/Update-AzStandbyVMPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzStandbyVMPool ## SYNOPSIS -update a StandbyVirtualMachinePoolResource +Update a StandbyVirtualMachinePoolResource ## SYNTAX @@ -39,7 +39,7 @@ Update-AzStandbyVMPool -Name -ResourceGroupName -JsonString function New-AzTerraformExportQueryObject { + [Microsoft.Azure.PowerShell.Cmdlets.Terraform.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ExportQuery')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceGroupObject.ps1 b/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceGroupObject.ps1 index 4c3791858c16..6275fdc35aa8 100644 --- a/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceGroupObject.ps1 +++ b/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceGroupObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ExportResourceGroup https://learn.microsoft.com/powershell/module/Az.Terraform/new-azterraformexportresourcegroupobject #> function New-AzTerraformExportResourceGroupObject { + [Microsoft.Azure.PowerShell.Cmdlets.Terraform.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ExportResourceGroup')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceObject.ps1 b/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceObject.ps1 index 35a75b1b9b8a..6db6407c3f8b 100644 --- a/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceObject.ps1 +++ b/src/Terraform/Terraform.Autorest/custom/autogen-model-cmdlets/New-AzTerraformExportResourceObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ExportResource https://learn.microsoft.com/powershell/module/Az.Terraform/new-azterraformexportresourceobject #> function New-AzTerraformExportResourceObject { + [Microsoft.Azure.PowerShell.Cmdlets.Terraform.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Terraform.Models.ExportResource')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Terraform/Terraform.Autorest/docs/Az.Terraform.md b/src/Terraform/Terraform.Autorest/docs/Az.Terraform.md index 4d1e29c82cc1..a6a46243df98 100644 --- a/src/Terraform/Terraform.Autorest/docs/Az.Terraform.md +++ b/src/Terraform/Terraform.Autorest/docs/Az.Terraform.md @@ -1,6 +1,6 @@ --- Module Name: Az.Terraform -Module Guid: 0e83fac3-e2db-4aed-9b5e-d28ca6a2fa90 +Module Guid: 45f6526b-3885-4bbd-9db2-79f136989a46 Download Help Link: https://learn.microsoft.com/powershell/module/az.terraform Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Terraform/Terraform/AutorestUpgradeLog.md b/src/Terraform/Terraform/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Terraform/Terraform/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/TrustedSigning/TrustedSigning.Autorest/.gitignore b/src/TrustedSigning/TrustedSigning.Autorest/.gitignore index ae9a0703e0bb..6ec158bd9768 100644 --- a/src/TrustedSigning/TrustedSigning.Autorest/.gitignore +++ b/src/TrustedSigning/TrustedSigning.Autorest/.gitignore @@ -5,7 +5,6 @@ generated internal exports tools -custom/autogen-model-cmdlets test/*-TestResults.xml license.txt /*.ps1 diff --git a/src/TrustedSigning/TrustedSigning.Autorest/Properties/AssemblyInfo.cs b/src/TrustedSigning/TrustedSigning.Autorest/Properties/AssemblyInfo.cs index 3a37c236495d..cf938f7fd2a1 100644 --- a/src/TrustedSigning/TrustedSigning.Autorest/Properties/AssemblyInfo.cs +++ b/src/TrustedSigning/TrustedSigning.Autorest/Properties/AssemblyInfo.cs @@ -1,26 +1,26 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ +// 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.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] [assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.1.0+c545a0f811d71ca617ff7475ef521c1974e05c47")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - TrustedSigning")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/TrustedSigning/TrustedSigning.Autorest/docs/Az.TrustedSigning.md b/src/TrustedSigning/TrustedSigning.Autorest/docs/Az.TrustedSigning.md index 9cbe557aba17..4dd7873c42db 100644 --- a/src/TrustedSigning/TrustedSigning.Autorest/docs/Az.TrustedSigning.md +++ b/src/TrustedSigning/TrustedSigning.Autorest/docs/Az.TrustedSigning.md @@ -1,6 +1,6 @@ --- Module Name: Az.TrustedSigning -Module Guid: 12df3fe9-da2f-40ef-b520-aa2ad8aee1c1 +Module Guid: 56fb6894-a03f-4da1-bc3a-2c53eec1f4ab Download Help Link: https://learn.microsoft.com/powershell/module/az.trustedsigning Help Version: 1.0.0.0 Locale: en-US @@ -18,10 +18,10 @@ Get a trusted Signing Account. Get details of a certificate profile. ### [New-AzTrustedSigningAccount](New-AzTrustedSigningAccount.md) -create a trusted Signing Account. +Create a trusted Signing Account. ### [New-AzTrustedSigningCertificateProfile](New-AzTrustedSigningCertificateProfile.md) -create a certificate profile. +Create a certificate profile. ### [Remove-AzTrustedSigningAccount](Remove-AzTrustedSigningAccount.md) Delete a trusted signing account. @@ -33,5 +33,5 @@ Delete a certificate profile. Checks that the trusted signing account name is valid and is not already in use. ### [Update-AzTrustedSigningAccount](Update-AzTrustedSigningAccount.md) -update a trusted signing account. +Update a trusted signing account. diff --git a/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningAccount.md b/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningAccount.md index c4ade49b352f..9b6ec1a8c4f8 100644 --- a/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningAccount.md +++ b/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningAccount.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzTrustedSigningAccount ## SYNOPSIS -create a trusted Signing Account. +Create a trusted Signing Account. ## SYNTAX @@ -34,7 +34,7 @@ New-AzTrustedSigningAccount -AccountName -ResourceGroupName -J ``` ## DESCRIPTION -create a trusted Signing Account. +Create a trusted Signing Account. ## EXAMPLES diff --git a/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningCertificateProfile.md b/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningCertificateProfile.md index e076bbb3e24a..5582d46b3a77 100644 --- a/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningCertificateProfile.md +++ b/src/TrustedSigning/TrustedSigning.Autorest/docs/New-AzTrustedSigningCertificateProfile.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzTrustedSigningCertificateProfile ## SYNOPSIS -create a certificate profile. +Create a certificate profile. ## SYNTAX @@ -35,7 +35,7 @@ New-AzTrustedSigningCertificateProfile -AccountName -ProfileName -ResourceGroupName ``` ## DESCRIPTION -update a trusted signing account. +Update a trusted signing account. ## EXAMPLES diff --git a/src/TrustedSigning/TrustedSigning.Autorest/resources/README.md b/src/TrustedSigning/TrustedSigning.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/TrustedSigning/TrustedSigning.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/TrustedSigning/TrustedSigning/AutorestUpgradeLog.md b/src/TrustedSigning/TrustedSigning/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/TrustedSigning/TrustedSigning/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/VMware/VMware.Autorest/Properties/AssemblyInfo.cs b/src/VMware/VMware.Autorest/Properties/AssemblyInfo.cs index c728c035de4a..c708317bf85e 100644 --- a/src/VMware/VMware.Autorest/Properties/AssemblyInfo.cs +++ b/src/VMware/VMware.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 - VMware")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.7.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.7.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/VMware/VMware.Autorest/docs/Az.VMware.md b/src/VMware/VMware.Autorest/docs/Az.VMware.md index b68508e4ef41..7cd49202f685 100644 --- a/src/VMware/VMware.Autorest/docs/Az.VMware.md +++ b/src/VMware/VMware.Autorest/docs/Az.VMware.md @@ -1,6 +1,6 @@ --- Module Name: Az.VMware -Module Guid: 6bee2b60-5b08-4f28-b776-6dfda4fc70db +Module Guid: 59072186-8bc6-42c8-8532-84ce4b5a0136 Download Help Link: https://learn.microsoft.com/powershell/module/az.vmware Help Version: 1.0.0.0 Locale: en-US diff --git a/src/VMware/VMware.Autorest/docs/New-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/docs/New-AzVMwareAuthorization.md index 60768d3c6cc7..71dd1fac6007 100644 --- a/src/VMware/VMware.Autorest/docs/New-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/docs/New-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareAuthorization ## SYNOPSIS -Create an ExpressRouteAuthorization +Create a ExpressRouteAuthorization ## SYNTAX @@ -32,7 +32,7 @@ New-AzVMwareAuthorization -Name -PrivateCloudInputObject -ResourceGroupName -N ``` ## DESCRIPTION -create a TestLine +Create a TestLine ## EXAMPLES diff --git a/src/VoiceServices/VoiceServices.Autorest/docs/Update-AzVoiceServicesCommunicationsGateway.md b/src/VoiceServices/VoiceServices.Autorest/docs/Update-AzVoiceServicesCommunicationsGateway.md index b5803333f847..2c900c4cc5d6 100644 --- a/src/VoiceServices/VoiceServices.Autorest/docs/Update-AzVoiceServicesCommunicationsGateway.md +++ b/src/VoiceServices/VoiceServices.Autorest/docs/Update-AzVoiceServicesCommunicationsGateway.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVoiceServicesCommunicationsGateway ## SYNOPSIS -update a CommunicationsGateway +Update a CommunicationsGateway ## SYNTAX @@ -38,7 +38,7 @@ Update-AzVoiceServicesCommunicationsGateway -Name -ResourceGroupName ``` ## DESCRIPTION -update a TestLine +Update a TestLine ## EXAMPLES diff --git a/src/VoiceServices/VoiceServices.Autorest/resources/README.md b/src/VoiceServices/VoiceServices.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/VoiceServices/VoiceServices.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/VoiceServices/VoiceServices/AutorestUpgradeLog.md b/src/VoiceServices/VoiceServices/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/VoiceServices/VoiceServices/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/WeightsAndBiases/WeightsAndBiases.Autorest/Properties/AssemblyInfo.cs b/src/WeightsAndBiases/WeightsAndBiases.Autorest/Properties/AssemblyInfo.cs index 71ef53dde5a1..95506db7b967 100644 --- a/src/WeightsAndBiases/WeightsAndBiases.Autorest/Properties/AssemblyInfo.cs +++ b/src/WeightsAndBiases/WeightsAndBiases.Autorest/Properties/AssemblyInfo.cs @@ -20,11 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - WeightsAndBiases")] -[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/WeightsAndBiases/WeightsAndBiases.Autorest/custom/Az.WeightsAndBiases.custom.psm1 b/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/Az.WeightsAndBiases.custom.psm1 index 1da231b90b89..73a3a9fc3646 100644 --- a/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/Az.WeightsAndBiases.custom.psm1 +++ b/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/Az.WeightsAndBiases.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.WeightsAndBiases.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.WeightsAndBiases.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.WeightsAndBiases.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.WeightsAndBiases.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/README.md b/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/README.md index 1592416ee9ca..56a60f3ab122 100644 --- a/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/README.md +++ b/src/WeightsAndBiases/WeightsAndBiases.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.WeightsAndBiases` 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.WeightsAndBiases.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.WeightsAndBiases` 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.WeightsAndBiases.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.WeightsAndBiases.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.WeightsAndBiases.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.WeightsAndBiases`. - `Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.WeightsAndBiases`. 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.WeightsAndBiases`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/docs/Az.WeightsAndBiases.md b/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/Az.WeightsAndBiases.md index 21b0228fd5d8..48a2e1fee677 100644 --- a/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/Az.WeightsAndBiases.md +++ b/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/Az.WeightsAndBiases.md @@ -1,6 +1,6 @@ --- Module Name: Az.WeightsAndBiases -Module Guid: 2049d853-8b10-4827-8e22-252cf1233ac4 +Module Guid: 75c36b8e-515b-40c1-a8c8-b04e540a3191 Download Help Link: https://learn.microsoft.com/powershell/module/az.weightsandbiases Help Version: 1.0.0.0 Locale: en-US diff --git a/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/README.md b/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/README.md index 9404c49a3577..93de19d52a5a 100644 --- a/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/README.md +++ b/src/WeightsAndBiases/WeightsAndBiases.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.WeightsAndBiases` 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.WeightsAndBiases` 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.WeightsAndB - Packaged: yes ## Details -The process of documentation generation loads `Az.WeightsAndBiases` 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.WeightsAndBiases` 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/WeightsAndBiases/WeightsAndBiases.Autorest/resources/README.md b/src/WeightsAndBiases/WeightsAndBiases.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/WeightsAndBiases/WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases.Autorest/test/README.md b/src/WeightsAndBiases/WeightsAndBiases.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/WeightsAndBiases/WeightsAndBiases.Autorest/test/README.md +++ b/src/WeightsAndBiases/WeightsAndBiases.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/WeightsAndBiases/WeightsAndBiases/AutorestUpgradeLog.md b/src/WeightsAndBiases/WeightsAndBiases/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/WeightsAndBiases/WeightsAndBiases/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/Properties/AssemblyInfo.cs b/src/WindowsIotServices/WindowsIotServices.Autorest/Properties/AssemblyInfo.cs index 26ae82af725f..b7354d18f5b7 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/Properties/AssemblyInfo.cs +++ b/src/WindowsIotServices/WindowsIotServices.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 - WindowsIotServices")] -[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/WindowsIotServices/WindowsIotServices.Autorest/docs/Az.WindowsIotServices.md b/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Az.WindowsIotServices.md index 7f874d83d7fc..33b6fdafe6d5 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Az.WindowsIotServices.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Az.WindowsIotServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.WindowsIotServices -Module Guid: b8c0fd61-5572-4480-9641-523c06ddb44c +Module Guid: bb3571e1-28a5-4171-a5bd-afe103f5837c Download Help Link: https://learn.microsoft.com/powershell/module/az.windowsiotservices Help Version: 1.0.0.0 Locale: en-US @@ -15,13 +15,13 @@ Microsoft Azure PowerShell: WindowsIotServices cmdlets Get the non-security related metadata of a Windows IoT Device Service. ### [New-AzWindowsIotServicesDevice](New-AzWindowsIotServicesDevice.md) -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. ### [Remove-AzWindowsIotServicesDevice](Remove-AzWindowsIotServicesDevice.md) Delete a Windows IoT Device Service. ### [Update-AzWindowsIotServicesDevice](Update-AzWindowsIotServicesDevice.md) -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/docs/New-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/WindowsIotServices.Autorest/docs/New-AzWindowsIotServicesDevice.md index 16f602afb270..7fc688c19673 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/docs/New-AzWindowsIotServicesDevice.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/docs/New-AzWindowsIotServicesDevice.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzWindowsIotServicesDevice ## SYNOPSIS -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. ## SYNTAX @@ -36,7 +36,7 @@ New-AzWindowsIotServicesDevice -Name -ResourceGroupName -JsonS ``` ## DESCRIPTION -create the metadata of a Windows IoT Device Service. +Create the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to create the Windows IoT Device Service. ## EXAMPLES diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Update-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Update-AzWindowsIotServicesDevice.md index 3401dbbeefc0..06eecacfc35b 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Update-AzWindowsIotServicesDevice.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/docs/Update-AzWindowsIotServicesDevice.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzWindowsIotServicesDevice ## SYNOPSIS -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. ## SYNTAX @@ -43,7 +43,7 @@ Update-AzWindowsIotServicesDevice -Name -ResourceGroupName -Js ``` ## DESCRIPTION -update the metadata of a Windows IoT Device Service. +Update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. ## EXAMPLES diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/resources/README.md b/src/WindowsIotServices/WindowsIotServices.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/WindowsIotServices/WindowsIotServices.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/WindowsIotServices/WindowsIotServices/AutorestUpgradeLog.md b/src/WindowsIotServices/WindowsIotServices/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/WindowsIotServices/WindowsIotServices/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Workloads/Monitors.Autorest/Properties/AssemblyInfo.cs b/src/Workloads/Monitors.Autorest/Properties/AssemblyInfo.cs index a99b8f8314d3..972414aefaee 100644 --- a/src/Workloads/Monitors.Autorest/Properties/AssemblyInfo.cs +++ b/src/Workloads/Monitors.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 - Monitors")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.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/Workloads/Monitors.Autorest/docs/Az.Monitors.md b/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md index 38ae03a0aba1..dbb8d6c5a8c0 100644 --- a/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md +++ b/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md @@ -1,6 +1,6 @@ --- Module Name: Az.Monitors -Module Guid: c2b5aac3-3ae4-4fa4-9d6a-b7a7834ba0ba +Module Guid: 48c529e1-1d8d-4e9f-8ceb-34c2c5663774 Download Help Link: https://learn.microsoft.com/powershell/module/az.monitors Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md index 5d73fb86ec96..b88b24eb162d 100644 --- a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md @@ -115,7 +115,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/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md index c75fd14d64a4..9efd28c238cf 100644 --- a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md +++ b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md @@ -105,7 +105,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/Workloads/Monitors.Autorest/resources/README.md b/src/Workloads/Monitors.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Workloads/Monitors.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/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs b/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs index a405d39fcc65..787d971e23f0 100644 --- a/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs +++ b/src/Workloads/SapVirtualInstance.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 - SapVirtualInstance")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.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/Workloads/SapVirtualInstance.Autorest/docs/Az.SapVirtualInstance.md b/src/Workloads/SapVirtualInstance.Autorest/docs/Az.SapVirtualInstance.md index 0598c7d8e1c0..fef1d594eda6 100644 --- a/src/Workloads/SapVirtualInstance.Autorest/docs/Az.SapVirtualInstance.md +++ b/src/Workloads/SapVirtualInstance.Autorest/docs/Az.SapVirtualInstance.md @@ -1,6 +1,6 @@ --- Module Name: Az.SapVirtualInstance -Module Guid: 3b3448b8-cc97-45d8-b74d-3456b3c3ac2c +Module Guid: 06387f1f-c469-4e63-b054-19cbba2bb254 Download Help Link: https://learn.microsoft.com/powershell/module/az.sapvirtualinstance Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Workloads/SapVirtualInstance.Autorest/docs/Update-AzWorkloadsSapVirtualInstance.md b/src/Workloads/SapVirtualInstance.Autorest/docs/Update-AzWorkloadsSapVirtualInstance.md index ec8423d03b09..f7f77e296e63 100644 --- a/src/Workloads/SapVirtualInstance.Autorest/docs/Update-AzWorkloadsSapVirtualInstance.md +++ b/src/Workloads/SapVirtualInstance.Autorest/docs/Update-AzWorkloadsSapVirtualInstance.md @@ -112,7 +112,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/Workloads/SapVirtualInstance.Autorest/resources/README.md b/src/Workloads/SapVirtualInstance.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Workloads/SapVirtualInstance.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/Workloads/Workloads/AutorestUpgradeLog.md b/src/Workloads/Workloads/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Workloads/Workloads/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 From 44ac6058b4417f96c4364cb08b614ba6c3703406 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Mon, 19 Jan 2026 00:08:18 +1100 Subject: [PATCH 2/2] update changelog --- src/ServiceBus/ServiceBus/ChangeLog.md | 1 + src/ServiceLinker/ServiceLinker/ChangeLog.md | 1 + src/Site/Site/ChangeLog.md | 1 + src/Sphere/Sphere/ChangeLog.md | 1 + src/SpringCloud/SpringCloud/ChangeLog.md | 1 + src/StackHCIVM/StackHCIVM/ChangeLog.md | 1 + src/StandbyPool/StandbyPool/ChangeLog.md | 1 + src/Storage/Storage/ChangeLog.md | 3 +++ src/StorageAction/StorageAction/ChangeLog.md | 1 + src/StorageCache/StorageCache/ChangeLog.md | 1 + src/StorageMover/StorageMover/ChangeLog.md | 1 + src/StreamAnalytics/StreamAnalytics/ChangeLog.md | 1 + src/Subscription/Subscription/ChangeLog.md | 1 + src/Support/Support/ChangeLog.md | 1 + src/Terraform/Terraform/ChangeLog.md | 1 + src/TrustedSigning/TrustedSigning/ChangeLog.md | 1 + src/VMware/VMware/ChangeLog.md | 1 + src/VoiceServices/VoiceServices/ChangeLog.md | 1 + src/WeightsAndBiases/WeightsAndBiases/ChangeLog.md | 1 + src/WindowsIotServices/WindowsIotServices/ChangeLog.md | 1 + src/Workloads/Workloads/ChangeLog.md | 1 + 21 files changed, 23 insertions(+) create mode 100644 src/Storage/Storage/ChangeLog.md diff --git a/src/ServiceBus/ServiceBus/ChangeLog.md b/src/ServiceBus/ServiceBus/ChangeLog.md index 5f78449272f4..2391bdb548ac 100644 --- a/src/ServiceBus/ServiceBus/ChangeLog.md +++ b/src/ServiceBus/ServiceBus/ChangeLog.md @@ -19,6 +19,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 4.1.1 * Fixed a bug when invoke `Set-AzServiceBusNamespace` with parameter `NoWait` [#26998] diff --git a/src/ServiceLinker/ServiceLinker/ChangeLog.md b/src/ServiceLinker/ServiceLinker/ChangeLog.md index 83b4c382a6d6..5b4683437fc5 100644 --- a/src/ServiceLinker/ServiceLinker/ChangeLog.md +++ b/src/ServiceLinker/ServiceLinker/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). diff --git a/src/Site/Site/ChangeLog.md b/src/Site/Site/ChangeLog.md index 9fff9ac5807c..eb1bc52b670d 100644 --- a/src/Site/Site/ChangeLog.md +++ b/src/Site/Site/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.Site diff --git a/src/Sphere/Sphere/ChangeLog.md b/src/Sphere/Sphere/ChangeLog.md index ce3ce9400a72..312c46b5c087 100644 --- a/src/Sphere/Sphere/ChangeLog.md +++ b/src/Sphere/Sphere/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/SpringCloud/SpringCloud/ChangeLog.md b/src/SpringCloud/SpringCloud/ChangeLog.md index 1ebb81603eb6..3a63b249abd4 100644 --- a/src/SpringCloud/SpringCloud/ChangeLog.md +++ b/src/SpringCloud/SpringCloud/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/StackHCIVM/StackHCIVM/ChangeLog.md b/src/StackHCIVM/StackHCIVM/ChangeLog.md index 7dbbc0993e6a..c92bd8bdd274 100644 --- a/src/StackHCIVM/StackHCIVM/ChangeLog.md +++ b/src/StackHCIVM/StackHCIVM/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.1.0 * Upgraded nuget package to signed package. diff --git a/src/StandbyPool/StandbyPool/ChangeLog.md b/src/StandbyPool/StandbyPool/ChangeLog.md index 7a75f92cac28..bf82cec035e5 100644 --- a/src/StandbyPool/StandbyPool/ChangeLog.md +++ b/src/StandbyPool/StandbyPool/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 * Updated existing Cmdlets diff --git a/src/Storage/Storage/ChangeLog.md b/src/Storage/Storage/ChangeLog.md new file mode 100644 index 000000000000..da6d0047e1fb --- /dev/null +++ b/src/Storage/Storage/ChangeLog.md @@ -0,0 +1,3 @@ +## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 + diff --git a/src/StorageAction/StorageAction/ChangeLog.md b/src/StorageAction/StorageAction/ChangeLog.md index e439ca3ea51f..f8d30266c87d 100644 --- a/src/StorageAction/StorageAction/ChangeLog.md +++ b/src/StorageAction/StorageAction/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.0.0 * General availability for module Az.StorageAction diff --git a/src/StorageCache/StorageCache/ChangeLog.md b/src/StorageCache/StorageCache/ChangeLog.md index 39d0c6a2463d..7e7e8ee916dd 100644 --- a/src/StorageCache/StorageCache/ChangeLog.md +++ b/src/StorageCache/StorageCache/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 support for Import, AutoExport and AutoImport HSM Jobs diff --git a/src/StorageMover/StorageMover/ChangeLog.md b/src/StorageMover/StorageMover/ChangeLog.md index 81d1ec0ab734..ca70b2fb1c59 100644 --- a/src/StorageMover/StorageMover/ChangeLog.md +++ b/src/StorageMover/StorageMover/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/StreamAnalytics/StreamAnalytics/ChangeLog.md b/src/StreamAnalytics/StreamAnalytics/ChangeLog.md index 8a749f983c4d..ca57dd6e930b 100644 --- a/src/StreamAnalytics/StreamAnalytics/ChangeLog.md +++ b/src/StreamAnalytics/StreamAnalytics/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 * 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/Subscription/Subscription/ChangeLog.md b/src/Subscription/Subscription/ChangeLog.md index 51da1a675fd7..fa17029b0fe4 100644 --- a/src/Subscription/Subscription/ChangeLog.md +++ b/src/Subscription/Subscription/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.12.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/Support/Support/ChangeLog.md b/src/Support/Support/ChangeLog.md index d58a43232bb0..63af5771db3c 100644 --- a/src/Support/Support/ChangeLog.md +++ b/src/Support/Support/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.1.0 * Upgraded nuget package to signed package. diff --git a/src/Terraform/Terraform/ChangeLog.md b/src/Terraform/Terraform/ChangeLog.md index 5865bf2baaf4..59f62444f33b 100644 --- a/src/Terraform/Terraform/ChangeLog.md +++ b/src/Terraform/Terraform/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.2 * Upgraded nuget package to signed package. diff --git a/src/TrustedSigning/TrustedSigning/ChangeLog.md b/src/TrustedSigning/TrustedSigning/ChangeLog.md index 9a163501931e..d90d837f905e 100644 --- a/src/TrustedSigning/TrustedSigning/ChangeLog.md +++ b/src/TrustedSigning/TrustedSigning/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 * Updated Azure.Core from 1.47.3 to 1.50.0 ## Version 0.1.3 diff --git a/src/VMware/VMware/ChangeLog.md b/src/VMware/VMware/ChangeLog.md index 8396b5c641ee..d819587ff4da 100644 --- a/src/VMware/VMware/ChangeLog.md +++ b/src/VMware/VMware/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.8.0 * Updated the AVS VMware cmdlets api version to `2024-09-01`. diff --git a/src/VoiceServices/VoiceServices/ChangeLog.md b/src/VoiceServices/VoiceServices/ChangeLog.md index a8e27561c76a..c8417c3632b9 100644 --- a/src/VoiceServices/VoiceServices/ChangeLog.md +++ b/src/VoiceServices/VoiceServices/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/WeightsAndBiases/WeightsAndBiases/ChangeLog.md b/src/WeightsAndBiases/WeightsAndBiases/ChangeLog.md index 3cfc84b78bfb..c5d18a885eb3 100644 --- a/src/WeightsAndBiases/WeightsAndBiases/ChangeLog.md +++ b/src/WeightsAndBiases/WeightsAndBiases/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.WeightsAndBiases diff --git a/src/WindowsIotServices/WindowsIotServices/ChangeLog.md b/src/WindowsIotServices/WindowsIotServices/ChangeLog.md index a862114c9e25..f2e3a8499eaf 100644 --- a/src/WindowsIotServices/WindowsIotServices/ChangeLog.md +++ b/src/WindowsIotServices/WindowsIotServices/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/Workloads/Workloads/ChangeLog.md b/src/Workloads/Workloads/ChangeLog.md index 9d254f73d8e5..f4fe20479871 100644 --- a/src/Workloads/Workloads/ChangeLog.md +++ b/src/Workloads/Workloads/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).