diff --git a/ChangeLog.md b/ChangeLog.md
index fcc9528eff10..9d5c3216af49 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,122 @@
+## 10.2.0 - August 2023
+#### Az.Accounts 2.12.5
+* Changed output stream from debug stream to warning stream for 'CmdletPreviewAttribute'
+* Decreased the prompted frequency of preview warning message to once per cmdlet in one session
+* Reworded default preview message and added estimated GA date for 'CmdletPreviewAttribute'
+* Updated Azure.Core to 1.33.0
+
+#### Az.AppConfiguration 1.3.0
+* Added cmdlets to support data plane operation:
+ - 'Get-AzAppConfigurationKey'
+ - 'Get-AzAppConfigurationKeyValue'
+ - 'Get-AzAppConfigurationLabel'
+ - 'Get-AzAppConfigurationRevision'
+ - 'Remove-AzAppConfigurationKeyValue'
+ - 'Remove-AzAppConfigurationLock'
+ - 'Set-AzAppConfigurationKeyValue'
+ - 'Set-AzAppConfigurationLock'
+ - 'Test-AzAppConfigurationKeyValue'
+
+#### Az.Batch 3.5.0
+* Removed cmdlets: 'Get-AzBatchPoolStatistic' and 'Get-AzBatchJobStatistic'
+* Deprecated cmdlets: 'Get-AzBatchCertificate' and 'New-AzBatchCertificate'
+ - The Batch account certificates feature is deprecated. Please transition to using Azure Key Vault to securely access and install certificates on your Batch pools, [learn more](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide)
+
+#### Az.Compute 6.2.0
+* Fixed the 'Update-AzVmss' cmdlet so the 'AutomaticRepairGracePeriod', 'AutomaticRepairAction', and 'EnableAutomaticRepair' parameters function correctly.
+* Updated help doc for 'New-AzVM', 'New-AzVMConfig', 'New-AzVmss', 'New-AzVmssConfig', 'Update-AzVM', and 'Update-AzVmss' to include parameters that were previously added for Trusted Launch features.
+* Updated Azure.Core to 1.33.0.
+
+#### Az.ContainerRegistry 4.1.0
+* Updated Azure.Core to 1.33.0.
+* Added new cmdlet 'New-AzContainerRegistryCredentials'
+
+#### Az.CosmosDB 1.11.2
+* Updated Azure.Core to 1.33.0.
+
+#### Az.Databricks 1.7.0
+* Added some parameters in 'Update-AzDatabricksWorkspace':
+ - 'EnableNoPublicIP'
+ - 'PublicNetworkAccess'
+
+#### Az.DataFactory 1.17.0
+* Added DisablePublish to Set_AzDataFactoryV2 Command
+
+#### Az.Dns 1.1.3
+* Removed length validation for DNS TXT record to make it consistent with Azure CLI and Azure portal.
+
+#### Az.KeyVault 4.10.1
+* Removed maximum number for 'IpAddressRange' and 'VirtualNetworkResourceId' in '*-AzKeyVaultNetworkRuleSet*' from client side. [#22137]
+* Updated Azure.Core to 1.33.0.
+
+#### Az.Maintenance 1.3.0
+* Added support for Resource Group and Subscription configuration assignment.
+
+#### Az.Network 6.1.1
+* Onboarded 'Microsoft.ElasticSan/elasticSans' to private link cmdlets
+
+#### Az.PolicyInsights 1.6.2
+* Updated Azure.Core to 1.33.0.
+
+#### Az.PrivateDns 1.0.4
+* Removed length validation for DNS TXT record to make it consistent with Azure CLI and Azure portal.
+
+#### Az.Resources 6.9.0
+* Fixed the issue that 'New-AzRoleAssignment' didn't work without subscription.
+* Added cmdlets for group owner
+ - 'Get-AzADGroupOwner'
+ - 'New-AzADGroupOwner'
+ - 'Remove-AzADGroupOwner'
+* Updated Tags functionality in deployment stacks New and Set cmdlets
+
+#### Az.Sql 4.9.0
+* Added new cmdlets for Azure SQL Managed Instance start/stop schedule
+ - 'Start-AzSqlInstance',
+ - 'Stop-AzSqlInstance',
+ - 'Get-AzSqlInstanceStartStopSchedule',
+ - 'New-AzSqlInstanceStartStopSchedule',
+ - 'Remove-AzSqlInstanceStartStopSchedule',
+ - 'New-AzSqlInstanceScheduleItem'
+
+#### Az.StackHCI 2.1.0
+* Updated to api-version 2023-03-01.
+* Cmdlets added:
+ - Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit : Enable Software Assurance for a cluster
+ - Invoke-AzStackHciConsentAndInstallDefaultExtensions : Consent to installing default extensions on the cluster
+
+#### Az.Storage 5.9.0
+* Supported OAuth authentication on File service cmdlets
+ - 'New-AzStorageContext'
+ - 'Get-AzStorageFile'
+ - 'Get-AzStorageFileContent'
+ - 'Get-AzStorageFileCopyState'
+ - 'New-AzStorageDirectory'
+ - 'Remove-AzStorageDirectory'
+ - 'Remove-AzStorageFile'
+ - 'Set-AzStorageFileContent'
+ - 'Start-AzStorageFileCopy'
+ - 'Stop-AzStorageFileCopy'
+ - 'Get-AzStorageFileHandle'
+ - 'Close-AzStorageFileHandle'
+* Supported get a file share object without get share properties. For pipeline to file/directory cmdlets with OAuth authentication.
+ - 'Get-AzStorageShare'
+* Updated Azure.Core to 1.33.0.
+
+#### Az.Synapse 3.0.2
+* Updated Azure.Core to 1.33.0.
+
+#### Az.Websites 3.1.0
+* Added AppServicePlan management support for P0V3 and P*mv3 tiers
+
+### Thanks to our community contributors
+* Dante Stancato (@dantecit0), Update Set-AzFirewall.md (#22224)
+* Hiroshi Yoshioka (@hyoshioka0128), Typo "flexible server"→"Flexible Server" (#22215)
+* @Jingshu918, [DataFactory]Added DisablePublish to Set_AzDataFactoryV2 Command (#22273)
+* Miguel Vega (@miguel-vega), Updated Example 3 of the Connect-AzAccount.md page to use the correct PowerShell variable. (#22376)
+* @Skatterbrainz, Update Remove-AzVM.md (#22378)
+* @veppala, added examples for New-AzSqlVM cmdlet (#22185)
+* @vladik-hbinov, Fixed Example 2 (#22193)
+
## 10.1.0 - July 2023
#### Az.Accounts 2.12.4
* Changed 'gallery' property to be optional in ARM metadata of 'Set-AzEnvironment' and 'Add-AzEnvironment'[#22037].
diff --git a/documentation/breaking-changes/upcoming-breaking-changes.md b/documentation/breaking-changes/upcoming-breaking-changes.md
index cf7ddefaa1ab..bb4bc16a6d5e 100644
--- a/documentation/breaking-changes/upcoming-breaking-changes.md
+++ b/documentation/breaking-changes/upcoming-breaking-changes.md
@@ -7,7 +7,7 @@
- Parameter breaking-change will happen to all parameter sets
- `-DockerBridgeCidr`
- DockerBridgeCidr parameter will be deprecated in Az 11.0.0 without being replaced.
- - This change is expected to take effect from Az.Aks version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
## Az.Compute
@@ -15,25 +15,25 @@
- Cmdlet breaking-change will happen to all parameter set
- Starting in November 2023 the "New-AzDisk" cmdlet will deploy with the Trusted Launch configuration by default. This includes defaulting the "HyperVGeneration" parameter to "v2". To know more about Trusted Launch, please visit https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch
- - This change is expected to take effect from Az.Compute version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
### `New-AzVM`
- Cmdlet breaking-change will happen to all parameter set
- Consider using the image alias including the version of the distribution you want to use in the "-Image" parameter of the "New-AzVM" cmdlet. On April 30, 2023, the image deployed using `UbuntuLTS` will reach its end of life. In October 2023, the aliases `UbuntuLTS`, `CentOS`, `Debian`, and `RHEL` will be removed.
- - This change is expected to take effect from Az.Compute version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
- Starting in November 2023 the "New-AzVM" cmdlet will deploy with the Trusted Launch configuration by default. To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch
- - This change is expected to take effect from Az.Compute version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
### `New-AzVmss`
- Cmdlet breaking-change will happen to all parameter set
- Starting November 2023, the "New-AzVmss" cmdlet will default to Trusted Launch VMSS. For more info, visit https://aka.ms/trustedLaunchVMSS.
- - This change is expected to take effect from Az.Compute version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
- Starting November 2023, the "New-AzVmss" cmdlet will use new defaults: Flexible orchestration mode and enable NATv2 configuration for Load Balancer. To learn more about Flexible Orchestration modes, visit https://aka.ms/orchestrationModeVMSS.
- - This change is expected to take effect from Az.Compute version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
- Consider using the image alias including the version of the distribution you want to use in the "-ImageName" parameter of the "New-AzVmss" cmdlet. On April 30, 2023, the image deployed using `UbuntuLTS` will reach its end of life. In November 2023, the aliases `UbuntuLTS`, `CentOS`, `Debian`, and `RHEL` will be removed.
- - This change is expected to take effect from Az.Compute version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
## Az.DesktopVirtualization
@@ -42,7 +42,19 @@
- Parameter breaking-change will happen to all parameter sets
- `-HostPoolType`
- The parameter : 'HostPoolType' is changing.
- - The change is expected to take effect from the Az.DesktopVirtualization version : '4.0.0'
+ - The change is expected to take effect from the version : '4.0.0'
+
+## Az.Maintenance
+
+### `New-AzMaintenanceConfiguration`
+
+- Parameter breaking-change will happen to all parameter sets
+ - `-PostTask`
+ - Parameter is being deprecated without being replaced
+ - This change is expected to take effect from version: 1.2.2 and Az version: 10.2.0
+ - `-PreTask`
+ - Parameter is being deprecated without being replaced
+ - This change is expected to take effect from version: 1.2.2 and Az version: 10.2.0
## Az.PowerBIEmbedded
@@ -50,37 +62,37 @@
- Cmdlet breaking-change will happen to all parameter set
- The cmdlet is being deprecated. There will be no replacement for it.
- - This change is expected to take effect from Az.PowerBIEmbedded version: 2.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 2.0.0 and Az version: 11.0.0
### `Get-AzPowerBIWorkspaceCollection`
- Cmdlet breaking-change will happen to all parameter set
- The cmdlet is being deprecated. There will be no replacement for it.
- - This change is expected to take effect from Az.PowerBIEmbedded version: 2.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 2.0.0 and Az version: 11.0.0
### `Get-AzPowerBIWorkspaceCollectionAccessKey`
- Cmdlet breaking-change will happen to all parameter set
- The cmdlet is being deprecated. There will be no replacement for it.
- - This change is expected to take effect from Az.PowerBIEmbedded version: 2.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 2.0.0 and Az version: 11.0.0
### `New-AzPowerBIWorkspaceCollection`
- Cmdlet breaking-change will happen to all parameter set
- The cmdlet is being deprecated. There will be no replacement for it.
- - This change is expected to take effect from Az.PowerBIEmbedded version: 2.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 2.0.0 and Az version: 11.0.0
### `Remove-AzPowerBIWorkspaceCollection`
- Cmdlet breaking-change will happen to all parameter set
- The cmdlet is being deprecated. There will be no replacement for it.
- - This change is expected to take effect from Az.PowerBIEmbedded version: 2.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 2.0.0 and Az version: 11.0.0
### `Reset-AzPowerBIWorkspaceCollectionAccessKey`
- Cmdlet breaking-change will happen to all parameter set
- The cmdlet is being deprecated. There will be no replacement for it.
- - This change is expected to take effect from Az.PowerBIEmbedded version: 2.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 2.0.0 and Az version: 11.0.0
## Az.RecoveryServices
@@ -89,7 +101,7 @@
- Parameter breaking-change will happen to all parameter sets
- `-Certificate`
- Parameter is being deprecated without being replaced
- - This change is expected to take effect from Az.RecoveryServices version: 7.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 7.0.0 and Az version: 11.0.0
## Az.Storage
@@ -97,68 +109,69 @@
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageAccount`
- Cmdlet breaking-change will happen to all parameter set
- - Default value of AllowBlobPublicAccess and AllowCrossTenantReplication will be changed from True to False in a future release.
- When AllowBlobPublicAccess is False on a storage account, it is not permitted to configure container ACLs to allow anonymous access to blobs within the storage account.
+ - Default value of AllowBlobPublicAccess and AllowCrossTenantReplication will be changed from True to False in a future release.
+ When AllowBlobPublicAccess is False on a storage account, it is not permitted to configure container ACLs to allow anonymous access to blobs within the storage account.
When AllowCrossTenantReplication is False on a storage account, cross AAD tenant object replication is not allowed.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageAccountSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageBlobSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageContainerSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageContext`
- Parameter breaking-change will happen to all parameter sets
- `-SasToken`
- The SAS token in created Storage context properties 'ConnectionString' and 'StorageAccount.Credentials' won't have the leading question mark '?' in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageFileSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageQueueSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageShareSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `New-AzStorageTableSASToken`
- Cmdlet breaking-change will happen to all parameter set
- The leading question mark '?' of the created SAS token will be removed in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
### `Set-AzStorageAccount`
- Parameter breaking-change will happen to all parameter sets
- `-EnableLargeFileShare`
- EnableLargeFileShare parameter will be deprecated in a future release.
- - This change is expected to take effect from Az.Storage version: 6.0.0 and Az version: 11.0.0
+ - This change is expected to take effect from version: 6.0.0 and Az version: 11.0.0
+
diff --git a/setup/generate.ps1 b/setup/generate.ps1
index 3d225d6d86fa..3002a2afbfd0 100644
--- a/setup/generate.ps1
+++ b/setup/generate.ps1
@@ -37,7 +37,7 @@ if( (-not (get-command -ea 0 light)) -or (-not (get-command -ea 0 heat)) -or (-n
$outputName ="Az-Cmdlets"
# generate the product name from the current month/year.
-$productName = "Microsoft Azure PowerShell - July 2023"
+$productName = "Microsoft Azure PowerShell - August 2023"
# where to put temp files
$tmp = Join-Path $env:temp azure-cmdlets-tmp
diff --git a/src/Accounts/Accounts/Az.Accounts.psd1 b/src/Accounts/Accounts/Az.Accounts.psd1
index 1d46c674d65c..f35e08dd7bca 100644
--- a/src/Accounts/Accounts/Az.Accounts.psd1
+++ b/src/Accounts/Accounts/Az.Accounts.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 06/29/2023
+# Generated on: 26/07/2023
#
@{
@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
-ModuleVersion = '2.12.4'
+ModuleVersion = '2.12.5'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -147,7 +147,10 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Changed ''gallery'' property to be optional in ARM metadata of ''Set-AzEnvironment'' and ''Add-AzEnvironment''[#22037].'
+ ReleaseNotes = '* Changed output stream from debug stream to warning stream for ''CmdletPreviewAttribute''
+* Decreased the prompted frequency of preview warning message to once per cmdlet in one session
+* Reworded default preview message and added estimated GA date for ''CmdletPreviewAttribute''
+* Updated Azure.Core to 1.33.0'
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md
index 1b384609445c..7cc0e906d96e 100644
--- a/src/Accounts/Accounts/ChangeLog.md
+++ b/src/Accounts/Accounts/ChangeLog.md
@@ -19,6 +19,9 @@
-->
## Upcoming Release
+* Updated the reference of Azure PowerShell Common to 1.3.82-preview.
+
+## Version 2.12.5
* Changed output stream from debug stream to warning stream for `CmdletPreviewAttribute`
* Decreased the prompted frequency of preview warning message to once per cmdlet in one session
* Reworded default preview message and added estimated GA date for `CmdletPreviewAttribute`
diff --git a/src/Accounts/Accounts/Properties/AssemblyInfo.cs b/src/Accounts/Accounts/Properties/AssemblyInfo.cs
index 225f3b2527c6..da5068b97205 100644
--- a/src/Accounts/Accounts/Properties/AssemblyInfo.cs
+++ b/src/Accounts/Accounts/Properties/AssemblyInfo.cs
@@ -43,8 +43,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("2.12.4")]
-[assembly: AssemblyFileVersion("2.12.4")]
+[assembly: AssemblyVersion("2.12.5")]
+[assembly: AssemblyFileVersion("2.12.5")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
#endif
diff --git a/src/Accounts/Accounts/Utilities/CommandMappings.json b/src/Accounts/Accounts/Utilities/CommandMappings.json
index ed2a046c842a..4a6e5d53cc29 100644
--- a/src/Accounts/Accounts/Utilities/CommandMappings.json
+++ b/src/Accounts/Accounts/Utilities/CommandMappings.json
@@ -104,6 +104,20 @@
"Get-AzAksClusterUpgradeProfile": {},
"Install-AzAksKubectl": {}
},
+ "Az.Alb": {
+ "Get-AzAlb": {},
+ "Get-AzAlbAssociation": {},
+ "Get-AzAlbFrontend": {},
+ "New-AzAlb": {},
+ "New-AzAlbAssociation": {},
+ "New-AzAlbFrontend": {},
+ "Remove-AzAlb": {},
+ "Remove-AzAlbAssociation": {},
+ "Remove-AzAlbFrontend": {},
+ "Update-AzAlb": {},
+ "Update-AzAlbAssociation": {},
+ "Update-AzAlbFrontend": {}
+ },
"Az.AlertsManagement": {
"Get-AzAlert": {},
"Get-AzAlertObjectHistory": {},
@@ -344,7 +358,16 @@
"Test-AzAppConfigurationStoreNameAvailability": {},
"Update-AzAppConfigurationStore": {},
"Clear-AzAppConfigurationDeletedStore": {},
- "Get-AzAppConfigurationDeletedStore": {}
+ "Get-AzAppConfigurationDeletedStore": {},
+ "Get-AzAppConfigurationKey": {},
+ "Get-AzAppConfigurationKeyValue": {},
+ "Get-AzAppConfigurationLabel": {},
+ "Get-AzAppConfigurationRevision": {},
+ "Remove-AzAppConfigurationKeyValue": {},
+ "Remove-AzAppConfigurationLock": {},
+ "Set-AzAppConfigurationKeyValue": {},
+ "Set-AzAppConfigurationLock": {},
+ "Test-AzAppConfigurationKeyValue": {}
},
"Az.ApplicationInsights": {
"Get-AzApplicationInsights": {},
@@ -542,7 +565,6 @@
"New-AzBatchAccountKey": {},
"Set-AzBatchAccount": {},
"New-AzBatchApplicationPackage": {},
- "Get-AzBatchJobStatistic": {},
"Remove-AzBatchApplication": {},
"Remove-AzBatchApplicationPackage": {},
"Get-AzBatchApplicationPackage": {},
@@ -578,7 +600,6 @@
"Get-AzBatchJobPreparationAndReleaseTaskStatus": {},
"Disable-AzBatchAutoScale": {},
"Enable-AzBatchAutoScale": {},
- "Get-AzBatchPoolStatistic": {},
"Get-AzBatchPoolUsageMetric": {},
"Get-AzBatchPool": {},
"Get-AzBatchSupportedImage": {},
@@ -612,10 +633,8 @@
"Reactivate-AzBatchTask": {},
"Get-AzBatchSubscriptionQuotas": {},
"Get-AzBatchAccountKeys": {},
- "Get-AzBatchJobStatistics": {},
"Get-AzBatchLocationQuotas": {},
"Get-AzBatchPoolNodeCounts": {},
- "Get-AzBatchPoolStatistics": {},
"Get-AzBatchPoolUsageMetrics": {},
"Get-AzBatchRemoteLoginSettings": {},
"Get-AzBatchTaskCounts": {},
@@ -1319,7 +1338,8 @@
"Update-AzContainerRegistryCredential": {},
"Update-AzContainerRegistryScopeMap": {},
"Update-AzContainerRegistryToken": {},
- "Update-AzContainerRegistryWebhook": {}
+ "Update-AzContainerRegistryWebhook": {},
+ "New-AzContainerRegistryCredentials": {}
},
"Az.CosmosDB": {
"Get-AzCosmosDBSqlContainer": {},
@@ -2513,6 +2533,12 @@
"Update-AzFunctionAppPlan": {},
"Update-AzFunctionAppSetting": {}
},
+ "Az.GraphServices": {
+ "Get-AzGraphServicesAccount": {},
+ "New-AzGraphServicesAccount": {},
+ "Remove-AzGraphServicesAccount": {},
+ "Update-AzGraphServicesAccount": {}
+ },
"Az.GuestConfiguration": {
"Get-AzGuestConfigurationAssignment": {},
"Get-AzGuestConfigurationAssignmentReport": {},
@@ -3394,6 +3420,7 @@
"New-AzMobileNetworkSliceConfigurationObject": {},
"Remove-AzMobileNetwork": {},
"Remove-AzMobileNetworkAttachedDataNetwork": {},
+ "Remove-AzMobileNetworkBulkSimDelete": {},
"Remove-AzMobileNetworkDataNetwork": {},
"Remove-AzMobileNetworkPacketCoreControlPlane": {},
"Remove-AzMobileNetworkPacketCoreDataPlane": {},
@@ -3406,6 +3433,8 @@
"Trace-AzMobileNetworkCollectPacketCoreControlPlaneDiagnosticPackage": {},
"Update-AzMobileNetwork": {},
"Update-AzMobileNetworkAttachedDataNetwork": {},
+ "Update-AzMobileNetworkBulkSimUpload": {},
+ "Update-AzMobileNetworkBulkSimUploadEncrypted": {},
"Update-AzMobileNetworkDataNetwork": {},
"Update-AzMobileNetworkPacketCoreControlPlane": {},
"Update-AzMobileNetworkPacketCoreDataPlane": {},
@@ -3614,6 +3643,8 @@
"New-AzNetAppFilesVolumeQuotaRule": {},
"Update-AzNetAppFilesVolumeQuotaRule": {},
"Remove-AzNetAppFilesVolumeQuotaRule": {},
+ "Get-AzNetAppFilesVolumeGroupIdListForLDAPUser": {},
+ "Get-AzNetAppFilesRegionInfo": {},
"Get-AnfAccount": {},
"New-AnfAccount": {},
"Remove-AnfAccount": {},
@@ -3679,7 +3710,9 @@
"Get-AnfVolumeQuotaRule": {},
"New-AnfVolumeQuotaRule": {},
"Update-AnfVolumeQuotaRule": {},
- "Remove-AnfVolumeQuotaRule": {}
+ "Remove-AnfVolumeQuotaRule": {},
+ "Get-AnfVolumeGroupIdListForLDAPUser": {},
+ "Get-AnfRegionInfo": {}
},
"Az.Network": {
"Add-AzApplicationGatewayAuthenticationCertificate": {},
@@ -4463,6 +4496,25 @@
"Update-AzNetworkFunctionTrafficCollector": {},
"Update-AzNetworkFunctionTrafficCollectorTag": {}
},
+ "Az.NewRelic": {
+ "Get-AzNewRelicAccount": {},
+ "Get-AzNewRelicMonitor": {},
+ "Get-AzNewRelicMonitorAppService": {},
+ "Get-AzNewRelicMonitorHost": {},
+ "Get-AzNewRelicMonitorMetricRule": {},
+ "Get-AzNewRelicMonitorMetricStatus": {},
+ "Get-AzNewRelicMonitorMonitoredResource": {},
+ "Get-AzNewRelicMonitorTagRule": {},
+ "Get-AzNewRelicOrganization": {},
+ "Get-AzNewRelicPlan": {},
+ "Invoke-AzNewRelicHostMonitor": {},
+ "New-AzNewRelicMonitor": {},
+ "New-AzNewRelicMonitorTagRule": {},
+ "Remove-AzNewRelicMonitor": {},
+ "Remove-AzNewRelicMonitorTagRule": {},
+ "Switch-AzNewRelicMonitorBilling": {},
+ "Update-AzNewRelicMonitorTagRule": {}
+ },
"Az.Nginx": {
"Get-AzNginxCertificate": {},
"Get-AzNginxConfiguration": {},
@@ -4605,6 +4657,43 @@
"Update-AzOrbitalContactProfile": {},
"Update-AzOrbitalSpacecraft": {}
},
+ "Az.PaloAltoNetworks": {
+ "Get-AzPaloAltoNetworksCertificateObjectLocalRulestack": {},
+ "Get-AzPaloAltoNetworksFirewall": {},
+ "Get-AzPaloAltoNetworksFirewallLogProfile": {},
+ "Get-AzPaloAltoNetworksFirewallStatus": {},
+ "Get-AzPaloAltoNetworksFqdnListLocalRulestack": {},
+ "Get-AzPaloAltoNetworksLocalRule": {},
+ "Get-AzPaloAltoNetworksLocalRulestack": {},
+ "Get-AzPaloAltoNetworksLocalRulestackAppId": {},
+ "Get-AzPaloAltoNetworksLocalRulestackChangeLog": {},
+ "Get-AzPaloAltoNetworksLocalRulestackFirewall": {},
+ "Get-AzPaloAltoNetworksLocalRulestackSupportInfo": {},
+ "Get-AzPaloAltoNetworksPrefixListLocalRulestack": {},
+ "Invoke-AzPaloAltoNetworksCommitLocalRulestack": {},
+ "Invoke-AzPaloAltoNetworksRevertLocalRulestack": {},
+ "New-AzPaloAltoNetworksCertificateObjectLocalRulestack": {},
+ "New-AzPaloAltoNetworksFirewall": {},
+ "New-AzPaloAltoNetworksFqdnListLocalRulestack": {},
+ "New-AzPaloAltoNetworksFrontendSettingObject": {},
+ "New-AzPaloAltoNetworksIPAddressObject": {},
+ "New-AzPaloAltoNetworksLocalRule": {},
+ "New-AzPaloAltoNetworksLocalRulestack": {},
+ "New-AzPaloAltoNetworksPrefixListLocalRulestack": {},
+ "New-AzPaloAltoNetworksProfileObject": {},
+ "New-AzPaloAltoNetworksTagInfoObject": {},
+ "Remove-AzPaloAltoNetworksCertificateObjectLocalRulestack": {},
+ "Remove-AzPaloAltoNetworksFirewall": {},
+ "Remove-AzPaloAltoNetworksFqdnListLocalRulestack": {},
+ "Remove-AzPaloAltoNetworksLocalRule": {},
+ "Remove-AzPaloAltoNetworksLocalRulestack": {},
+ "Remove-AzPaloAltoNetworksPrefixListLocalRulestack": {},
+ "Reset-AzPaloAltoNetworksLocalRuleCounter": {},
+ "Save-AzPaloAltoNetworksFirewallLogProfile": {},
+ "Update-AzPaloAltoNetworksFirewall": {},
+ "Update-AzPaloAltoNetworksLocalRuleCounter": {},
+ "Update-AzPaloAltoNetworksLocalRulestack": {}
+ },
"Az.Peering": {
"Get-AzPeering": {},
"Get-AzPeeringAsn": {},
@@ -4882,6 +4971,15 @@
"Start-AzPurviewScanResultScan": {},
"Stop-AzPurviewScanResultScan": {}
},
+ "Az.Quantum": {
+ "Get-AzQuantumOffering": {},
+ "Get-AzQuantumWorkspace": {},
+ "New-AzQuantumProviderObject": {},
+ "New-AzQuantumWorkspace": {},
+ "Remove-AzQuantumWorkspace": {},
+ "Test-AzQuantumWorkspaceNameAvailability": {},
+ "Update-AzQuantumWorkspace": {}
+ },
"Az.Qumulo": {
"Get-AzQumuloFileSystem": {},
"New-AzQumuloFileSystem": {},
@@ -5411,6 +5509,9 @@
"Remove-AzADAppFederatedCredential": {},
"Update-AzADAppFederatedCredential": {},
"Get-AzADOrganization": {},
+ "Get-AzADGroupOwner": {},
+ "New-AzADGroupOwner": {},
+ "Remove-AzADGroupOwner": {},
"Get-AzResourceProviderAction": {},
"Get-AzADServicePrincipalCredential": {},
"New-AzADServicePrincipalCredential": {},
@@ -6162,6 +6263,12 @@
"Stop-AzSqlInstanceDatabaseCopy": {},
"Get-AzSqlInstanceDatabaseCopyOperation": {},
"Get-AzSqlInstanceDatabaseMoveOperation": {},
+ "Start-AzSqlInstance": {},
+ "Stop-AzSqlInstance": {},
+ "Get-AzSqlInstanceStartStopSchedule": {},
+ "New-AzSqlInstanceStartStopSchedule": {},
+ "Remove-AzSqlInstanceStartStopSchedule": {},
+ "New-AzSqlInstanceScheduleItem": {},
"Get-AzSqlDatabaseServerAuditingPolicy": {},
"Remove-AzSqlDatabaseServerAuditing": {},
"Set-AzSqlDatabaseServerAuditingPolicy": {},
@@ -6208,6 +6315,8 @@
"Get-AzStackHCIRemoteSupportSessionHistory": {},
"Get-AzStackHCIVMAttestation": {},
"Install-AzStackHCIRemoteSupport": {},
+ "Invoke-AzStackHciConsentAndInstallDefaultExtension": {},
+ "Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit": {},
"New-AzStackHciArcSetting": {},
"New-AzStackHciCluster": {},
"New-AzStackHciExtension": {},
@@ -6400,6 +6509,48 @@
"Get-AzDatalakeGen2FileSystem": {},
"New-AzDataLakeGen2ItemAclObject": {}
},
+ "Az.StorageCache": {
+ "Clear-AzStorageCache": {},
+ "Clear-AzStorageCacheTarget": {},
+ "Debug-AzStorageCache": {},
+ "Get-AzStorageCache": {},
+ "Get-AzStorageCacheAmlFileSystem": {},
+ "Get-AzStorageCacheAmlFileSystemSubnetRequiredSize": {},
+ "Get-AzStorageCacheAscUsage": {},
+ "Get-AzStorageCacheSku": {},
+ "Get-AzStorageCacheTarget": {},
+ "Get-AzStorageCacheUsageModel": {},
+ "Invoke-AzStorageCacheAmlFileSystemArchive": {},
+ "Invoke-AzStorageCacheInvalidateTarget": {},
+ "New-AzStorageCache": {},
+ "New-AzStorageCacheAmlFileSystem": {},
+ "New-AzStorageCacheDirectorySettingObject": {},
+ "New-AzStorageCacheNamespaceJunctionObject": {},
+ "New-AzStorageCacheNfsAccessPolicyObject": {},
+ "New-AzStorageCacheNfsAccessRuleObject": {},
+ "New-AzStorageCachePrimingJobObject": {},
+ "New-AzStorageCacheTarget": {},
+ "New-AzStorageCacheTargetSpaceAllocationObject": {},
+ "Remove-AzStorageCache": {},
+ "Remove-AzStorageCacheAmlFileSystem": {},
+ "Remove-AzStorageCacheTarget": {},
+ "Restore-AzStorageCacheTargetSetting": {},
+ "Resume-AzStorageCachePrimingJob": {},
+ "Resume-AzStorageCacheTarget": {},
+ "Start-AzStorageCache": {},
+ "Start-AzStorageCachePrimingJob": {},
+ "Stop-AzStorageCache": {},
+ "Stop-AzStorageCacheAmlFilesystemArchive": {},
+ "Stop-AzStorageCachePrimingJob": {},
+ "Suspend-AzStorageCachePrimingJob": {},
+ "Suspend-AzStorageCacheTarget": {},
+ "Test-AzStorageCacheAmlFileSystemSubnet": {},
+ "Update-AzStorageCache": {},
+ "Update-AzStorageCacheAmlFileSystem": {},
+ "Update-AzStorageCacheFirmware": {},
+ "Update-AzStorageCacheSpaceAllocation": {},
+ "Update-AzStorageCacheTargetDns": {}
+ },
"Az.StorageMover": {
"Get-AzStorageMover": {},
"Get-AzStorageMoverAgent": {},
@@ -6482,10 +6633,16 @@
"Update-AzStreamAnalyticsTransformation": {}
},
"Az.Subscription": {
- "Update-AzSubscription": {},
- "New-AzSubscriptionAlias": {},
+ "Disable-AzSubscription": {},
+ "Enable-AzSubscription": {},
+ "Get-AzSubscriptionAcceptOwnershipStatus": {},
"Get-AzSubscriptionAlias": {},
- "Remove-AzSubscriptionAlias": {}
+ "Get-AzSubscriptionPolicy": {},
+ "Invoke-AzSubscriptionAcceptOwnership": {},
+ "New-AzSubscriptionAlias": {},
+ "Remove-AzSubscriptionAlias": {},
+ "Rename-AzSubscription": {},
+ "Update-AzSubscriptionPolicy": {}
},
"Az.Support": {
"Get-AzSupportService": {},
diff --git a/src/Accounts/AssemblyLoading/Properties/AssemblyInfo.cs b/src/Accounts/AssemblyLoading/Properties/AssemblyInfo.cs
index 2578ee53c749..dac39d88668d 100644
--- a/src/Accounts/AssemblyLoading/Properties/AssemblyInfo.cs
+++ b/src/Accounts/AssemblyLoading/Properties/AssemblyInfo.cs
@@ -42,5 +42,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.12.4")]
-[assembly: AssemblyFileVersion("2.12.4")]
+[assembly: AssemblyVersion("2.12.5")]
+[assembly: AssemblyFileVersion("2.12.5")]
diff --git a/src/Accounts/Authentication/Properties/AssemblyInfo.cs b/src/Accounts/Authentication/Properties/AssemblyInfo.cs
index a3669a016fb9..5536a1dd7ae7 100644
--- a/src/Accounts/Authentication/Properties/AssemblyInfo.cs
+++ b/src/Accounts/Authentication/Properties/AssemblyInfo.cs
@@ -43,8 +43,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.12.4")]
-[assembly: AssemblyFileVersion("2.12.4")]
+[assembly: AssemblyVersion("2.12.5")]
+[assembly: AssemblyFileVersion("2.12.5")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Authentication.Test")]
#endif
diff --git a/src/Accounts/AuthenticationAssemblyLoadContext/Properties/AssemblyInfo.cs b/src/Accounts/AuthenticationAssemblyLoadContext/Properties/AssemblyInfo.cs
index 814a21eac6c3..f1cfafef1614 100644
--- a/src/Accounts/AuthenticationAssemblyLoadContext/Properties/AssemblyInfo.cs
+++ b/src/Accounts/AuthenticationAssemblyLoadContext/Properties/AssemblyInfo.cs
@@ -42,5 +42,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.12.4")]
-[assembly: AssemblyFileVersion("2.12.4")]
+[assembly: AssemblyVersion("2.12.5")]
+[assembly: AssemblyFileVersion("2.12.5")]
diff --git a/src/Accounts/Authenticators/Properties/AssemblyInfo.cs b/src/Accounts/Authenticators/Properties/AssemblyInfo.cs
index 768f61c1b197..0091245093b5 100644
--- a/src/Accounts/Authenticators/Properties/AssemblyInfo.cs
+++ b/src/Accounts/Authenticators/Properties/AssemblyInfo.cs
@@ -48,5 +48,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.12.4")]
-[assembly: AssemblyFileVersion("2.12.4")]
+[assembly: AssemblyVersion("2.12.5")]
+[assembly: AssemblyFileVersion("2.12.5")]
diff --git a/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 b/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1
index e5dbfc8ed917..12549de7d354 100644
--- a/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1
+++ b/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 6/14/2023
+# Generated on: 26/07/2023
#
@{
@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
-ModuleVersion = '0.6.0'
+ModuleVersion = '0.6.1'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.3'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.5'; })
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AlertsManagement.Management.Sdk.dll',
@@ -108,7 +108,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure', 'Alerts', 'AlertsManagement', 'Notifications'
+ Tags = 'Azure','Alerts','AlertsManagement','Notifications'
# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
@@ -120,7 +120,7 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Added cmdlets for Prometheus rule group'
+ ReleaseNotes = '* Fixed null reference bug when ''ScheduleEndDateTime'' was not provided'
# Prerelease string of this module
# Prerelease = ''
@@ -133,7 +133,7 @@ PrivateData = @{
} # End of PSData hashtable
-} # End of PrivateData hashtable
+ } # End of PrivateData hashtable
# HelpInfo URI of this module
# HelpInfoURI = ''
diff --git a/src/AlertsManagement/AlertsManagement/ChangeLog.md b/src/AlertsManagement/AlertsManagement/ChangeLog.md
index 708f43c42f36..ca0b83c2ebdd 100644
--- a/src/AlertsManagement/AlertsManagement/ChangeLog.md
+++ b/src/AlertsManagement/AlertsManagement/ChangeLog.md
@@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
+
+## Version 0.6.1
* Fixed null reference bug when 'ScheduleEndDateTime' was not provided
## Version 0.6.0
diff --git a/src/AlertsManagement/AlertsManagement/Properties/AssemblyInfo.cs b/src/AlertsManagement/AlertsManagement/Properties/AssemblyInfo.cs
index 4aa8fdff7a2b..0c5cb1bc2c8f 100644
--- a/src/AlertsManagement/AlertsManagement/Properties/AssemblyInfo.cs
+++ b/src/AlertsManagement/AlertsManagement/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("4381ecdd-5486-46fb-bef0-c0b2fb16bd54")]
-[assembly: AssemblyVersion("0.6.0")]
-[assembly: AssemblyFileVersion("0.6.0")]
+[assembly: AssemblyVersion("0.6.1")]
+[assembly: AssemblyFileVersion("0.6.1")]
diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs b/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs
index 218047ddd531..3ae8424119eb 100644
--- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs
+++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("a1ae47fb-6c27-4bba-babc-caf74537af24")]
-[assembly: AssemblyVersion("0.6.0")]
-[assembly: AssemblyFileVersion("0.6.0")]
+[assembly: AssemblyVersion("0.6.1")]
+[assembly: AssemblyFileVersion("0.6.1")]
diff --git a/src/AppConfiguration/AppConfiguration.Autorest/Properties/AssemblyInfo.cs b/src/AppConfiguration/AppConfiguration.Autorest/Properties/AssemblyInfo.cs
index 140ae17e7b5f..3b05a5ed7025 100644
--- a/src/AppConfiguration/AppConfiguration.Autorest/Properties/AssemblyInfo.cs
+++ b/src/AppConfiguration/AppConfiguration.Autorest/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("68b96e72-e248-4c8a-9468-c8d5320efc75")]
-[assembly: AssemblyVersion("1.2.0")]
-[assembly: AssemblyFileVersion("1.2.0")]
+[assembly: AssemblyVersion("1.3.0")]
+[assembly: AssemblyFileVersion("1.3.0")]
diff --git a/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 b/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1
index 4e459e6bed45..768df43a1d35 100644
--- a/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1
+++ b/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 7/24/2023
+# Generated on: 26/07/2023
#
@{
@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
-ModuleVersion = '1.2.0'
+ModuleVersion = '1.3.0'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.0'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.5'; })
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AppConfiguration.Autorest\bin\Az.AppConfiguration.private.dll',
@@ -109,7 +109,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'AppConfiguration'
+ Tags = 'Azure','ResourceManager','ARM','PSModule','AppConfiguration'
# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
@@ -121,8 +121,16 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Added cmdlets ''Get-AzAppConfigurationDeletedStore'' and ''Clear-AzAppConfigurationDeletedStore''
-* Updated ApiVersion to 2022-05-01.'
+ ReleaseNotes = '* Added cmdlets to support data plane operation:
+ - ''Get-AzAppConfigurationKey''
+ - ''Get-AzAppConfigurationKeyValue''
+ - ''Get-AzAppConfigurationLabel''
+ - ''Get-AzAppConfigurationRevision''
+ - ''Remove-AzAppConfigurationKeyValue''
+ - ''Remove-AzAppConfigurationLock''
+ - ''Set-AzAppConfigurationKeyValue''
+ - ''Set-AzAppConfigurationLock''
+ - ''Test-AzAppConfigurationKeyValue'''
# Prerelease string of this module
# Prerelease = ''
@@ -135,7 +143,7 @@ PrivateData = @{
} # End of PSData hashtable
-} # End of PrivateData hashtable
+ } # End of PrivateData hashtable
# HelpInfo URI of this module
# HelpInfoURI = ''
diff --git a/src/AppConfiguration/AppConfiguration/ChangeLog.md b/src/AppConfiguration/AppConfiguration/ChangeLog.md
index 6b2f6a989bee..1d4ccf5fba95 100644
--- a/src/AppConfiguration/AppConfiguration/ChangeLog.md
+++ b/src/AppConfiguration/AppConfiguration/ChangeLog.md
@@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
+
+## Version 1.3.0
* Added cmdlets to support data plane operation:
- `Get-AzAppConfigurationKey`
- `Get-AzAppConfigurationKeyValue`
diff --git a/src/AppConfiguration/AppConfiguration/Properties/AssemblyInfo.cs b/src/AppConfiguration/AppConfiguration/Properties/AssemblyInfo.cs
index 1cdd504780ba..f24fde1f821a 100644
--- a/src/AppConfiguration/AppConfiguration/Properties/AssemblyInfo.cs
+++ b/src/AppConfiguration/AppConfiguration/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("d1eff4e1-442a-4239-8e02-35244e5ec172")]
-[assembly: AssemblyVersion("1.2.0")]
-[assembly: AssemblyFileVersion("1.2.0")]
+[assembly: AssemblyVersion("1.3.0")]
+[assembly: AssemblyFileVersion("1.3.0")]
diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/Properties/AssemblyInfo.cs b/src/AppConfiguration/AppConfigurationData.Autorest/Properties/AssemblyInfo.cs
index e75ba3f78860..52429ff4158e 100644
--- a/src/AppConfiguration/AppConfigurationData.Autorest/Properties/AssemblyInfo.cs
+++ b/src/AppConfiguration/AppConfigurationData.Autorest/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("578ac89a-25dd-4029-9a90-d863516e2a4d")]
-[assembly: AssemblyVersion("0.1.0")]
-[assembly: AssemblyFileVersion("0.1.0")]
+[assembly: AssemblyVersion("1.3.0")]
+[assembly: AssemblyFileVersion("1.3.0")]
diff --git a/src/Batch/Batch/Az.Batch.psd1 b/src/Batch/Batch/Az.Batch.psd1
index 457706213ac5..23f381d3a0f5 100644
--- a/src/Batch/Batch/Az.Batch.psd1
+++ b/src/Batch/Batch/Az.Batch.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 3/30/2023
+# Generated on: 26/07/2023
#
@{
@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
-ModuleVersion = '4.0.0'
+ModuleVersion = '3.5.0'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.1'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.5'; })
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Batch.dll', 'Microsoft.Azure.Management.Batch.dll',
@@ -82,12 +82,12 @@ FunctionsToExport = @()
CmdletsToExport = 'Remove-AzBatchAccount', 'Get-AzBatchAccount',
'Get-AzBatchAccountKey', 'New-AzBatchAccount',
'New-AzBatchAccountKey', 'Set-AzBatchAccount',
- 'New-AzBatchApplicationPackage',
- 'Remove-AzBatchApplication', 'Remove-AzBatchApplicationPackage',
- 'Get-AzBatchApplicationPackage', 'Get-AzBatchApplication',
- 'Set-AzBatchApplication', 'New-AzBatchApplication',
- 'Get-AzBatchCertificate', 'Remove-AzBatchCertificate',
- 'New-AzBatchCertificate', 'Stop-AzBatchCertificateDeletion',
+ 'New-AzBatchApplicationPackage', 'Remove-AzBatchApplication',
+ 'Remove-AzBatchApplicationPackage', 'Get-AzBatchApplicationPackage',
+ 'Get-AzBatchApplication', 'Set-AzBatchApplication',
+ 'New-AzBatchApplication', 'Get-AzBatchCertificate',
+ 'Remove-AzBatchCertificate', 'New-AzBatchCertificate',
+ 'Stop-AzBatchCertificateDeletion',
'Disable-AzBatchComputeNodeScheduling',
'Enable-AzBatchComputeNodeScheduling',
'Get-AzBatchRemoteLoginSetting', 'Remove-AzBatchComputeNode',
@@ -101,9 +101,9 @@ CmdletsToExport = 'Remove-AzBatchAccount', 'Get-AzBatchAccount',
'Remove-AzBatchJob', 'Set-AzBatchJob', 'Stop-AzBatchJob',
'Get-AzBatchJob', 'Get-AzBatchJobPreparationAndReleaseTaskStatus',
'Disable-AzBatchAutoScale', 'Enable-AzBatchAutoScale',
- 'Get-AzBatchPoolUsageMetric',
- 'Get-AzBatchPool', 'Get-AzBatchSupportedImage', 'New-AzBatchPool',
- 'Remove-AzBatchPool', 'Set-AzBatchPool', 'Start-AzBatchPoolResize',
+ 'Get-AzBatchPoolUsageMetric', 'Get-AzBatchPool',
+ 'Get-AzBatchSupportedImage', 'New-AzBatchPool', 'Remove-AzBatchPool',
+ 'Set-AzBatchPool', 'Start-AzBatchPoolResize',
'Stop-AzBatchPoolResize', 'Test-AzBatchAutoScale',
'Get-AzBatchLocationQuota', 'Get-AzBatchSubtask', 'Get-AzBatchTask',
'New-AzBatchTask', 'Remove-AzBatchTask', 'New-AzBatchComputeNodeUser',
@@ -121,9 +121,8 @@ CmdletsToExport = 'Remove-AzBatchAccount', 'Get-AzBatchAccount',
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = 'Reactivate-AzBatchTask', 'Get-AzBatchSubscriptionQuotas',
- 'Get-AzBatchAccountKeys',
- 'Get-AzBatchLocationQuotas', 'Get-AzBatchPoolNodeCounts',
- 'Get-AzBatchPoolUsageMetrics',
+ 'Get-AzBatchAccountKeys', 'Get-AzBatchLocationQuotas',
+ 'Get-AzBatchPoolNodeCounts', 'Get-AzBatchPoolUsageMetrics',
'Get-AzBatchRemoteLoginSettings', 'Get-AzBatchTaskCounts',
'Get-AzBatchSupportedVMSku'
@@ -154,8 +153,9 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Added new property ''Encryption'' of type ''EncryptionProperties'' to ''AccountCreateParameters''.
- - Configures how customer data is encrypted inside the Batch account.'
+ ReleaseNotes = '* Removed cmdlets: ''Get-AzBatchPoolStatistic'' and ''Get-AzBatchJobStatistic''
+* Deprecated cmdlets: ''Get-AzBatchCertificate'' and ''New-AzBatchCertificate''
+ - The Batch account certificates feature is deprecated. Please transition to using Azure Key Vault to securely access and install certificates on your Batch pools, [learn more](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide)'
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/Batch/Batch/ChangeLog.md b/src/Batch/Batch/ChangeLog.md
index c08b5609ba27..06bc553f2fea 100644
--- a/src/Batch/Batch/ChangeLog.md
+++ b/src/Batch/Batch/ChangeLog.md
@@ -19,12 +19,11 @@
-->
## Upcoming Release
+## Version 3.5.0
* Removed cmdlets: `Get-AzBatchPoolStatistic` and `Get-AzBatchJobStatistic`
-
-* deprecated cmdlets: `Get-AzBatchCertificate` and `New-AzBatchCertificate`
+* Deprecated cmdlets: `Get-AzBatchCertificate` and `New-AzBatchCertificate`
- The Batch account certificates feature is deprecated. Please transition to using Azure Key Vault to securely access and install certificates on your Batch pools, [learn more](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide)
-
## Version 3.4.0
* Added new property `Encryption` of type `EncryptionProperties` to `AccountCreateParameters`.
- Configures how customer data is encrypted inside the Batch account.
diff --git a/src/Batch/Batch/Properties/AssemblyInfo.cs b/src/Batch/Batch/Properties/AssemblyInfo.cs
index 916b9d1edbdb..eadca0abea25 100644
--- a/src/Batch/Batch/Properties/AssemblyInfo.cs
+++ b/src/Batch/Batch/Properties/AssemblyInfo.cs
@@ -25,8 +25,8 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("ed102280-3577-49bf-93dd-11b6e3a44a57")]
-[assembly: AssemblyVersion("3.4.0")]
-[assembly: AssemblyFileVersion("3.4.0")]
+[assembly: AssemblyVersion("3.5.0")]
+[assembly: AssemblyFileVersion("3.5.0")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Batch.Test")]
#endif
diff --git a/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs b/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs
index a5d81e51261e..af8e48d0b78b 100644
--- a/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs
+++ b/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("05e53bbe-85c7-4f90-b796-25b4d044090b")]
-[assembly: AssemblyVersion("6.1.0")]
-[assembly: AssemblyFileVersion("6.1.0")]
+[assembly: AssemblyVersion("6.2.0")]
+[assembly: AssemblyFileVersion("6.2.0")]
diff --git a/src/Compute/Compute.Helpers/Properties/AssemblyInfo.cs b/src/Compute/Compute.Helpers/Properties/AssemblyInfo.cs
index 88f1cc2ee3b1..4529c6b54b6a 100644
--- a/src/Compute/Compute.Helpers/Properties/AssemblyInfo.cs
+++ b/src/Compute/Compute.Helpers/Properties/AssemblyInfo.cs
@@ -26,5 +26,5 @@
[assembly: CLSCompliant(false)]
[assembly: Guid("ba0d06e0-118c-4f34-b01c-7f6335577747")]
-[assembly: AssemblyVersion("6.1.0")]
-[assembly: AssemblyFileVersion("6.1.0")]
+[assembly: AssemblyVersion("6.2.0")]
+[assembly: AssemblyFileVersion("6.2.0")]
diff --git a/src/Compute/Compute.Test/Compute.Test.csproj b/src/Compute/Compute.Test/Compute.Test.csproj
index 67f8a300fd2f..b6e66fcc15ac 100644
--- a/src/Compute/Compute.Test/Compute.Test.csproj
+++ b/src/Compute/Compute.Test/Compute.Test.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs
index a3345e489d66..008ad43ad0a8 100644
--- a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs
+++ b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs
@@ -44,12 +44,5 @@ public void TestDedicatedHostRestart()
{
TestRunner.RunTestScript("Test-DedicatedHostRestart");
}
-
- [Fact]
- [Trait(Category.AcceptanceType, Category.CheckIn)]
- public void TestDedicatedHostUpdateAndSize()
- {
- TestRunner.RunTestScript("Test-DedicatedHostUpdateAndSize");
- }
}
}
diff --git a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1 b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1
index a71bfc9cf987..da8cd7b823f0 100644
--- a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1
+++ b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1
@@ -288,48 +288,4 @@ function Test-DedicatedHostRestart
# Cleanup
Clean-ResourceGroup $rgname
}
-}
-
-
-<#
-.SYNOPSIS
-Test Restart dedicated host Update and Size.
-#>
-function Test-DedicatedHostUpdateAndSize
-{
- # Setup
- $rgname = Get-ComputeTestResourceName
-
- try
- {
- # Common
- # [string]$loc = Get-Location "Microsoft.Resources" "resourceGroups" "East US 2 EUAP";
- # $loc = $loc.Replace(' ', '');
- $loc = "eastus2euap";
-
- New-AzResourceGroup -Name $rgname -Location $loc -Force;
-
- $hostGroupName = $rgname + 'hostgroup';
- New-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName -Location $loc -PlatformFaultDomain 1 -Zone "2" -Tag @{key1 = "val1"};
-
- $hostGroup = Get-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName;
- $hostName = $rgname + 'host';
- New-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -Location $loc -Sku "ESv3-Type1" -Tag @{key1 = "val2"};
-
- $dedicatedHost = Get-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName;
-
- # Restart the dedicated host
- $hostSize = Get-AzHostSize -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName;
- Assert-NotNull $hostSize;
-
- # Update DH
- $dHUpdate = Update-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -AutoReplaceOnFailure $false;
- Assert-AreEqual $dHUpdate.AutoReplaceOnFailure $False ;
-
- }
- finally
- {
- # Cleanup
- Clean-ResourceGroup $rgname
- }
}
\ No newline at end of file
diff --git a/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json b/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json
deleted file mode 100644
index 8f95139b3c59..000000000000
--- a/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json
+++ /dev/null
@@ -1,1159 +0,0 @@
-{
- "Entries": [
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourcegroups/crptestps7260?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlZ3JvdXBzL2NycHRlc3RwczcyNjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==",
- "RequestMethod": "PUT",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "16945bd3-ef88-4ded-958d-27f450e59104"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "33"
- ]
- },
- "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-subscription-writes": [
- "1199"
- ],
- "x-ms-request-id": [
- "ed620bab-b2b6-41eb-a4ca-af38d9843eb3"
- ],
- "x-ms-correlation-request-id": [
- "ed620bab-b2b6-41eb-a4ca-af38d9843eb3"
- ],
- "x-ms-routing-request-id": [
- "CANADACENTRAL:20230722T222558Z:ed620bab-b2b6-41eb-a4ca-af38d9843eb3"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:25:57 GMT"
- ],
- "Content-Length": [
- "184"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260\",\r\n \"name\": \"crptestps7260\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
- "StatusCode": 201
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "PUT",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "a2f677ff-45cd-44c4-809b-9090855ea414"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "161"
- ]
- },
- "RequestBody": "{\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 1\r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val1\"\r\n }\r\n}",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/PutDeleteDedicatedHost3Min;118,Microsoft.Compute/PutDeleteDedicatedHost30Min;581"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "5a4886cd-74f9-4a05-89f2-496786565ad9"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-writes": [
- "1199"
- ],
- "x-ms-correlation-request-id": [
- "1cbf6120-825b-4fee-9ae7-5671aa5e9ed2"
- ],
- "x-ms-routing-request-id": [
- "CANADACENTRAL:20230722T222559Z:1cbf6120-825b-4fee-9ae7-5671aa5e9ed2"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:25:59 GMT"
- ],
- "Content-Length": [
- "437"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260hostgroup\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/CRPTESTPS7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup\",\r\n \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val1\"\r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 1,\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}",
- "StatusCode": 201
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "4346ccc8-2982-49c6-bc53-9e19e29fa872"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetDedicatedHost30Min;949"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "bbac5032-fadd-4feb-a629-915d3091bfd3"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11999"
- ],
- "x-ms-correlation-request-id": [
- "31898949-389b-4e67-a4cf-a2856eb04170"
- ],
- "x-ms-routing-request-id": [
- "CANADACENTRAL:20230722T222600Z:31898949-389b-4e67-a4cf-a2856eb04170"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:00 GMT"
- ],
- "Content-Length": [
- "437"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260hostgroup\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/CRPTESTPS7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup\",\r\n \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val1\"\r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 1,\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "PUT",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "695bb0ff-79cf-47bc-93a4-3436deea6c27"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "116"
- ]
- },
- "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n }\r\n}",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "azure-asyncoperation": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/6281bf59-e53c-4d8c-aadd-89cabbc0246e?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01"
- ],
- "azure-asyncnotification": [
- "Enabled"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/PutDeleteDedicatedHost3Min;118,Microsoft.Compute/PutDeleteDedicatedHost30Min;580"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "6281bf59-e53c-4d8c-aadd-89cabbc0246e"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-writes": [
- "1199"
- ],
- "x-ms-correlation-request-id": [
- "4914bb28-bb80-4aae-a17f-42dbb3f42643"
- ],
- "x-ms-routing-request-id": [
- "CANADACENTRAL:20230722T222602Z:4914bb28-bb80-4aae-a17f-42dbb3f42643"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:01 GMT"
- ],
- "Content-Length": [
- "616"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"provisioningState\": \"Creating\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}",
- "StatusCode": 201
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/6281bf59-e53c-4d8c-aadd-89cabbc0246e?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvRWFzdFVTMkVVQVAvb3BlcmF0aW9ucy82MjgxYmY1OS1lNTNjLTRkOGMtYWFkZC04OWNhYmJjMDI0NmU/cD1jZTE3MDhjNS1kYmNhLTRiMjItYjQyNi1lOGI4OTA4NDE3ZGEmYXBpLXZlcnNpb249MjAyMy0wMy0wMQ==",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "695bb0ff-79cf-47bc-93a4-3436deea6c27"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29978"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "d3306872-014e-4744-8196-4c3563587ab1"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11999"
- ],
- "x-ms-correlation-request-id": [
- "02822f93-5793-4fdc-aba7-dc98261c2175"
- ],
- "x-ms-routing-request-id": [
- "CANADACENTRAL:20230722T222632Z:02822f93-5793-4fdc-aba7-dc98261c2175"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:31 GMT"
- ],
- "Content-Length": [
- "184"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"startTime\": \"2023-07-22T18:26:01.6114741-04:00\",\r\n \"endTime\": \"2023-07-22T18:26:02.0177406-04:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"6281bf59-e53c-4d8c-aadd-89cabbc0246e\"\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "695bb0ff-79cf-47bc-93a4-3436deea6c27"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetDedicatedHost3Min;245,Microsoft.Compute/GetDedicatedHost30Min;946"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "56989ac0-d74b-4062-85db-588f9c483981"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11998"
- ],
- "x-ms-correlation-request-id": [
- "6cc805c2-1338-44dd-868a-f75099b7bbf7"
- ],
- "x-ms-routing-request-id": [
- "CANADACENTRAL:20230722T222632Z:6cc805c2-1338-44dd-868a-f75099b7bbf7"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:32 GMT"
- ],
- "Content-Length": [
- "707"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "2270230d-92ee-4779-8b8b-b36668affc09"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetDedicatedHost3Min;244,Microsoft.Compute/GetDedicatedHost30Min;945"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "13d2228c-1e45-42e6-8cbc-4a15da000b54"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11999"
- ],
- "x-ms-correlation-request-id": [
- "92796f98-0a40-4663-a60f-8795ab8773a2"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222633Z:92796f98-0a40-4663-a60f-8795ab8773a2"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:32 GMT"
- ],
- "Content-Length": [
- "707"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "063b3112-9854-43e9-965c-62458b8152e6"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetDedicatedHost3Min;243,Microsoft.Compute/GetDedicatedHost30Min;942"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "e7ae7177-85dd-4cd7-962a-3363a6eff48f"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11997"
- ],
- "x-ms-correlation-request-id": [
- "5b2b95ad-f96d-4577-81e7-e756ec107b00"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222704Z:5b2b95ad-f96d-4577-81e7-e756ec107b00"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:27:04 GMT"
- ],
- "Content-Length": [
- "708"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": false,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host/hostSizes?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdC9ob3N0U2l6ZXM/YXBpLXZlcnNpb249MjAyMy0wMy0wMQ==",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "f1acb439-e9ef-48f2-b985-d9bae3e3bd84"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetDedicatedHost3Min;243,Microsoft.Compute/GetDedicatedHost30Min;944"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "730641eb-e138-4584-a6a0-44cd34f21c86"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11999"
- ],
- "x-ms-correlation-request-id": [
- "5acab2a8-21ff-4888-b90d-7c5cbcae1ec2"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222633Z:5acab2a8-21ff-4888-b90d-7c5cbcae1ec2"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:32 GMT"
- ],
- "Content-Length": [
- "60"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"value\": [\r\n \"ESv3-Type2\",\r\n \"ESv3-Type3\"\r\n ]\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx",
- "RequestMethod": "PATCH",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "063b3112-9854-43e9-965c-62458b8152e6"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "63"
- ]
- },
- "RequestBody": "{\r\n \"properties\": {\r\n \"autoReplaceOnFailure\": false\r\n }\r\n}",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "azure-asyncoperation": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/035a224f-bcd4-4bed-ab1e-41da29d11265?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01"
- ],
- "azure-asyncnotification": [
- "Enabled"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/PutDeleteDedicatedHost3Min;117,Microsoft.Compute/PutDeleteDedicatedHost30Min;579"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "035a224f-bcd4-4bed-ab1e-41da29d11265"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-writes": [
- "1199"
- ],
- "x-ms-correlation-request-id": [
- "3352848c-40c3-40cf-b6ad-de2b6a178a8d"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222634Z:3352848c-40c3-40cf-b6ad-de2b6a178a8d"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:26:33 GMT"
- ],
- "Content-Length": [
- "679"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": false,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/035a224f-bcd4-4bed-ab1e-41da29d11265?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvRWFzdFVTMkVVQVAvb3BlcmF0aW9ucy8wMzVhMjI0Zi1iY2Q0LTRiZWQtYWIxZS00MWRhMjlkMTEyNjU/cD1jZTE3MDhjNS1kYmNhLTRiMjItYjQyNi1lOGI4OTA4NDE3ZGEmYXBpLXZlcnNpb249MjAyMy0wMy0wMQ==",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "063b3112-9854-43e9-965c-62458b8152e6"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-resource": [
- "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29977"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "x-ms-request-id": [
- "416517f8-31a7-48fe-bea9-ad4f1fe1174e"
- ],
- "Server": [
- "Microsoft-HTTPAPI/2.0",
- "Microsoft-HTTPAPI/2.0"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11998"
- ],
- "x-ms-correlation-request-id": [
- "e0aff0c1-b00d-49a9-a655-29d577d66c74"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222704Z:e0aff0c1-b00d-49a9-a655-29d577d66c74"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:27:04 GMT"
- ],
- "Content-Length": [
- "184"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"startTime\": \"2023-07-22T18:26:33.9878262-04:00\",\r\n \"endTime\": \"2023-07-22T18:26:34.1440842-04:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"035a224f-bcd4-4bed-ab1e-41da29d11265\"\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourcegroups/crptestps7260?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlZ3JvdXBzL2NycHRlc3RwczcyNjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==",
- "RequestMethod": "DELETE",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "8dbaff52-5417-4aac-91f1-006e455019ab"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Location": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01"
- ],
- "Retry-After": [
- "15"
- ],
- "x-ms-ratelimit-remaining-subscription-deletes": [
- "14999"
- ],
- "x-ms-request-id": [
- "14576a8e-d94d-4921-80f3-a0bde5d25b3c"
- ],
- "x-ms-correlation-request-id": [
- "14576a8e-d94d-4921-80f3-a0bde5d25b3c"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222705Z:14576a8e-d94d-4921-80f3-a0bde5d25b3c"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:27:04 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 202
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Location": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01"
- ],
- "Retry-After": [
- "15"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11999"
- ],
- "x-ms-request-id": [
- "625931f3-5eff-4124-82c2-0b26fa5e848a"
- ],
- "x-ms-correlation-request-id": [
- "625931f3-5eff-4124-82c2-0b26fa5e848a"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222720Z:625931f3-5eff-4124-82c2-0b26fa5e848a"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:27:19 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 202
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Location": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01"
- ],
- "Retry-After": [
- "15"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11998"
- ],
- "x-ms-request-id": [
- "c8a5fac7-d7e7-41d4-9254-4939330bb8da"
- ],
- "x-ms-correlation-request-id": [
- "c8a5fac7-d7e7-41d4-9254-4939330bb8da"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222735Z:c8a5fac7-d7e7-41d4-9254-4939330bb8da"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:27:34 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 202
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Location": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01"
- ],
- "Retry-After": [
- "15"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11997"
- ],
- "x-ms-request-id": [
- "0ccab9cd-a7e4-4150-bd0e-fcb31639f22f"
- ],
- "x-ms-correlation-request-id": [
- "0ccab9cd-a7e4-4150-bd0e-fcb31639f22f"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222750Z:0ccab9cd-a7e4-4150-bd0e-fcb31639f22f"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:27:49 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 202
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Location": [
- "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01"
- ],
- "Retry-After": [
- "15"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11996"
- ],
- "x-ms-request-id": [
- "ace1206d-3543-47e2-8dcc-7801a4a5bb00"
- ],
- "x-ms-correlation-request-id": [
- "ace1206d-3543-47e2-8dcc-7801a4a5bb00"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222805Z:ace1206d-3543-47e2-8dcc-7801a4a5bb00"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:28:05 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 202
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11995"
- ],
- "x-ms-request-id": [
- "683783f6-3e07-4785-b745-db244f1cf5eb"
- ],
- "x-ms-correlation-request-id": [
- "683783f6-3e07-4785-b745-db244f1cf5eb"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222821Z:683783f6-3e07-4785-b745-db244f1cf5eb"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:28:20 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.700.22.55902",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22621",
- "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11994"
- ],
- "x-ms-request-id": [
- "0137eb12-1509-4bee-a04e-528b72113e9d"
- ],
- "x-ms-correlation-request-id": [
- "0137eb12-1509-4bee-a04e-528b72113e9d"
- ],
- "x-ms-routing-request-id": [
- "CENTRALUS:20230722T222821Z:0137eb12-1509-4bee-a04e-528b72113e9d"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Date": [
- "Sat, 22 Jul 2023 22:28:21 GMT"
- ],
- "Expires": [
- "-1"
- ],
- "Content-Length": [
- "0"
- ]
- },
- "ResponseBody": "",
- "StatusCode": 200
- }
- ],
- "Names": {
- "Test-DedicatedHostUpdateAndSize": [
- "crptestps7260"
- ]
- },
- "Variables": {
- "SubscriptionId": "e37510d7-33b6-4676-886f-ee75bcc01871"
- }
-}
\ No newline at end of file
diff --git a/src/Compute/Compute/Az.Compute.psd1 b/src/Compute/Compute/Az.Compute.psd1
index 7cabcf5c4a93..4e59e6c943ef 100644
--- a/src/Compute/Compute/Az.Compute.psd1
+++ b/src/Compute/Compute/Az.Compute.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 06/29/2023
+# Generated on: 26/07/2023
#
@{
@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
-ModuleVersion = '6.1.0'
+ModuleVersion = '6.2.0'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -54,7 +54,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.5'; })
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AutoMapper.dll',
@@ -195,8 +195,7 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet',
'Add-AzVmGalleryApplication', 'Add-AzVmssGalleryApplication',
'Remove-AzVmGalleryApplication', 'Remove-AzVmssGalleryApplication',
'Add-AzVmssRunCommand', 'Remove-AzVmssRunCommand',
- 'Get-AzVMRunCommand', 'Get-AzVmssVMRunCommand',
- 'Get-AzHostSize', 'Update-AzHost'
+ 'Get-AzVMRunCommand', 'Get-AzVmssVMRunCommand'
# Variables to export from this module
VariablesToExport = '*'
@@ -233,14 +232,9 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Added useful examples to the ''New-AzVMConfig'' help doc.
-* Added new ''ResourceId'' parameter to the ''Get-AzVmss'' cmdlet.
-* Added ''-SecurityType'', ''-EnableSecureBoot'' and ''-EnableVtpm'' parameters to ''New-AzVm'',''New-AzVmConfig'', ''New-AzVmss'', ''New-AzVmssConfig'', ''Update-AzVm'' and ''Update-AzVmss'' cmdlets.
-* Configured parameter flags ''-EnableSecureBoot'' and ''-EnableVtpm'' to default to True for TrustedLaunch and ConfidentialVM values for the ''-SecurityType'' parameter in ''New-AzVm'',''New-AzVmConfig'', ''New-AzVmss'', ''New-AzVmssConfig'', ''Update-AzVm'' and ''Update-AzVmss'' cmdlets.
-* Added a message to the user when they provide an outdated image alias to ''New-AzVM'' via the ''-Image'' parameter or to ''New-AzVmss'' via the ''-ImageName'' parameter.
- The non-versioned image aliases were updated to versioned values in October 2023, and this message is to help urge customers to use the newer versioned image alias values.
-* Changed the installation behavior for the ''GuestAttestation'' extension in ''New-AzVM'' and ''New-AzVmss'' to set the property ''EnableAutomaticUpgrade'' to true.
-* Changed to ''Set-AzVMOperatingSystem'' to correct unnecessary mandatory parameters.'
+ ReleaseNotes = '* Fixed the ''Update-AzVmss'' cmdlet so the ''AutomaticRepairGracePeriod'', ''AutomaticRepairAction'', and ''EnableAutomaticRepair'' parameters function correctly.
+* Updated help doc for ''New-AzVM'', ''New-AzVMConfig'', ''New-AzVmss'', ''New-AzVmssConfig'', ''Update-AzVM'', and ''Update-AzVmss'' to include parameters that were previously added for Trusted Launch features.
+* Updated Azure.Core to 1.33.0.'
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md
index 3b068b43c298..6c198576fba9 100644
--- a/src/Compute/Compute/ChangeLog.md
+++ b/src/Compute/Compute/ChangeLog.md
@@ -20,6 +20,8 @@
-->
## Upcoming Release
+
+## Version 6.2.0
* Fixed the `Update-AzVmss` cmdlet so the `AutomaticRepairGracePeriod`, `AutomaticRepairAction`, and `EnableAutomaticRepair` parameters function correctly.
* Updated help doc for `New-AzVM`, `New-AzVMConfig`, `New-AzVmss`, `New-AzVmssConfig`, `Update-AzVM`, and `Update-AzVmss` to include parameters that were previously added for Trusted Launch features.
* Updated Azure.Core to 1.33.0.
@@ -34,7 +36,6 @@
* Changed the installation behavior for the `GuestAttestation` extension in `New-AzVM` and `New-AzVmss` to set the property `EnableAutomaticUpgrade` to true.
* Changes to `Set-AzVMOperatingSystem` to correct unnecessary mandatory parameters.
* Changed the region for example 3 to eastus2 in the `New-AzVM` doc to resolve SKU not available errors.
-* Added new cmdlets `Get-AzHostSize` and `Update-AzHost`.
## Version 6.0.0
* Added new switch parameter `OSImageScheduledEventEnabled` and string parameter `OSImageScheduledEventNotBeforeTimeoutInMinutes` to the cmdlets `New-AzVmssConfig` and `Update-AzVmss`.
diff --git a/src/Compute/Compute/Compute.csproj b/src/Compute/Compute/Compute.csproj
index 9ca56005cb63..39f882ae46c1 100644
--- a/src/Compute/Compute/Compute.csproj
+++ b/src/Compute/Compute/Compute.csproj
@@ -15,7 +15,7 @@
-
+
diff --git a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs b/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs
deleted file mode 100644
index dc1a072f8343..000000000000
--- a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-//
-// Copyright (c) Microsoft and contributors. 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.
-//
-
-// Warning: This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if the
-// code is regenerated.
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Management.Automation;
-using Microsoft.Azure.Commands.Compute.Automation.Models;
-using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
-using Microsoft.Azure.Management.Compute;
-using Microsoft.Azure.Management.Compute.Models;
-using Microsoft.WindowsAzure.Commands.Utilities.Common;
-
-namespace Microsoft.Azure.Commands.Compute.Automation
-{
- [Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HostSize")]
- [OutputType(typeof(List))]
- public partial class GetAzureRmDedicatedHostSize : ComputeAutomationBaseCmdlet
- {
- public override void ExecuteCmdlet()
- {
- base.ExecuteCmdlet();
- ExecuteClientAction(() =>
- {
- string resourceGroupName = this.ResourceGroupName;
- string hostGroupName = this.HostGroupName;
- string hostName = this.HostName;
-
- List result = DedicatedHostsClient.ListAvailableSizes(resourceGroupName, hostGroupName, hostName).ToList();
-
- WriteObject(result);
- });
- }
-
- [Parameter(
- Position = 0,
- Mandatory = true,
- ValueFromPipelineByPropertyName = true)]
- [ResourceGroupCompleter]
- public string ResourceGroupName { get; set; }
-
- [Parameter(
- Position = 1,
- Mandatory = true,
- ValueFromPipelineByPropertyName = true)]
- [ResourceNameCompleter("Microsoft.Compute/hostGroups", "ResourceGroupName")]
- public string HostGroupName { get; set; }
-
- [Alias("Name")]
- [Parameter(
- Position = 2,
- ValueFromPipelineByPropertyName = true)]
- public string HostName { get; set; }
-
- }
-}
diff --git a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs b/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs
deleted file mode 100644
index af1b59c0419d..000000000000
--- a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs
+++ /dev/null
@@ -1,133 +0,0 @@
-//
-// Copyright (c) Microsoft and contributors. 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.
-//
-
-// Warning: This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if the
-// code is regenerated.
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Management.Automation;
-using Microsoft.Azure.Commands.Compute.Automation.Models;
-using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
-using Microsoft.Azure.Management.Compute;
-using Microsoft.Azure.Management.Compute.Models;
-using Microsoft.WindowsAzure.Commands.Utilities.Common;
-
-namespace Microsoft.Azure.Commands.Compute.Automation
-{
- [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Host", SupportsShouldProcess = true, DefaultParameterSetName = "DefaultParameterSet")]
- [OutputType(typeof(PSHost))]
- public partial class UpdateAzureRmDedicatedHost : ComputeAutomationBaseCmdlet
- {
- public override void ExecuteCmdlet()
- {
- base.ExecuteCmdlet();
- ExecuteClientAction(() =>
- {
- if (ShouldProcess(this.Name, "Update"))
- {
- string resourceGroupName;
- string hostGroupName;
- string Name;
- switch (this.ParameterSetName)
- {
- case "ResourceIdParameter":
- resourceGroupName = GetResourceGroupName(this.ResourceId);
- hostGroupName = GetResourceName(this.ResourceId, "Microsoft.Compute/hostGroups", "hosts");
- Name = GetInstanceId(this.ResourceId, "Microsoft.Compute/hostGroups", "hosts");
- break;
- default:
- resourceGroupName = this.ResourceGroupName;
- hostGroupName = this.HostGroupName;
- Name = this.Name;
- break;
- }
-
- DedicatedHostUpdate parameters = new DedicatedHostUpdate();
-
- if (this.IsParameterBound(c => c.AutoReplaceOnFailure))
- {
- parameters.AutoReplaceOnFailure = this.AutoReplaceOnFailure;
- }
-
- if (this.IsParameterBound(c => c.LicenseType))
- {
- parameters.LicenseType = this.LicenseType;
- }
-
- if (this.IsParameterBound(c => c.Sku))
- {
- parameters.Sku = new Sku(this.Sku, null, null);
- }
-
-
- var result = DedicatedHostsClient.Update(resourceGroupName, hostGroupName, Name, parameters);
- var psObject = new PSHost();
- ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject);
- WriteObject(psObject);
- }
- });
- }
-
- [Parameter(
- ParameterSetName = "DefaultParameter",
- Position = 0,
- Mandatory = true,
- ValueFromPipelineByPropertyName = true)]
- [ResourceGroupCompleter]
- public string ResourceGroupName { get; set; }
-
- [Parameter(
- ParameterSetName = "DefaultParameter",
- Position = 1,
- Mandatory = true,
- ValueFromPipelineByPropertyName = true)]
- public string HostGroupName { get; set; }
-
- [Alias("HostName")]
- [Parameter(
- ParameterSetName = "DefaultParameter",
- Position = 2,
- Mandatory = true,
- ValueFromPipelineByPropertyName = true)]
- public string Name { get; set; }
-
- [Parameter(
- Mandatory = false,
- HelpMessage = "The Sku Name that needs to be updated.")]
- public string Sku { get; set; }
-
- [Parameter(
- Mandatory = false)]
- public bool AutoReplaceOnFailure { get; set; }
-
- [Parameter(
- Mandatory = false)]
- public DedicatedHostLicenseTypes LicenseType { get; set; }
-
- [Parameter(
- ParameterSetName = "ResourceIdParameter",
- Position = 0,
- Mandatory = true,
- ValueFromPipelineByPropertyName = true)]
- public string ResourceId { get; set; }
-
- }
-}
diff --git a/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs b/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs
index fefdfa06c01b..5d86866ac183 100644
--- a/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs
+++ b/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs
@@ -129,7 +129,7 @@ private void Run()
vIpConfigurations.Name = this.IsParameterBound(c => c.Name) ? this.Name : null;
vIpConfigurations.Primary = this.Primary.IsPresent;
vIpConfigurations.PrivateIPAddressVersion = this.IsParameterBound(c => c.PrivateIPAddressVersion) ? this.PrivateIPAddressVersion : null;
- //vIpConfigurations.Id = this.IsParameterBound(c => c.Id) ? this.Id : null;
+ vIpConfigurations.Id = this.IsParameterBound(c => c.Id) ? this.Id : null;
// SubnetId
if (this.IsParameterBound(c => c.SubnetId))
diff --git a/src/Compute/Compute/Properties/AssemblyInfo.cs b/src/Compute/Compute/Properties/AssemblyInfo.cs
index 013af254d6d6..44841df6f660 100644
--- a/src/Compute/Compute/Properties/AssemblyInfo.cs
+++ b/src/Compute/Compute/Properties/AssemblyInfo.cs
@@ -25,8 +25,8 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("91792853-487B-4DC2-BE6C-DD09A0A1BC10")]
-[assembly: AssemblyVersion("6.1.0")]
-[assembly: AssemblyFileVersion("6.1.0")]
+[assembly: AssemblyVersion("6.2.0")]
+[assembly: AssemblyFileVersion("6.2.0")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Compute.Test")]
#endif
diff --git a/src/Compute/Compute/help/Get-AzHostSize.md b/src/Compute/Compute/help/Get-AzHostSize.md
deleted file mode 100644
index be4fecdb2a96..000000000000
--- a/src/Compute/Compute/help/Get-AzHostSize.md
+++ /dev/null
@@ -1,111 +0,0 @@
----
-external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
-Module Name: Az.Compute
-online version: https://learn.microsoft.com/powershell/module/az.compute/get-azhostsize
-schema: 2.0.0
----
-
-# Get-AzHostSize
-
-## SYNOPSIS
-Get List of possible Host Sizes.
-
-## SYNTAX
-
-```
-Get-AzHostSize [-ResourceGroupName] [-HostGroupName] [[-HostName] ]
- [-DefaultProfile ] []
-```
-
-## DESCRIPTION
-Get List of possible Host Sizes.
-
-## EXAMPLES
-
-### Example 1
-```powershell
-Get-AzHostSize -ResourceGroupName $resourceGroupName -HostGroupName $hostGroupName -HostName $hostName
-```
-
-```output
-Dsv3-Type1
-```
-
-This command return the possible host sizes.
-
-## PARAMETERS
-
-### -DefaultProfile
-The credentials, account, tenant, and subscription used for communication with Azure.
-
-```yaml
-Type: IAzureContextContainer
-Parameter Sets: (All)
-Aliases: AzContext, AzureRmContext, AzureCredential
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### -HostGroupName
-The name of the Host Group.
-
-```yaml
-Type: String
-Parameter Sets: (All)
-Aliases:
-
-Required: True
-Position: 1
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### -HostName
-The name of the Dedicated Host.
-
-```yaml
-Type: String
-Parameter Sets: (All)
-Aliases: Name
-
-Required: False
-Position: 2
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### -ResourceGroupName
-Name of Resource Group.
-
-```yaml
-Type: String
-Parameter Sets: (All)
-Aliases:
-
-Required: True
-Position: 0
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### CommonParameters
-This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
-
-## INPUTS
-
-### System.String
-
-## OUTPUTS
-
-### System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
-
-## NOTES
-
-## RELATED LINKS
diff --git a/src/Compute/Compute/help/Update-AzHost.md b/src/Compute/Compute/help/Update-AzHost.md
deleted file mode 100644
index f31b928a55a3..000000000000
--- a/src/Compute/Compute/help/Update-AzHost.md
+++ /dev/null
@@ -1,222 +0,0 @@
----
-external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
-Module Name: Az.Compute
-online version: https://learn.microsoft.com/powershell/module/az.compute/update-azhost
-schema: 2.0.0
----
-
-# Update-AzHost
-
-## SYNOPSIS
-Updates the Dedicated Host.
-
-## SYNTAX
-
-### DefaultParameter
-```
-Update-AzHost [-ResourceGroupName] [-HostGroupName] [-Name] [-Sku ]
- [-AutoReplaceOnFailure ] [-LicenseType ]
- [-DefaultProfile ] [-WhatIf] [-Confirm] []
-```
-
-### ResourceIdParameter
-```
-Update-AzHost [-Sku ] [-AutoReplaceOnFailure ] [-LicenseType ]
- [-ResourceId] [-DefaultProfile ] [-WhatIf] [-Confirm] []
-```
-
-## DESCRIPTION
-This cmdlet can be used to update the Dedicated Host Sku, LicenseType and AutoReplaceOnFailure property.
-
-## EXAMPLES
-
-### Example 1
-```powershell
-Update-AzHost -ResourceGroupName $resourceGroupName -HostGroupName $hostGroupName -Name $hostName -Sku $skuName
-```
-
-```output
-ResourceGroupName : myrg01
-PlatformFaultDomain : 0
-AutoReplaceOnFailure : True
-HostId : 00000000-0000-0000-0000-000000000000
-ProvisioningTime : 7/25/2019 8:34:16 PM
-ProvisioningState : Succeeded
-Sku :
- Name : ESv3-Type1
-Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg01/providers/Microsoft.Compute/hostGroups/myhostgroup01/hosts/myhost01
-Name : myhost01
-Location : eastus
-Tags : {"key1":"val2"}
-```
-
-This command updates the given Sku of a host.
-
-## PARAMETERS
-
-### -AutoReplaceOnFailure
-Specifies whether the host should be replaced automatically in case of a failure.
-
-```yaml
-Type: Boolean
-Parameter Sets: (All)
-Aliases:
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### -DefaultProfile
-The credentials, account, tenant, and subscription used for communication with Azure.
-
-```yaml
-Type: IAzureContextContainer
-Parameter Sets: (All)
-Aliases: AzContext, AzureRmContext, AzureCredential
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### -HostGroupName
-Name of the Host Group.
-
-```yaml
-Type: String
-Parameter Sets: DefaultParameter
-Aliases:
-
-Required: True
-Position: 1
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### -LicenseType
-Specifies the software license type that will be applied to the VMs deployed on the host. Possible values are: None, Windows_Server_Hybrid, and Windows_Server_Perpetual. Default value is None.
-
-```yaml
-Type: DedicatedHostLicenseTypes
-Parameter Sets: (All)
-Aliases:
-Accepted values: None, WindowsServerHybrid, WindowsServerPerpetual
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### -Name
-Specifies the name of the Host to be updated.
-
-```yaml
-Type: String
-Parameter Sets: DefaultParameter
-Aliases: HostName
-
-Required: True
-Position: 2
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### -ResourceGroupName
-The name of the resource group.
-
-```yaml
-Type: String
-Parameter Sets: DefaultParameter
-Aliases:
-
-Required: True
-Position: 0
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### -ResourceId
-Resource Id of the Host to be updated.
-
-```yaml
-Type: String
-Parameter Sets: ResourceIdParameter
-Aliases:
-
-Required: True
-Position: 0
-Default value: None
-Accept pipeline input: True (ByPropertyName)
-Accept wildcard characters: False
-```
-
-### -Sku
-The Sku Name that needs to be updated.
-
-```yaml
-Type: String
-Parameter Sets: (All)
-Aliases:
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### -Confirm
-Prompts you for confirmation before running the cmdlet.
-
-```yaml
-Type: SwitchParameter
-Parameter Sets: (All)
-Aliases: cf
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### -WhatIf
-Shows what would happen if the cmdlet runs.
-The cmdlet is not run.
-
-```yaml
-Type: SwitchParameter
-Parameter Sets: (All)
-Aliases: wi
-
-Required: False
-Position: Named
-Default value: None
-Accept pipeline input: False
-Accept wildcard characters: False
-```
-
-### CommonParameters
-This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
-
-## INPUTS
-
-### System.String
-
-## OUTPUTS
-
-### Microsoft.Azure.Commands.Compute.Automation.Models.PSHost
-
-## NOTES
-
-## RELATED LINKS
diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/Properties/AssemblyInfo.cs b/src/ContainerRegistry/ContainerRegistry.Autorest/Properties/AssemblyInfo.cs
index 912f1368cab8..b2c1bc38d730 100644
--- a/src/ContainerRegistry/ContainerRegistry.Autorest/Properties/AssemblyInfo.cs
+++ b/src/ContainerRegistry/ContainerRegistry.Autorest/Properties/AssemblyInfo.cs
@@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("969cf5d6-4ee6-4f51-a7b7-5489d69352b3")]
-[assembly: AssemblyVersion("4.0.0")]
-[assembly: AssemblyFileVersion("4.0.0")]
+[assembly: AssemblyVersion("4.1.0")]
+[assembly: AssemblyFileVersion("4.1.0")]
diff --git a/src/ContainerRegistry/ContainerRegistry.Sdk/Properties/AssemblyInfo.cs b/src/ContainerRegistry/ContainerRegistry.Sdk/Properties/AssemblyInfo.cs
index a7c14a82ef37..6869e4bf68ac 100644
--- a/src/ContainerRegistry/ContainerRegistry.Sdk/Properties/AssemblyInfo.cs
+++ b/src/ContainerRegistry/ContainerRegistry.Sdk/Properties/AssemblyInfo.cs
@@ -26,5 +26,5 @@
[assembly: CLSCompliant(false)]
[assembly: Guid("40d4fbe5-f40f-4349-8f2a-6182f92e4394")]
-[assembly: AssemblyVersion("4.0.0")]
-[assembly: AssemblyFileVersion("4.0.0")]
+[assembly: AssemblyVersion("4.1.0")]
+[assembly: AssemblyFileVersion("4.1.0")]
diff --git a/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1 b/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1
index 8cffb32f942a..e63eaa5cfc2f 100644
--- a/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1
+++ b/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 7/21/2023
+# Generated on: 26/07/2023
#
@{
@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
-ModuleVersion = '4.0.0'
+ModuleVersion = '4.1.0'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.3'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.5'; })
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.PowerShell.ContainerRegistry.Sdk.dll',
@@ -140,7 +140,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure', 'ResourceManager', 'ARM', 'Registry', 'ContainerRegistry'
+ Tags = 'Azure','ResourceManager','ARM','Registry','ContainerRegistry'
# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
@@ -152,7 +152,8 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Updated module to autorest based'
+ ReleaseNotes = '* Updated Azure.Core to 1.33.0.
+* Added new cmdlet ''New-AzContainerRegistryCredentials'''
# Prerelease string of this module
# Prerelease = ''
@@ -165,7 +166,7 @@ PrivateData = @{
} # End of PSData hashtable
-} # End of PrivateData hashtable
+ } # End of PrivateData hashtable
# HelpInfo URI of this module
# HelpInfoURI = ''
diff --git a/src/ContainerRegistry/ContainerRegistry/ChangeLog.md b/src/ContainerRegistry/ContainerRegistry/ChangeLog.md
index 1bc2d16b9d68..953e5d72285b 100644
--- a/src/ContainerRegistry/ContainerRegistry/ChangeLog.md
+++ b/src/ContainerRegistry/ContainerRegistry/ChangeLog.md
@@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
+
+## Version 4.1.0
* Updated Azure.Core to 1.33.0.
* Added new cmdlet `New-AzContainerRegistryCredentials`
diff --git a/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs b/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs
index e62e6e089521..1ec88827d8f3 100644
--- a/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs
+++ b/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs
@@ -25,8 +25,8 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("FE330703-623A-4C08-9DA7-1C63B4058034")]
-[assembly: AssemblyVersion("4.0.0")]
-[assembly: AssemblyFileVersion("4.0.0")]
+[assembly: AssemblyVersion("4.1.0")]
+[assembly: AssemblyFileVersion("4.1.0")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Test")]
#endif
diff --git a/src/CosmosDB/CosmosDB.Sdk/Customized/IpAddressOrRange.cs b/src/CosmosDB/CosmosDB.Sdk/Customized/IpAddressOrRange.cs
new file mode 100644
index 000000000000..5b02d9ff7e38
--- /dev/null
+++ b/src/CosmosDB/CosmosDB.Sdk/Customized/IpAddressOrRange.cs
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.Management.CosmosDB.Models
+{
+ ///
+ /// IpAddressOrRange object
+ ///
+ public partial class IpAddressOrRange
+ {
+
+
+ ///
+ /// This is an alias to the IPAddressOrRangeProperty property. This is for backward compatibility.
+ /// This property will be deprecated in the future, please use IPAddressOrRangeProperty instead.
+ ///
+ public string IpAddressOrRangeProperty {get=>IPAddressOrRangeProperty; set=>IPAddressOrRangeProperty=value; }
+ }
+}
\ No newline at end of file
diff --git a/src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs b/src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs
index dd2b6c5ef796..2c1e82aadc37 100644
--- a/src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs
+++ b/src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs
@@ -1,31 +1,19 @@
-//
// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
+// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.CosmosDB
{
+ using System.Linq;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
///
/// CassandraClustersOperations operations.
///
- internal partial class CassandraClustersOperations : IServiceOperations, ICassandraClustersOperations
+ internal partial class CassandraClustersOperations : Microsoft.Rest.IServiceOperations, ICassandraClustersOperations
{
///
/// Initializes a new instance of the CassandraClustersOperations class.
@@ -36,13 +24,13 @@ internal partial class CassandraClustersOperations : IServiceOperations
/// Thrown when a required parameter is null
///
- internal CassandraClustersOperations(CosmosDBManagementClient client)
+ internal CassandraClustersOperations (CosmosDBManagementClient client)
{
- if (client == null)
+ if (client == null)
{
throw new System.ArgumentNullException("client");
}
- Client = client;
+ this.Client = client;
}
///
@@ -59,13 +47,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -74,73 +62,74 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
- if (Client.ApiVersion == null)
+ if (this.Client.ApiVersion == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
- {
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -152,55 +141,56 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -210,9 +200,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -223,25 +214,29 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
/// List all managed Cassandra clusters in this resource group.
///
@@ -254,13 +249,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -269,90 +264,91 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
+ if (this.Client.ApiVersion == null)
{
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
+
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -364,55 +360,56 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -422,9 +419,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -435,25 +433,29 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
/// Get the properties of a managed Cassandra cluster.
///
@@ -469,13 +471,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -484,111 +486,112 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (Client.ApiVersion == null)
+ if (this.Client.ApiVersion == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
- {
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -600,55 +603,56 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -658,9 +662,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -671,25 +676,29 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
/// Deletes a managed Cassandra cluster.
///
@@ -700,21 +709,20 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Managed Cassandra cluster name.
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Create or update a managed Cassandra cluster. When updating, you must
- /// specify all writable properties. To update only some properties, use PATCH.
+ /// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -723,20 +731,19 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Managed Cassandra cluster name.
///
///
- /// The properties specifying the desired state of the managed Cassandra
- /// cluster.
+ /// The properties specifying the desired state of the managed Cassandra cluster.
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task> CreateUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> CreateUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send Request
- AzureOperationResponse _response = await BeginCreateUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, body, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, body, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
@@ -752,20 +759,20 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Parameters to provide for specifying the managed Cassandra cluster.
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, body, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, body, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Invoke a command like nodetool for cassandra maintenance
+ /// Invoke a command like nodetool for cassandra maintenance
///
///
/// The name of the resource group. The name is case insensitive.
@@ -777,23 +784,20 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Specification which command to run where
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task> InvokeCommandWithHttpMessagesAsync(string resourceGroupName, string clusterName, CommandPostBody body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> InvokeCommandWithHttpMessagesAsync(string resourceGroupName, string clusterName, CommandPostBody body, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send request
- AzureOperationResponse _response = await BeginInvokeCommandWithHttpMessagesAsync(resourceGroupName, clusterName, body, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginInvokeCommandWithHttpMessagesAsync(resourceGroupName, clusterName, body, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
- /// Deallocation will deallocate the host virtual machine of this cluster, and
- /// reserved the data disk. This won't do anything on an already deallocated
- /// cluster. Use Start to restart the cluster.
+ /// Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -802,23 +806,20 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Managed Cassandra cluster name.
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task DeallocateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task DeallocateWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send request
- AzureOperationResponse _response = await BeginDeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
- /// start the host virtual machine of this cluster with reserved data disk.
- /// This won't do anything on an already running cluster. Use Deallocate to
- /// deallocate the cluster.
+ /// Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -827,21 +828,20 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Managed Cassandra cluster name.
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task StartWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task StartWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send request
- AzureOperationResponse _response = await BeginStartWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginStartWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Gets the CPU, memory, and disk usage statistics for each Cassandra node in
- /// a cluster.
+ /// Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -855,13 +855,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -870,111 +870,112 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> StatusWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> StatusWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
+ if (this.Client.ApiVersion == null)
{
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Status", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Status", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/status").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -986,55 +987,56 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -1044,9 +1046,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -1057,25 +1060,29 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
/// Deletes a managed Cassandra cluster.
///
@@ -1091,10 +1098,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -1103,111 +1110,112 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (Client.ApiVersion == null)
+ if (this.Client.ApiVersion == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
- {
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -1219,55 +1227,56 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 202 && (int)_statusCode != 204)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -1277,23 +1286,27 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
- /// Create or update a managed Cassandra cluster. When updating, you must
- /// specify all writable properties. To update only some properties, use PATCH.
+ /// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -1302,8 +1315,7 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
/// Managed Cassandra cluster name.
///
///
- /// The properties specifying the desired state of the managed Cassandra
- /// cluster.
+ /// The properties specifying the desired state of the managed Cassandra cluster.
///
///
/// Headers that will be added to request.
@@ -1311,13 +1323,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -1326,116 +1338,118 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> BeginCreateUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (body == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "body");
+ }
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (Client.ApiVersion == null)
+ if (this.Client.ApiVersion == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
- {
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
- }
- if (body == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "body");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
tracingParameters.Add("body", body);
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateUpdate", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateUpdate", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -1447,61 +1461,62 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
if(body != null)
{
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -1511,9 +1526,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -1524,16 +1540,16 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
// Deserialize Response
@@ -1542,25 +1558,29 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
/// Updates some of the properties of a managed Cassandra cluster.
///
@@ -1579,13 +1599,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -1594,116 +1614,117 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterResource body, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (body == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "body");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId == null)
{
- if (Client.SubscriptionId.Length < 1)
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (this.Client.SubscriptionId != null)
+ {
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
- }
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
- {
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (body == null)
+ if (this.Client.ApiVersion == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "body");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
tracingParameters.Add("body", body);
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -1715,61 +1736,62 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
if(body != null)
{
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -1779,9 +1801,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -1792,16 +1815,16 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
// Deserialize Response
@@ -1810,27 +1833,31 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
- /// Invoke a command like nodetool for cassandra maintenance
+ /// Invoke a command like nodetool for cassandra maintenance
///
///
/// The name of the resource group. The name is case insensitive.
@@ -1847,13 +1874,13 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when unable to deserialize the response
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -1862,120 +1889,121 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginInvokeCommandWithHttpMessagesAsync(string resourceGroupName, string clusterName, CommandPostBody body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> BeginInvokeCommandWithHttpMessagesAsync(string resourceGroupName, string clusterName, CommandPostBody body, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (body == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "body");
+ }
+ if (body != null)
+ {
+ body.Validate();
+ }
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
- }
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
- {
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (body == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "body");
- }
- if (body != null)
+ if (this.Client.ApiVersion == null)
{
- body.Validate();
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
tracingParameters.Add("body", body);
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginInvokeCommand", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginInvokeCommand", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/invokeCommand").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -1987,61 +2015,62 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
if(body != null)
{
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 202)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -2051,9 +2080,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -2064,30 +2094,31 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
- catch (JsonException ex)
+ catch (Newtonsoft.Json.JsonException ex)
{
_httpRequest.Dispose();
if (_httpResponse != null)
{
_httpResponse.Dispose();
}
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
- /// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
- /// Deallocation will deallocate the host virtual machine of this cluster, and
- /// reserved the data disk. This won't do anything on an already deallocated
- /// cluster. Use Start to restart the cluster.
+ /// Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -2101,10 +2132,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -2113,111 +2144,112 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeallocateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task BeginDeallocateWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (Client.SubscriptionId == null)
+
+
+
+
+ if (this.Client.SubscriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (Client.SubscriptionId != null)
+ if (this.Client.SubscriptionId != null)
{
- if (Client.SubscriptionId.Length < 1)
+ if (this.Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
}
if (resourceGroupName != null)
{
if (resourceGroupName.Length > 90)
{
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
}
if (resourceGroupName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
if (clusterName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "clusterName");
}
if (clusterName != null)
{
if (clusterName.Length > 100)
{
- throw new ValidationException(ValidationRules.MaxLength, "clusterName", 100);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "clusterName", 100);
}
if (clusterName.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "clusterName", 1);
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "clusterName", 1);
}
if (!System.Text.RegularExpressions.Regex.IsMatch(clusterName, "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
}
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- if (Client.ApiVersion != null)
+ if (this.Client.ApiVersion == null)
{
- if (Client.ApiVersion.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
- }
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+
// Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
if (_shouldTrace)
{
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("clusterName", clusterName);
+
+
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDeallocate", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDeallocate", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
}
// Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
{
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
}
- if (Client.AcceptLanguage != null)
+ if (this.Client.AcceptLanguage != null)
{
if (_httpRequest.Headers.Contains("accept-language"))
{
_httpRequest.Headers.Remove("accept-language");
}
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
}
-
if (customHeaders != null)
{
foreach(var _header in customHeaders)
@@ -2229,55 +2261,56 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
-
// Serialize Request
string _requestContent = null;
// Set Credentials
- if (Client.Credentials != null)
+ if (this.Client.Credentials != null)
{
cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
}
// Send Request
if (_shouldTrace)
{
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
}
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
+
if ((int)_statusCode != 202)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
+ ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
- catch (JsonException)
+ catch (Newtonsoft.Json.JsonException)
{
// Ignore the exception
}
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Error(_invocationId, ex);
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
}
_httpRequest.Dispose();
if (_httpResponse != null)
@@ -2287,25 +2320,27 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
- ServiceClientTracing.Exit(_invocationId, _result);
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
}
return _result;
- }
+
+
+
+
+ }
///
- /// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
- /// start the host virtual machine of this cluster with reserved data disk.
- /// This won't do anything on an already running cluster. Use Deallocate to
- /// deallocate the cluster.
+ /// Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -2319,10 +2354,10 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when a required parameter is null
///
///
@@ -2331,111 +2366,112 @@ internal CassandraClustersOperations(CosmosDBManagementClient client)
///