From 2c3f22016392c38a88f88e7fe21f22b0f41bdaa3 Mon Sep 17 00:00:00 2001
From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Date: Sun, 5 Jan 2025 18:18:49 -0800
Subject: [PATCH] [Automation] Generate Fluent Lite from Swagger
postgresql#package-flexibleserver-2024-08-01 (#43704)
---
eng/versioning/version_client.txt | 2 +-
.../CHANGELOG.md | 478 +++++++++++++++++-
.../README.md | 4 +-
.../SAMPLE.md | 296 +++++------
.../pom.xml | 4 +-
.../PostgreSqlManager.java | 18 +-
.../fluent/BackupsClient.java | 209 ++++++++
.../fluent/PostgreSqlManagementClient.java | 7 -
.../fluent/QuotaUsagesClient.java | 56 --
.../fluent/models/ConfigurationInner.java | 8 +-
.../models/ConfigurationProperties.java | 12 +-
.../fluent/models/MigrationResourceInner.java | 16 +-
.../models/MigrationResourceProperties.java | 24 +-
.../MigrationResourcePropertiesForPatch.java | 24 +-
.../fluent/models/QuotaUsageInner.java | 209 --------
.../models/ServerPropertiesForUpdate.java | 33 +-
.../implementation/BackupsClientImpl.java | 468 +++++++++++++++++
.../implementation/BackupsImpl.java | 26 +
.../PostgreSqlManagementClientImpl.java | 18 +-
.../implementation/QuotaUsageImpl.java | 49 --
.../implementation/QuotaUsagesClientImpl.java | 259 ----------
.../implementation/QuotaUsagesImpl.java | 45 --
.../implementation/ServerImpl.java | 9 +-
.../models/Backups.java | 52 ++
.../models/Configuration.java | 20 +-
.../models/ConfigurationForUpdate.java | 8 +-
.../models/IdentityType.java | 5 +
.../models/MigrationResource.java | 40 +-
.../models/MigrationResourceForPatch.java | 16 +-
.../models/NameProperty.java | 121 -----
.../models/Origin.java | 5 +
.../models/QuotaUsage.java | 54 --
.../models/QuotaUsages.java | 38 --
.../models/QuotaUsagesListResult.java | 103 ----
.../models/Server.java | 25 +-
.../models/ServerForUpdate.java | 25 +
.../models/ServerVersion.java | 10 +-
.../proxy-config.json | 2 +-
.../AdministratorsCreateSamples.java | 4 +-
.../AdministratorsDeleteSamples.java | 2 +-
.../generated/AdministratorsGetSamples.java | 4 +-
.../AdministratorsListByServerSamples.java | 2 +-
...Samples.java => BackupsCreateSamples.java} | 14 +-
.../generated/BackupsDeleteSamples.java | 24 +
.../generated/BackupsGetSamples.java | 3 +-
.../generated/BackupsListByServerSamples.java | 4 +-
.../CheckNameAvailabilityExecuteSamples.java | 2 +-
...vailabilityWithLocationExecuteSamples.java | 2 +-
.../generated/ConfigurationsGetSamples.java | 4 +-
.../ConfigurationsListByServerSamples.java | 2 +-
.../generated/ConfigurationsPutSamples.java | 2 +-
.../ConfigurationsUpdateSamples.java | 2 +-
.../generated/DatabasesCreateSamples.java | 4 +-
.../generated/DatabasesDeleteSamples.java | 4 +-
.../generated/DatabasesGetSamples.java | 3 +-
.../DatabasesListByServerSamples.java | 2 +-
.../FirewallRulesCreateOrUpdateSamples.java | 4 +-
.../generated/FirewallRulesDeleteSamples.java | 4 +-
.../generated/FirewallRulesGetSamples.java | 4 +-
.../FirewallRulesListByServerSamples.java | 2 +-
.../FlexibleServerStartLtrBackupSamples.java | 2 +-
...xibleServerTriggerLtrPreBackupSamples.java | 2 +-
...GetPrivateDnsZoneSuffixExecuteSamples.java | 2 +-
...cationBasedCapabilitiesExecuteSamples.java | 4 +-
.../LogFilesListByServerSamples.java | 2 +-
.../LtrBackupOperationsGetSamples.java | 2 +-
...trBackupOperationsListByServerSamples.java | 2 +-
.../generated/MigrationsCreateSamples.java | 14 +-
.../generated/MigrationsDeleteSamples.java | 4 +-
.../generated/MigrationsGetSamples.java | 12 +-
.../MigrationsListByTargetServerSamples.java | 2 +-
.../generated/MigrationsUpdateSamples.java | 8 +-
.../generated/OperationsListSamples.java | 3 +-
...pointConnectionOperationDeleteSamples.java | 2 +-
...pointConnectionOperationUpdateSamples.java | 2 +-
.../PrivateEndpointConnectionsGetSamples.java | 2 +-
...ndpointConnectionsListByServerSamples.java | 2 +-
.../PrivateLinkResourcesGetSamples.java | 2 +-
...ivateLinkResourcesListByServerSamples.java | 2 +-
.../ReplicasListByServerSamples.java | 2 +-
...CheckMigrationNameAvailabilitySamples.java | 2 +-
.../ServerCapabilitiesListSamples.java | 4 +-
...otectionSettingsCreateOrUpdateSamples.java | 2 +-
...verThreatProtectionSettingsGetSamples.java | 2 +-
...ProtectionSettingsListByServerSamples.java | 2 +-
.../generated/ServersCreateSamples.java | 15 +-
.../generated/ServersDeleteSamples.java | 3 +-
.../ServersGetByResourceGroupSamples.java | 9 +-
.../ServersListByResourceGroupSamples.java | 2 +-
.../generated/ServersListSamples.java | 3 +-
.../generated/ServersRestartSamples.java | 5 +-
.../generated/ServersStartSamples.java | 3 +-
.../generated/ServersStopSamples.java | 3 +-
.../generated/ServersUpdateSamples.java | 19 +-
.../VirtualEndpointsCreateSamples.java | 2 +-
.../VirtualEndpointsDeleteSamples.java | 2 +-
.../generated/VirtualEndpointsGetSamples.java | 2 +-
.../VirtualEndpointsListByServerSamples.java | 2 +-
.../VirtualEndpointsUpdateSamples.java | 2 +-
...rtualNetworkSubnetUsageExecuteSamples.java | 2 +-
.../AdministratorsCreateMockTests.java | 18 +-
.../AdministratorsDeleteMockTests.java | 2 +-
...dministratorsGetWithResponseMockTests.java | 12 +-
.../AdministratorsListByServerMockTests.java | 12 +-
.../generated/BackupRequestBaseTests.java | 8 +-
.../generated/BackupSettingsTests.java | 8 +-
.../generated/BackupStoreDetailsTests.java | 10 +-
...Tests.java => BackupsCreateMockTests.java} | 22 +-
.../BackupsGetWithResponseMockTests.java | 10 +-
.../BackupsListByServerMockTests.java | 10 +-
...abilitiesExecuteWithResponseMockTests.java | 8 +-
...LocationsExecuteWithResponseMockTests.java | 8 +-
...onfigurationsGetWithResponseMockTests.java | 8 +-
.../ConfigurationsListByServerMockTests.java | 8 +-
.../generated/ConfigurationsPutMockTests.java | 14 +-
.../generated/DatabasesCreateMockTests.java | 14 +-
.../generated/DatabasesDeleteMockTests.java | 2 +-
.../DatabasesGetWithResponseMockTests.java | 8 +-
.../DatabasesListByServerMockTests.java | 8 +-
.../generated/DelegatedSubnetUsageTests.java | 5 +-
.../FirewallRulesCreateOrUpdateMockTests.java | 14 +-
.../FirewallRulesDeleteMockTests.java | 2 +-
...FirewallRulesGetWithResponseMockTests.java | 8 +-
.../FirewallRulesListByServerMockTests.java | 8 +-
...ggerLtrPreBackupWithResponseMockTests.java | 8 +-
...eSuffixesExecuteWithResponseMockTests.java | 4 +-
...tionBasedCapabilitiesExecuteMockTests.java | 6 +-
.../generated/LogFileInnerTests.java | 32 +-
.../generated/LogFileListResultTests.java | 58 +--
.../generated/LogFilePropertiesTests.java | 32 +-
.../LogFilesListByServerMockTests.java | 14 +-
.../generated/LtrBackupRequestTests.java | 17 +-
.../generated/LtrPreBackupRequestTests.java | 8 +-
.../LtrPreBackupResponseInnerTests.java | 8 +-
.../LtrPreBackupResponsePropertiesTests.java | 8 +-
...MigrationsDeleteWithResponseMockTests.java | 4 +-
.../generated/NamePropertyTests.java | 27 -
.../OperationsListWithResponseMockTests.java | 4 +-
...ntConnectionOperationsUpdateMockTests.java | 14 +-
...ntConnectionsGetWithResponseMockTests.java | 10 +-
...pointConnectionsListByServerMockTests.java | 11 +-
...LinkResourcesGetWithResponseMockTests.java | 6 +-
...ateLinkResourcesListByServerMockTests.java | 8 +-
.../generated/QuotaUsageInnerTests.java | 42 --
.../generated/QuotaUsagesListResultTests.java | 23 -
...grationNameAvailabilityWithRMockTests.java | 10 +-
.../generated/RestartParameterTests.java | 8 +-
.../generated/ServerBackupInnerTests.java | 8 +-
.../ServerBackupListResultTests.java | 13 +-
.../ServerBackupPropertiesTests.java | 9 +-
.../ServerCapabilitiesListMockTests.java | 6 +-
...ServerThreatProtectionListResultTests.java | 2 +-
...ServerThreatProtectionPropertiesTests.java | 8 +-
...ectionSettingsCreateOrUpdateMockTests.java | 4 +-
...ctionSettingsGetWithResponseMockTests.java | 6 +-
...otectionSettingsListByServerMockTests.java | 4 +-
...reatProtectionSettingsModelInnerTests.java | 2 +-
.../generated/ServersDeleteMockTests.java | 2 +-
.../generated/ServersRestartMockTests.java | 4 +-
.../generated/ServersStartMockTests.java | 2 +-
.../generated/ServersStopMockTests.java | 2 +-
.../generated/UserAssignedIdentityTests.java | 8 +-
.../VirtualEndpointResourceForPatchTests.java | 8 +-
.../VirtualEndpointResourceInnerTests.java | 8 +-
...irtualEndpointResourcePropertiesTests.java | 8 +-
.../VirtualEndpointsCreateMockTests.java | 10 +-
...tualEndpointsGetWithResponseMockTests.java | 6 +-
...VirtualEndpointsListByServerMockTests.java | 6 +-
.../VirtualEndpointsListResultTests.java | 24 +-
...rtualNetworkSubnetUsageParameterTests.java | 8 +-
...ualNetworkSubnetUsageResultInnerTests.java | 2 +-
...netUsagesExecuteWithResponseMockTests.java | 6 +-
172 files changed, 2039 insertions(+), 1771 deletions(-)
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/QuotaUsagesClient.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/QuotaUsageInner.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsageImpl.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesClientImpl.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesImpl.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/NameProperty.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsage.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsages.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsagesListResult.java
rename sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/{QuotaUsagesListSamples.java => BackupsCreateSamples.java} (56%)
create mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsDeleteSamples.java
rename sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/{QuotaUsagesListMockTests.java => BackupsCreateMockTests.java} (56%)
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/NamePropertyTests.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsageInnerTests.java
delete mode 100644 sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListResultTests.java
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 4d1a42eaebb79..f85e28950fb03 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -376,7 +376,7 @@ com.azure.resourcemanager:azure-resourcemanager-maps;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.5.0;1.6.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0;1.1.0
-com.azure.resourcemanager:azure-resourcemanager-postgresqlflexibleserver;1.0.0;1.1.0-beta.5
+com.azure.resourcemanager:azure-resourcemanager-postgresqlflexibleserver;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-elastic;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-webpubsub;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-security;1.0.0;1.1.0-beta.1
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md
index e63a91bde8025..8fa43b95fed8b 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md
@@ -1,14 +1,484 @@
# Release History
-## 1.1.0-beta.5 (Unreleased)
+## 1.1.0 (2025-01-06)
-### Features Added
+- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2024-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.NodeTypeCapability` was removed
+
+#### `models.StorageMBCapability` was removed
+
+#### `models.HyperscaleNodeEditionCapability` was removed
+
+#### `models.CapabilityProperties` was removed
+
+#### `models.VcoreCapability` was removed
+
+#### `models.StorageTierCapability` was modified
+
+* `tierName()` was removed
+* `java.lang.Long iops()` -> `java.lang.Integer iops()`
+* `isBaseline()` was removed
+* `java.lang.String status()` -> `models.CapabilityStatus status()`
+
+#### `models.FastProvisioningEditionCapability` was modified
+
+* `java.lang.Long supportedStorageGb()` -> `java.lang.Integer supportedStorageGb()`
+
+#### `models.ServerVersionCapability` was modified
+
+* `supportedVcores()` was removed
+* `java.lang.String status()` -> `models.CapabilityStatus status()`
+
+#### `models.FlexibleServerEditionCapability` was modified
+
+* `supportedServerVersions()` was removed
+* `java.lang.String status()` -> `models.CapabilityStatus status()`
+
+#### `models.StorageEditionCapability` was modified
+
+* `supportedStorageMB()` was removed
+* `java.lang.String status()` -> `models.CapabilityStatus status()`
+
+### Features Added
+
+* `models.ServerThreatProtectionSettingsModel$UpdateStages` was added
+
+* `models.ExecutionStatus` was added
+
+* `models.MigrationResource$Definition` was added
+
+* `models.LogFiles` was added
+
+* `models.ThreatProtectionState` was added
+
+* `models.MigrationResourceListResult` was added
+
+* `models.ServerThreatProtectionSettingsModel` was added
+
+* `models.LtrBackupResponse` was added
+
+* `models.MigrationOption` was added
+
+* `models.PrivateLinkResource` was added
+
+* `models.Migrations` was added
+
+* `models.Replica` was added
+
+* `models.ServerThreatProtectionSettingsModel$Update` was added
+
+* `models.MigrationMode` was added
+
+* `models.LtrBackupRequest` was added
+
+* `models.FlexibleServersTriggerLtrPreBackupResponse` was added
+
+* `models.ZoneRedundantHaSupportedEnum` was added
+
+* `models.ValidationState` was added
+
+* `models.ReadReplicaPromoteMode` was added
+
+* `models.PrivateEndpointConnectionProvisioningState` was added
+
+* `models.MigrationResourceForPatch` was added
+
+* `models.ServerThreatProtectionListResult` was added
+
+* `models.RestrictedEnum` was added
+
+* `models.PrivateLinkResources` was added
+
+* `models.VirtualEndpoints` was added
+
+* `models.OverwriteDbsInTargetEnum` was added
+
+* `models.VirtualEndpointResource$Definition` was added
+
+* `models.MigrationState` was added
+
+* `models.CapabilityStatus` was added
+
+* `models.AzureManagedDiskPerformanceTiers` was added
+
+* `models.StorageAutoGrowthSupportedEnum` was added
+
+* `models.PrivateLinkServiceConnectionState` was added
+
+* `models.MigrationResource$Update` was added
+
+* `models.VirtualEndpointResource$Update` was added
+
+* `models.ResourceProviders` was added
+
+* `models.PrivateLinkResourceListResult` was added
+
+* `models.MigrationStatus` was added
+
+* `models.PrivateEndpointConnections` was added
+
+* `models.StartDataMigrationEnum` was added
+
+* `models.ZoneRedundantHaAndGeoBackupSupportedEnum` was added
+
+* `models.StorageMbCapability` was added
+
+* `models.OnlineResizeSupportedEnum` was added
+
+* `models.MigrationNameAvailabilityResource` was added
+
+* `models.ServerSku` was added
-### Other Changes
+* `models.ThreatProtectionName` was added
+
+* `models.PrivateEndpoint` was added
+
+* `models.BackupStoreDetails` was added
+
+* `models.ServerThreatProtectionSettingsModel$Definition` was added
+
+* `models.MigrationResource$UpdateStages` was added
+
+* `models.FlexibleServers` was added
+
+* `models.LogicalReplicationOnSourceDbEnum` was added
+
+* `models.MigrationDbState` was added
+
+* `models.KeyStatusEnum` was added
+
+* `models.CancelEnum` was added
+
+* `models.MigrationListFilter` was added
+
+* `models.FlexibleServerCapability` was added
+
+* `models.ReplicationState` was added
+
+* `models.PrivateEndpointServiceConnectionStatus` was added
+
+* `models.CapabilityBase` was added
+
+* `models.MigrationNameAvailabilityReason` was added
+
+* `models.LtrBackupOperations` was added
+
+* `models.LtrServerBackupOperation` was added
+
+* `models.ServerCapabilities` was added
+
+* `models.ValidationDetails` was added
+
+* `models.ReplicationPromoteOption` was added
+
+* `models.FastProvisioningSupportedEnum` was added
+
+* `models.LogFile` was added
+
+* `models.VirtualEndpointResourceForPatch` was added
+
+* `models.BackupRequestBase` was added
+
+* `models.ServerSkuCapability` was added
+
+* `models.StorageType` was added
+
+* `models.ValidationMessage` was added
+
+* `models.VirtualEndpointResource` was added
+
+* `models.SourceType` was added
+
+* `models.LogFileListResult` was added
+
+* `models.StorageAutoGrow` was added
+
+* `models.PrivateEndpointConnectionOperations` was added
+
+* `models.VirtualEndpointsListResult` was added
+
+* `models.BackupSettings` was added
+
+* `models.MigrationSubStateDetails` was added
+
+* `models.LtrServerBackupOperationList` was added
+
+* `models.PrivateEndpointConnectionListResult` was added
+
+* `models.DbMigrationStatus` was added
+
+* `models.MigrateRolesEnum` was added
+
+* `models.ValidationSummaryItem` was added
+
+* `models.LtrPreBackupRequest` was added
+
+* `models.LtrPreBackupResponse` was added
+
+* `models.ServerThreatProtectionSettingsModel$DefinitionStages` was added
+
+* `models.MigrationResource` was added
+
+* `models.HaMode` was added
+
+* `models.GeoBackupSupportedEnum` was added
+
+* `models.MigrationSecretParameters` was added
+
+* `models.TriggerCutoverEnum` was added
+
+* `models.VirtualEndpointType` was added
+
+* `models.DbLevelValidationStatus` was added
+
+* `models.ServerThreatProtectionSettings` was added
+
+* `models.MigrationResource$DefinitionStages` was added
+
+* `models.MigrationSubState` was added
+
+* `models.PrivateEndpointConnection` was added
+
+* `models.VirtualEndpointResource$DefinitionStages` was added
+
+* `models.DbServerMetadata` was added
+
+* `models.FlexibleServersTriggerLtrPreBackupHeaders` was added
+
+* `models.AdminCredentials` was added
+
+* `models.VirtualEndpointResource$UpdateStages` was added
+
+* `models.SslMode` was added
+
+#### `models.Backup` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.StorageTierCapability` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `reason()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.HighAvailability` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.VirtualNetworkSubnetUsageParameter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Backups` was modified
+
+* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `create(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `create(java.lang.String,java.lang.String,java.lang.String)` was added
+* `delete(java.lang.String,java.lang.String,java.lang.String)` was added
+
+#### `models.ActiveDirectoryAdministratorAdd` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.CheckNameAvailabilityResponse` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.FastProvisioningEditionCapability` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `supportedTier()` was added
+* `status()` was added
+* `reason()` was added
+* `serverCount()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Storage` was modified
+
+* `withThroughput(java.lang.Integer)` was added
+* `withAutoGrow(models.StorageAutoGrow)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `withTier(models.AzureManagedDiskPerformanceTiers)` was added
+* `iops()` was added
+* `autoGrow()` was added
+* `withType(models.StorageType)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `tier()` was added
+* `withIops(java.lang.Integer)` was added
+* `throughput()` was added
+* `type()` was added
+
+#### `models.UserIdentity` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.OperationDisplay` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.UserAssignedIdentity` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.DelegatedSubnetUsage` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ServerForUpdate` was modified
+
+* `replica()` was added
+* `withAdministratorLogin(java.lang.String)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `administratorLogin()` was added
+* `withReplica(models.Replica)` was added
+
+#### `models.DatabaseListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.FirewallRuleListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.DataEncryption` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withPrimaryEncryptionKeyStatus(models.KeyStatusEnum)` was added
+* `geoBackupEncryptionKeyStatus()` was added
+* `geoBackupUserAssignedIdentityId()` was added
+* `geoBackupKeyUri()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `withGeoBackupEncryptionKeyStatus(models.KeyStatusEnum)` was added
+* `primaryEncryptionKeyStatus()` was added
+* `withGeoBackupKeyUri(java.lang.String)` was added
+* `withGeoBackupUserAssignedIdentityId(java.lang.String)` was added
+
+#### `models.RestartParameter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ServerVersionCapability` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `reason()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.AdministratorListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.FlexibleServerEditionCapability` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `reason()` was added
+* `supportedServerSkus()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `defaultSkuName()` was added
+
+#### `models.CapabilitiesListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.ConfigurationForUpdate` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Operation` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ServerBackupListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.MaintenanceWindow` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Network` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withPublicNetworkAccess(models.ServerPublicNetworkAccessState)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Sku` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.ConfigurationListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.CheckNameAvailabilityRequest` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Server$Update` was modified
+
+* `withReplica(models.Replica)` was added
+* `withAdministratorLogin(java.lang.String)` was added
+
+#### `models.Server` was modified
+
+* `replica()` was added
+* `privateEndpointConnections()` was added
+
+#### `models.ServerListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StorageEditionCapability` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `reason()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `supportedStorageMb()` was added
+* `defaultStorageSizeMb()` was added
+
+#### `models.AuthConfig` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `PostgreSqlManager` was modified
+
+* `serverThreatProtectionSettings()` was added
+* `privateEndpointConnections()` was added
+* `migrations()` was added
+* `privateEndpointConnectionOperations()` was added
+* `logFiles()` was added
+* `virtualEndpoints()` was added
+* `resourceProviders()` was added
+* `flexibleServers()` was added
+* `serverCapabilities()` was added
+* `ltrBackupOperations()` was added
+* `privateLinkResources()` was added
## 1.1.0-beta.4 (2024-12-06)
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/README.md b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/README.md
index 468e56ef768bc..21531cd762e68 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/README.md
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager PostgreSql client library for Java.
-This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2023-12-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2024-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-postgresqlflexibleserver
- 1.1.0-beta.4
+ 1.1.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md
index 66d49dbf74865..a36791cecb434 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md
@@ -10,6 +10,8 @@
## Backups
+- [Create](#backups_create)
+- [Delete](#backups_delete)
- [Get](#backups_get)
- [ListByServer](#backups_listbyserver)
@@ -91,10 +93,6 @@
- [Get](#privatelinkresources_get)
- [ListByServer](#privatelinkresources_listbyserver)
-## QuotaUsages
-
-- [List](#quotausages_list)
-
## Replicas
- [ListByServer](#replicas_listbyserver)
@@ -147,8 +145,8 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.PrincipalType;
public final class AdministratorsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * AdministratorAdd.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorAdd.
+ * json
*/
/**
* Sample code: Adds an Active DIrectory Administrator for the server.
@@ -177,7 +175,7 @@ public final class AdministratorsCreateSamples {
public final class AdministratorsDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* AdministratorDelete.json
*/
/**
@@ -202,8 +200,8 @@ public final class AdministratorsDeleteSamples {
public final class AdministratorsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * AdministratorGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorGet.
+ * json
*/
/**
* Sample code: ServerGet.
@@ -227,7 +225,7 @@ public final class AdministratorsGetSamples {
public final class AdministratorsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* AdministratorsListByServer.json
*/
/**
@@ -242,6 +240,53 @@ public final class AdministratorsListByServerSamples {
}
```
+### Backups_Create
+
+```java
+/**
+ * Samples for Backups Create.
+ */
+public final class BackupsCreateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupCreate.json
+ */
+ /**
+ * Sample code: Create a new Backup for a flexible server.
+ *
+ * @param manager Entry point to PostgreSqlManager.
+ */
+ public static void createANewBackupForAFlexibleServer(
+ com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
+ manager.backups()
+ .create("TestGroup", "postgresqltestserver", "backup_20210615T160516", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Backups_Delete
+
+```java
+/**
+ * Samples for Backups Delete.
+ */
+public final class BackupsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupDelete.json
+ */
+ /**
+ * Sample code: Delete a specific backup.
+ *
+ * @param manager Entry point to PostgreSqlManager.
+ */
+ public static void
+ deleteASpecificBackup(com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
+ manager.backups().delete("TestGroup", "testserver", "backup_20210615T160516", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Backups_Get
```java
@@ -251,8 +296,7 @@ public final class AdministratorsListByServerSamples {
public final class BackupsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/BackupGet
- * .json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupGet.json
*/
/**
* Sample code: Get a backup for a server.
@@ -277,8 +321,8 @@ public final class BackupsGetSamples {
public final class BackupsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * BackupListByServer.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupListByServer
+ * .json
*/
/**
* Sample code: List backups for a server.
@@ -303,7 +347,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvaila
public final class CheckNameAvailabilityExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CheckNameAvailability.json
*/
/**
@@ -330,7 +374,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvaila
public final class CheckNameAvailabilityWithLocationExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CheckNameAvailabilityLocationBased.json
*/
/**
@@ -355,8 +399,8 @@ public final class CheckNameAvailabilityWithLocationExecuteSamples {
public final class ConfigurationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ConfigurationGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ConfigurationGet.
+ * json
*/
/**
* Sample code: ConfigurationGet.
@@ -379,7 +423,7 @@ public final class ConfigurationsGetSamples {
public final class ConfigurationsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ConfigurationListByServer.json
*/
/**
@@ -402,7 +446,7 @@ public final class ConfigurationsListByServerSamples {
public final class ConfigurationsPutSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ConfigurationUpdate.json
*/
/**
@@ -433,7 +477,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.Configuration;
public final class ConfigurationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ConfigurationUpdate.json
*/
/**
@@ -460,8 +504,8 @@ public final class ConfigurationsUpdateSamples {
public final class DatabasesCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * DatabaseCreate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseCreate.
+ * json
*/
/**
* Sample code: Create a database.
@@ -488,8 +532,8 @@ public final class DatabasesCreateSamples {
public final class DatabasesDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * DatabaseDelete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseDelete.
+ * json
*/
/**
* Sample code: Delete a database.
@@ -511,8 +555,7 @@ public final class DatabasesDeleteSamples {
public final class DatabasesGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * DatabaseGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseGet.json
*/
/**
* Sample code: Get a database.
@@ -534,7 +577,7 @@ public final class DatabasesGetSamples {
public final class DatabasesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* DatabasesListByServer.json
*/
/**
@@ -558,8 +601,8 @@ public final class DatabasesListByServerSamples {
public final class FirewallRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * FirewallRuleCreate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleCreate
+ * .json
*/
/**
* Sample code: FirewallRuleCreate.
@@ -587,8 +630,8 @@ public final class FirewallRulesCreateOrUpdateSamples {
public final class FirewallRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * FirewallRuleDelete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleDelete
+ * .json
*/
/**
* Sample code: FirewallRuleDelete.
@@ -611,8 +654,8 @@ public final class FirewallRulesDeleteSamples {
public final class FirewallRulesGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * FirewallRuleGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleGet.
+ * json
*/
/**
* Sample code: FirewallRuleList.
@@ -634,7 +677,7 @@ public final class FirewallRulesGetSamples {
public final class FirewallRulesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* FirewallRuleListByServer.json
*/
/**
@@ -662,7 +705,7 @@ import java.util.Arrays;
public final class FlexibleServerStartLtrBackupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionBackup.json
*/
/**
@@ -693,7 +736,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.LtrPreBackupReq
public final class FlexibleServerTriggerLtrPreBackupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionPreBackup.json
*/
/**
@@ -719,7 +762,7 @@ public final class FlexibleServerTriggerLtrPreBackupSamples {
public final class GetPrivateDnsZoneSuffixExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* GetPrivateDnsZoneSuffix.json
*/
/**
@@ -743,7 +786,7 @@ public final class GetPrivateDnsZoneSuffixExecuteSamples {
public final class LocationBasedCapabilitiesExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CapabilitiesByLocation.json
*/
/**
@@ -752,7 +795,7 @@ public final class LocationBasedCapabilitiesExecuteSamples {
* @param manager Entry point to PostgreSqlManager.
*/
public static void capabilitiesList(com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
- manager.locationBasedCapabilities().execute("westus", com.azure.core.util.Context.NONE);
+ manager.locationBasedCapabilities().execute("eastus", com.azure.core.util.Context.NONE);
}
}
```
@@ -766,7 +809,7 @@ public final class LocationBasedCapabilitiesExecuteSamples {
public final class LogFilesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LogFilesListByServer.json
*/
/**
@@ -790,7 +833,7 @@ public final class LogFilesListByServerSamples {
public final class LtrBackupOperationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionOperationGet.json
*/
/**
@@ -814,7 +857,7 @@ public final class LtrBackupOperationsGetSamples {
public final class LtrBackupOperationsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionOperationListByServer.json
*/
/**
@@ -849,7 +892,7 @@ import java.util.Arrays;
public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_With_PrivateEndpoint_Servers.json
*/
/**
@@ -878,7 +921,7 @@ public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_With_Roles.json
*/
/**
@@ -906,7 +949,7 @@ public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_Validate_Only.json
*/
/**
@@ -934,7 +977,7 @@ public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_With_Other_Users.json
*/
/**
@@ -962,8 +1005,8 @@ public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Create.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create.
+ * json
*/
/**
* Sample code: Migrations_Create.
@@ -990,7 +1033,7 @@ public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_Other_SourceTypes_Validate_Migrate.json
*/
/**
@@ -1028,8 +1071,8 @@ public final class MigrationsCreateSamples {
public final class MigrationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Delete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Delete.
+ * json
*/
/**
* Sample code: Migrations_Delete.
@@ -1053,7 +1096,7 @@ public final class MigrationsDeleteSamples {
public final class MigrationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithSuccessfulValidationOnly.json
*/
/**
@@ -1070,8 +1113,8 @@ public final class MigrationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Get.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Get.
+ * json
*/
/**
* Sample code: Migrations_Get.
@@ -1086,7 +1129,7 @@ public final class MigrationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithSuccessfulValidationButMigrationFailure.json
*/
/**
@@ -1103,7 +1146,7 @@ public final class MigrationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithSuccessfulValidationAndMigration.json
*/
/**
@@ -1120,7 +1163,7 @@ public final class MigrationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithValidationFailures.json
*/
/**
@@ -1148,7 +1191,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationListFi
public final class MigrationsListByTargetServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_ListByTargetServer.json
*/
/**
@@ -1178,8 +1221,8 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationResour
public final class MigrationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Cancel.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Cancel.
+ * json
*/
/**
* Sample code: Cancel migration.
@@ -1196,8 +1239,8 @@ public final class MigrationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Update.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Update.
+ * json
*/
/**
* Sample code: Migrations_Update.
@@ -1223,8 +1266,7 @@ public final class MigrationsUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * OperationList.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/OperationList.json
*/
/**
* Sample code: OperationList.
@@ -1246,7 +1288,7 @@ public final class OperationsListSamples {
public final class PrivateEndpointConnectionOperationDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionDelete.json
*/
/**
@@ -1276,7 +1318,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.PrivateLinkServ
public final class PrivateEndpointConnectionOperationUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionUpdate.json
*/
/**
@@ -1305,7 +1347,7 @@ public final class PrivateEndpointConnectionOperationUpdateSamples {
public final class PrivateEndpointConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionGet.json
*/
/**
@@ -1332,7 +1374,7 @@ public final class PrivateEndpointConnectionsGetSamples {
public final class PrivateEndpointConnectionsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionList.json
*/
/**
@@ -1356,7 +1398,7 @@ public final class PrivateEndpointConnectionsListByServerSamples {
public final class PrivateLinkResourcesGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateLinkResourcesGet.json
*/
/**
@@ -1380,7 +1422,7 @@ public final class PrivateLinkResourcesGetSamples {
public final class PrivateLinkResourcesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateLinkResourcesList.json
*/
/**
@@ -1395,30 +1437,6 @@ public final class PrivateLinkResourcesListByServerSamples {
}
```
-### QuotaUsages_List
-
-```java
-/**
- * Samples for QuotaUsages List.
- */
-public final class QuotaUsagesListSamples {
- /*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * QuotaUsagesForFlexibleServers.json
- */
- /**
- * Sample code: List of quota usages for flexible servers.
- *
- * @param manager Entry point to PostgreSqlManager.
- */
- public static void listOfQuotaUsagesForFlexibleServers(
- com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
- manager.quotaUsages().list("westus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Replicas_ListByServer
```java
@@ -1428,7 +1446,7 @@ public final class QuotaUsagesListSamples {
public final class ReplicasListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ReplicasListByServer.json
*/
/**
@@ -1454,7 +1472,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.Migratio
public final class ResourceProviderCheckMigrationNameAvailabilitySamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CheckMigrationNameAvailability.json
*/
/**
@@ -1482,8 +1500,8 @@ public final class ResourceProviderCheckMigrationNameAvailabilitySamples {
public final class ServerCapabilitiesListSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerCapabilities.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCapabilities
+ * .json
*/
/**
* Sample code: ServerCapabilitiesList.
@@ -1510,7 +1528,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.ThreatProtectio
public final class ServerThreatProtectionSettingsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerThreatProtectionSettingsCreateOrUpdate.json
*/
/**
@@ -1540,7 +1558,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.ThreatProtectio
public final class ServerThreatProtectionSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerThreatProtectionSettingsGet.json
*/
/**
@@ -1566,7 +1584,7 @@ public final class ServerThreatProtectionSettingsGetSamples {
public final class ServerThreatProtectionSettingsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerThreatProtectionSettingsListByServer.json
*/
/**
@@ -1615,7 +1633,7 @@ import java.util.Map;
public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateWithDataEncryptionEnabled.json
*/
/**
@@ -1657,7 +1675,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateReviveDropped.json
*/
/**
@@ -1680,7 +1698,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateGeoRestoreWithDataEncryptionEnabled.json
*/
/**
@@ -1715,8 +1733,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerCreate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreate.json
*/
/**
* Sample code: Create a new server.
@@ -1749,7 +1766,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateWithAadAuthEnabled.json
*/
/**
@@ -1788,7 +1805,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateReplica.json
*/
/**
@@ -1820,7 +1837,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreatePointInTimeRestore.json
*/
/**
@@ -1864,8 +1881,7 @@ public final class ServersCreateSamples {
public final class ServersDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerDelete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerDelete.json
*/
/**
* Sample code: ServerDelete.
@@ -1887,7 +1903,7 @@ public final class ServersDeleteSamples {
public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerGetWithPrivateEndpoints.json
*/
/**
@@ -1902,8 +1918,7 @@ public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerGet
- * .json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGet.json
*/
/**
* Sample code: ServerGet.
@@ -1916,8 +1931,8 @@ public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerGetWithVnet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGetWithVnet.
+ * json
*/
/**
* Sample code: ServerGetWithVnet.
@@ -1939,8 +1954,7 @@ public final class ServersGetByResourceGroupSamples {
public final class ServersListSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerList.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerList.json
*/
/**
* Sample code: ServerList.
@@ -1962,7 +1976,7 @@ public final class ServersListSamples {
public final class ServersListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerListByResourceGroup.json
*/
/**
@@ -1989,8 +2003,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.RestartParamete
public final class ServersRestartSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerRestart.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerRestart.json
*/
/**
* Sample code: ServerRestart.
@@ -2003,7 +2016,7 @@ public final class ServersRestartSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerRestartWithFailover.json
*/
/**
@@ -2030,8 +2043,7 @@ public final class ServersRestartSamples {
public final class ServersStartSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerStart.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerStart.json
*/
/**
* Sample code: ServerStart.
@@ -2053,8 +2065,7 @@ public final class ServersStartSamples {
public final class ServersStopSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerStop.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerStop.json
*/
/**
* Sample code: ServerStop.
@@ -2100,7 +2111,7 @@ import java.util.Map;
public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithAadAuthEnabled.json
*/
/**
@@ -2129,7 +2140,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithDataEncryptionEnabled.json
*/
/**
@@ -2164,7 +2175,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsPlannedSwitchover.json
*/
/**
@@ -2187,7 +2198,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsForcedSwitchover.json
*/
/**
@@ -2210,8 +2221,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerUpdate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdate.json
*/
/**
* Sample code: ServerUpdate.
@@ -2235,7 +2245,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithMajorVersionUpgrade.json
*/
/**
@@ -2253,7 +2263,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithCustomerMaintenanceWindow.json
*/
/**
@@ -2277,7 +2287,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsForcedStandaloneServer.json
*/
/**
@@ -2300,7 +2310,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsPlannedStandaloneServer.json
*/
/**
@@ -2346,7 +2356,7 @@ import java.util.Arrays;
public final class VirtualEndpointsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointCreate.json
*/
/**
@@ -2375,7 +2385,7 @@ public final class VirtualEndpointsCreateSamples {
public final class VirtualEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointDelete.json
*/
/**
@@ -2400,7 +2410,7 @@ public final class VirtualEndpointsDeleteSamples {
public final class VirtualEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointsGet.json
*/
/**
@@ -2425,7 +2435,7 @@ public final class VirtualEndpointsGetSamples {
public final class VirtualEndpointsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointsListByServer.json
*/
/**
@@ -2453,7 +2463,7 @@ import java.util.Arrays;
public final class VirtualEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointUpdate.json
*/
/**
@@ -2485,7 +2495,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.VirtualNetworkS
public final class VirtualNetworkSubnetUsageExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualNetworkSubnetUsage.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml
index f5e1fcdac227b..60828864662f1 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-postgresqlflexibleserver
- 1.1.0-beta.5
+ 1.1.0
jar
Microsoft Azure SDK for PostgreSql Management
- This package contains Microsoft Azure SDK for PostgreSql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2023-12-01-preview.
+ This package contains Microsoft Azure SDK for PostgreSql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2024-08-01.
/~https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/PostgreSqlManager.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/PostgreSqlManager.java
index f51ee624ea004..1b81948c4979d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/PostgreSqlManager.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/PostgreSqlManager.java
@@ -42,7 +42,6 @@
import com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateEndpointConnectionOperationsImpl;
import com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateLinkResourcesImpl;
-import com.azure.resourcemanager.postgresqlflexibleserver.implementation.QuotaUsagesImpl;
import com.azure.resourcemanager.postgresqlflexibleserver.implementation.ReplicasImpl;
import com.azure.resourcemanager.postgresqlflexibleserver.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServerCapabilitiesImpl;
@@ -67,7 +66,6 @@
import com.azure.resourcemanager.postgresqlflexibleserver.models.PrivateEndpointConnectionOperations;
import com.azure.resourcemanager.postgresqlflexibleserver.models.PrivateEndpointConnections;
import com.azure.resourcemanager.postgresqlflexibleserver.models.PrivateLinkResources;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsages;
import com.azure.resourcemanager.postgresqlflexibleserver.models.Replicas;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ResourceProviders;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ServerCapabilities;
@@ -127,8 +125,6 @@ public final class PostgreSqlManager {
private PrivateLinkResources privateLinkResources;
- private QuotaUsages quotaUsages;
-
private Replicas replicas;
private LogFiles logFiles;
@@ -303,7 +299,7 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.postgresqlflexibleserver")
.append("/")
- .append("1.1.0-beta.4");
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -583,18 +579,6 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /**
- * Gets the resource collection API of QuotaUsages.
- *
- * @return Resource collection API of QuotaUsages.
- */
- public QuotaUsages quotaUsages() {
- if (this.quotaUsages == null) {
- this.quotaUsages = new QuotaUsagesImpl(clientObject.getQuotaUsages(), this);
- }
- return quotaUsages;
- }
-
/**
* Gets the resource collection API of Replicas.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsClient.java
index 4b4ef7d1a6e14..02ac67d512187 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsClient.java
@@ -9,14 +9,223 @@
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.ServerBackupInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in BackupsClient.
*/
public interface BackupsClient {
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServerBackupInner> beginCreateAsync(String resourceGroupName,
+ String serverName, String backupName);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerBackupInner> beginCreate(String resourceGroupName,
+ String serverName, String backupName);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerBackupInner> beginCreate(String resourceGroupName,
+ String serverName, String backupName, Context context);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createAsync(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerBackupInner create(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerBackupInner create(String resourceGroupName, String serverName, String backupName, Context context);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, String backupName,
+ Context context);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serverName, String backupName, Context context);
+
/**
* Get specific backup for a given server.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PostgreSqlManagementClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PostgreSqlManagementClient.java
index 6c7757cc61049..3cc78d0a298f9 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PostgreSqlManagementClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PostgreSqlManagementClient.java
@@ -179,13 +179,6 @@ public interface PostgreSqlManagementClient {
*/
PrivateLinkResourcesClient getPrivateLinkResources();
- /**
- * Gets the QuotaUsagesClient object to access its operations.
- *
- * @return the QuotaUsagesClient object.
- */
- QuotaUsagesClient getQuotaUsages();
-
/**
* Gets the ReplicasClient object to access its operations.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/QuotaUsagesClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/QuotaUsagesClient.java
deleted file mode 100644
index 59ed9de674a3d..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/QuotaUsagesClient.java
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-
-/**
- * An instance of this class provides access to all the operations defined in QuotaUsagesClient.
- */
-public interface QuotaUsagesClient {
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String locationName);
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String locationName);
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String locationName, Context context);
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationInner.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationInner.java
index d9aab05dbce8b..2ddcc39e8fc75 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationInner.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationInner.java
@@ -98,7 +98,7 @@ public String id() {
}
/**
- * Get the value property: Value of the configuration.
+ * Get the value property: Value of the configuration. Required to update the configuration.
*
* @return the value value.
*/
@@ -107,7 +107,7 @@ public String value() {
}
/**
- * Set the value property: Value of the configuration.
+ * Set the value property: Value of the configuration. Required to update the configuration.
*
* @param value the value value to set.
* @return the ConfigurationInner object itself.
@@ -157,7 +157,7 @@ public String allowedValues() {
}
/**
- * Get the source property: Source of the configuration.
+ * Get the source property: Source of the configuration. Required to update the configuration.
*
* @return the source value.
*/
@@ -166,7 +166,7 @@ public String source() {
}
/**
- * Set the source property: Source of the configuration.
+ * Set the source property: Source of the configuration. Required to update the configuration.
*
* @param source the source value to set.
* @return the ConfigurationInner object itself.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationProperties.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationProperties.java
index 2fd9b7a945f82..2557185782c2d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationProperties.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ConfigurationProperties.java
@@ -18,7 +18,7 @@
@Fluent
public final class ConfigurationProperties implements JsonSerializable {
/*
- * Value of the configuration.
+ * Value of the configuration. Required to update the configuration.
*/
private String value;
@@ -43,7 +43,7 @@ public final class ConfigurationProperties implements JsonSerializable {
- /*
- * Name of quota usage for flexible servers
- */
- private NameProperty name;
-
- /*
- * Quota limit
- */
- private Long limit;
-
- /*
- * Quota unit
- */
- private String unit;
-
- /*
- * Current Quota usage value
- */
- private Long currentValue;
-
- /*
- * Fully qualified ARM resource Id
- */
- private String id;
-
- /**
- * Creates an instance of QuotaUsageInner class.
- */
- public QuotaUsageInner() {
- }
-
- /**
- * Get the name property: Name of quota usage for flexible servers.
- *
- * @return the name value.
- */
- public NameProperty name() {
- return this.name;
- }
-
- /**
- * Set the name property: Name of quota usage for flexible servers.
- *
- * @param name the name value to set.
- * @return the QuotaUsageInner object itself.
- */
- public QuotaUsageInner withName(NameProperty name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the limit property: Quota limit.
- *
- * @return the limit value.
- */
- public Long limit() {
- return this.limit;
- }
-
- /**
- * Set the limit property: Quota limit.
- *
- * @param limit the limit value to set.
- * @return the QuotaUsageInner object itself.
- */
- public QuotaUsageInner withLimit(Long limit) {
- this.limit = limit;
- return this;
- }
-
- /**
- * Get the unit property: Quota unit.
- *
- * @return the unit value.
- */
- public String unit() {
- return this.unit;
- }
-
- /**
- * Set the unit property: Quota unit.
- *
- * @param unit the unit value to set.
- * @return the QuotaUsageInner object itself.
- */
- public QuotaUsageInner withUnit(String unit) {
- this.unit = unit;
- return this;
- }
-
- /**
- * Get the currentValue property: Current Quota usage value.
- *
- * @return the currentValue value.
- */
- public Long currentValue() {
- return this.currentValue;
- }
-
- /**
- * Set the currentValue property: Current Quota usage value.
- *
- * @param currentValue the currentValue value to set.
- * @return the QuotaUsageInner object itself.
- */
- public QuotaUsageInner withCurrentValue(Long currentValue) {
- this.currentValue = currentValue;
- return this;
- }
-
- /**
- * Get the id property: Fully qualified ARM resource Id.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Set the id property: Fully qualified ARM resource Id.
- *
- * @param id the id value to set.
- * @return the QuotaUsageInner object itself.
- */
- public QuotaUsageInner withId(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (name() != null) {
- name().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("name", this.name);
- jsonWriter.writeNumberField("limit", this.limit);
- jsonWriter.writeStringField("unit", this.unit);
- jsonWriter.writeNumberField("currentValue", this.currentValue);
- jsonWriter.writeStringField("id", this.id);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of QuotaUsageInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of QuotaUsageInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the QuotaUsageInner.
- */
- public static QuotaUsageInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- QuotaUsageInner deserializedQuotaUsageInner = new QuotaUsageInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("name".equals(fieldName)) {
- deserializedQuotaUsageInner.name = NameProperty.fromJson(reader);
- } else if ("limit".equals(fieldName)) {
- deserializedQuotaUsageInner.limit = reader.getNullable(JsonReader::getLong);
- } else if ("unit".equals(fieldName)) {
- deserializedQuotaUsageInner.unit = reader.getString();
- } else if ("currentValue".equals(fieldName)) {
- deserializedQuotaUsageInner.currentValue = reader.getNullable(JsonReader::getLong);
- } else if ("id".equals(fieldName)) {
- deserializedQuotaUsageInner.id = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedQuotaUsageInner;
- });
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
index ca1f8f2ddbced..fc7b07dfd9cff 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
@@ -27,6 +27,12 @@
*/
@Fluent
public final class ServerPropertiesForUpdate implements JsonSerializable {
+ /*
+ * The administrator's login name of a server. Can only be specified when the server is trying to switch to password
+ * authentication and does not have default administrator login.
+ */
+ private String administratorLogin;
+
/*
* The password of the administrator login.
*/
@@ -95,6 +101,28 @@ public final class ServerPropertiesForUpdate implements JsonSerializable>> create(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
+ @PathParam("backupName") String backupName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
+ @PathParam("backupName") String backupName, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}")
@ExpectedResponses({ 200 })
@@ -88,6 +113,449 @@ Mono> listByServerNext(
@HeaderParam("Accept") String accept, Context context);
}
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (backupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, serverName, backupName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (backupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, serverName, backupName, accept, context);
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, ServerBackupInner> beginCreateAsync(String resourceGroupName,
+ String serverName, String backupName) {
+ Mono>> mono = createWithResponseAsync(resourceGroupName, serverName, backupName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ServerBackupInner.class, ServerBackupInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ServerBackupInner> beginCreateAsync(String resourceGroupName,
+ String serverName, String backupName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, serverName, backupName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ServerBackupInner.class, ServerBackupInner.class, context);
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ServerBackupInner> beginCreate(String resourceGroupName,
+ String serverName, String backupName) {
+ return this.beginCreateAsync(resourceGroupName, serverName, backupName).getSyncPoller();
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ServerBackupInner> beginCreate(String resourceGroupName,
+ String serverName, String backupName, Context context) {
+ return this.beginCreateAsync(resourceGroupName, serverName, backupName, context).getSyncPoller();
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createAsync(String resourceGroupName, String serverName, String backupName) {
+ return beginCreateAsync(resourceGroupName, serverName, backupName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String serverName, String backupName,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, serverName, backupName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ServerBackupInner create(String resourceGroupName, String serverName, String backupName) {
+ return createAsync(resourceGroupName, serverName, backupName).block();
+ }
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ServerBackupInner create(String resourceGroupName, String serverName, String backupName, Context context) {
+ return createAsync(resourceGroupName, serverName, backupName, context).block();
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (backupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, serverName, backupName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (backupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, serverName, backupName, accept, context);
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName,
+ String backupName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, serverName, backupName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName,
+ String backupName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, serverName, backupName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
+ String backupName) {
+ return this.beginDeleteAsync(resourceGroupName, serverName, backupName).getSyncPoller();
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
+ String backupName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, serverName, backupName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serverName, String backupName) {
+ return beginDeleteAsync(resourceGroupName, serverName, backupName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String serverName, String backupName, Context context) {
+ return beginDeleteAsync(resourceGroupName, serverName, backupName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serverName, String backupName) {
+ deleteAsync(resourceGroupName, serverName, backupName).block();
+ }
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serverName, String backupName, Context context) {
+ deleteAsync(resourceGroupName, serverName, backupName, context).block();
+ }
+
/**
* Get specific backup for a given server.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/BackupsImpl.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/BackupsImpl.java
index 5dedfd2aa6b56..d5d3e8b225915 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/BackupsImpl.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/BackupsImpl.java
@@ -27,6 +27,32 @@ public BackupsImpl(BackupsClient innerClient,
this.serviceManager = serviceManager;
}
+ public ServerBackup create(String resourceGroupName, String serverName, String backupName) {
+ ServerBackupInner inner = this.serviceClient().create(resourceGroupName, serverName, backupName);
+ if (inner != null) {
+ return new ServerBackupImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ServerBackup create(String resourceGroupName, String serverName, String backupName, Context context) {
+ ServerBackupInner inner = this.serviceClient().create(resourceGroupName, serverName, backupName, context);
+ if (inner != null) {
+ return new ServerBackupImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String serverName, String backupName) {
+ this.serviceClient().delete(resourceGroupName, serverName, backupName);
+ }
+
+ public void delete(String resourceGroupName, String serverName, String backupName, Context context) {
+ this.serviceClient().delete(resourceGroupName, serverName, backupName, context);
+ }
+
public Response getWithResponse(String resourceGroupName, String serverName, String backupName,
Context context) {
Response inner
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/PostgreSqlManagementClientImpl.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/PostgreSqlManagementClientImpl.java
index 1e937bf35d81a..e7154902c1caa 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/PostgreSqlManagementClientImpl.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/PostgreSqlManagementClientImpl.java
@@ -41,7 +41,6 @@
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.PrivateEndpointConnectionOperationsClient;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.PrivateLinkResourcesClient;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.QuotaUsagesClient;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.ReplicasClient;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.ResourceProvidersClient;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.ServerCapabilitiesClient;
@@ -413,20 +412,6 @@ public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
- /**
- * The QuotaUsagesClient object to access its operations.
- */
- private final QuotaUsagesClient quotaUsages;
-
- /**
- * Gets the QuotaUsagesClient object to access its operations.
- *
- * @return the QuotaUsagesClient object.
- */
- public QuotaUsagesClient getQuotaUsages() {
- return this.quotaUsages;
- }
-
/**
* The ReplicasClient object to access its operations.
*/
@@ -514,7 +499,7 @@ public VirtualNetworkSubnetUsagesClient getVirtualNetworkSubnetUsages() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-12-01-preview";
+ this.apiVersion = "2024-08-01";
this.administrators = new AdministratorsClientImpl(this);
this.backups = new BackupsClientImpl(this);
this.locationBasedCapabilities = new LocationBasedCapabilitiesClientImpl(this);
@@ -534,7 +519,6 @@ public VirtualNetworkSubnetUsagesClient getVirtualNetworkSubnetUsages() {
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
- this.quotaUsages = new QuotaUsagesClientImpl(this);
this.replicas = new ReplicasClientImpl(this);
this.logFiles = new LogFilesClientImpl(this);
this.serverThreatProtectionSettings = new ServerThreatProtectionSettingsClientImpl(this);
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsageImpl.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsageImpl.java
deleted file mode 100644
index 7e4b096d65810..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsageImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.implementation;
-
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.NameProperty;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsage;
-
-public final class QuotaUsageImpl implements QuotaUsage {
- private QuotaUsageInner innerObject;
-
- private final com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager serviceManager;
-
- QuotaUsageImpl(QuotaUsageInner innerObject,
- com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public NameProperty name() {
- return this.innerModel().name();
- }
-
- public Long limit() {
- return this.innerModel().limit();
- }
-
- public String unit() {
- return this.innerModel().unit();
- }
-
- public Long currentValue() {
- return this.innerModel().currentValue();
- }
-
- public String id() {
- return this.innerModel().id();
- }
-
- public QuotaUsageInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesClientImpl.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesClientImpl.java
deleted file mode 100644
index 86be3cf855b66..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesClientImpl.java
+++ /dev/null
@@ -1,259 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.implementation;
-
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.QuotaUsagesClient;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsagesListResult;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in QuotaUsagesClient.
- */
-public final class QuotaUsagesClientImpl implements QuotaUsagesClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final QuotaUsagesService service;
-
- /**
- * The service client containing this operation class.
- */
- private final PostgreSqlManagementClientImpl client;
-
- /**
- * Initializes an instance of QuotaUsagesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- QuotaUsagesClientImpl(PostgreSqlManagementClientImpl client) {
- this.service
- = RestProxy.create(QuotaUsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for PostgreSqlManagementClientQuotaUsages to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "PostgreSqlManagement")
- public interface QuotaUsagesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/resourceType/flexibleServers/usages")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("locationName") String locationName, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String locationName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), locationName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String locationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), locationName,
- accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listAsync(String locationName) {
- return new PagedFlux<>(() -> listSinglePageAsync(locationName), nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String locationName, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(locationName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String locationName) {
- return new PagedIterable<>(listAsync(locationName));
- }
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String locationName, Context context) {
- return new PagedIterable<>(listAsync(locationName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return capability for the PostgreSQL server along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return capability for the PostgreSQL server along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesImpl.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesImpl.java
deleted file mode 100644
index 47d5bef6e5f69..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/QuotaUsagesImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.QuotaUsagesClient;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsage;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsages;
-
-public final class QuotaUsagesImpl implements QuotaUsages {
- private static final ClientLogger LOGGER = new ClientLogger(QuotaUsagesImpl.class);
-
- private final QuotaUsagesClient innerClient;
-
- private final com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager serviceManager;
-
- public QuotaUsagesImpl(QuotaUsagesClient innerClient,
- com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String locationName) {
- PagedIterable inner = this.serviceClient().list(locationName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaUsageImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String locationName, Context context) {
- PagedIterable inner = this.serviceClient().list(locationName, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaUsageImpl(inner1, this.manager()));
- }
-
- private QuotaUsagesClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/ServerImpl.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/ServerImpl.java
index 75f61a38a4627..684673b9cb706 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/ServerImpl.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/implementation/ServerImpl.java
@@ -326,8 +326,13 @@ public ServerImpl withIdentity(UserAssignedIdentity identity) {
}
public ServerImpl withAdministratorLogin(String administratorLogin) {
- this.innerModel().withAdministratorLogin(administratorLogin);
- return this;
+ if (isInCreateMode()) {
+ this.innerModel().withAdministratorLogin(administratorLogin);
+ return this;
+ } else {
+ this.updateParameters.withAdministratorLogin(administratorLogin);
+ return this;
+ }
}
public ServerImpl withAdministratorLoginPassword(String administratorLoginPassword) {
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Backups.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Backups.java
index 4637cf515479b..e390b3f7cbcfa 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Backups.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Backups.java
@@ -12,6 +12,58 @@
* Resource collection API of Backups.
*/
public interface Backups {
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties.
+ */
+ ServerBackup create(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Create a specific backup for PostgreSQL flexible server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server backup properties.
+ */
+ ServerBackup create(String resourceGroupName, String serverName, String backupName, Context context);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Deletes a specific backup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName The name of the backup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String serverName, String backupName, Context context);
+
/**
* Get specific backup for a given server.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Configuration.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Configuration.java
index aa6d239286dc2..e42999bd7e06b 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Configuration.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Configuration.java
@@ -41,7 +41,7 @@ public interface Configuration {
SystemData systemData();
/**
- * Gets the value property: Value of the configuration.
+ * Gets the value property: Value of the configuration. Required to update the configuration.
*
* @return the value value.
*/
@@ -76,7 +76,7 @@ public interface Configuration {
String allowedValues();
/**
- * Gets the source property: Source of the configuration.
+ * Gets the source property: Source of the configuration. Required to update the configuration.
*
* @return the source value.
*/
@@ -188,9 +188,9 @@ interface WithCreate extends DefinitionStages.WithValue, DefinitionStages.WithSo
*/
interface WithValue {
/**
- * Specifies the value property: Value of the configuration..
+ * Specifies the value property: Value of the configuration. Required to update the configuration..
*
- * @param value Value of the configuration.
+ * @param value Value of the configuration. Required to update the configuration.
* @return the next definition stage.
*/
WithCreate withValue(String value);
@@ -201,9 +201,9 @@ interface WithValue {
*/
interface WithSource {
/**
- * Specifies the source property: Source of the configuration..
+ * Specifies the source property: Source of the configuration. Required to update the configuration..
*
- * @param source Source of the configuration.
+ * @param source Source of the configuration. Required to update the configuration.
* @return the next definition stage.
*/
WithCreate withSource(String source);
@@ -246,9 +246,9 @@ interface UpdateStages {
*/
interface WithValue {
/**
- * Specifies the value property: Value of the configuration..
+ * Specifies the value property: Value of the configuration. Required to update the configuration..
*
- * @param value Value of the configuration.
+ * @param value Value of the configuration. Required to update the configuration.
* @return the next definition stage.
*/
Update withValue(String value);
@@ -259,9 +259,9 @@ interface WithValue {
*/
interface WithSource {
/**
- * Specifies the source property: Source of the configuration..
+ * Specifies the source property: Source of the configuration. Required to update the configuration..
*
- * @param source Source of the configuration.
+ * @param source Source of the configuration. Required to update the configuration.
* @return the next definition stage.
*/
Update withSource(String source);
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ConfigurationForUpdate.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ConfigurationForUpdate.java
index d05f9c12558fb..897a06da6a89e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ConfigurationForUpdate.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ConfigurationForUpdate.java
@@ -38,7 +38,7 @@ private ConfigurationProperties innerProperties() {
}
/**
- * Get the value property: Value of the configuration.
+ * Get the value property: Value of the configuration. Required to update the configuration.
*
* @return the value value.
*/
@@ -47,7 +47,7 @@ public String value() {
}
/**
- * Set the value property: Value of the configuration.
+ * Set the value property: Value of the configuration. Required to update the configuration.
*
* @param value the value value to set.
* @return the ConfigurationForUpdate object itself.
@@ -97,7 +97,7 @@ public String allowedValues() {
}
/**
- * Get the source property: Source of the configuration.
+ * Get the source property: Source of the configuration. Required to update the configuration.
*
* @return the source value.
*/
@@ -106,7 +106,7 @@ public String source() {
}
/**
- * Set the source property: Source of the configuration.
+ * Set the source property: Source of the configuration. Required to update the configuration.
*
* @param source the source value to set.
* @return the ConfigurationForUpdate object itself.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/IdentityType.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/IdentityType.java
index e552e69843fe2..1993c85677652 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/IdentityType.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/IdentityType.java
@@ -21,6 +21,11 @@ public final class IdentityType extends ExpandableStringEnum {
*/
public static final IdentityType USER_ASSIGNED = fromString("UserAssigned");
+ /**
+ * Static value SystemAssigned for IdentityType.
+ */
+ public static final IdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned");
+
/**
* Creates a new instance of IdentityType value.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResource.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResource.java
index 5171314f3dd44..3f6c745d66748 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResource.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResource.java
@@ -133,8 +133,8 @@ public interface MigrationResource {
String sourceDbServerResourceId();
/**
- * Gets the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip. It is
- * a optional value, if customer provide it, dms will always use it for connection.
+ * Gets the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for connection.
*
* @return the sourceDbServerFullyQualifiedDomainName value.
*/
@@ -148,8 +148,8 @@ public interface MigrationResource {
String targetDbServerResourceId();
/**
- * Gets the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip. It is
- * a optional value, if customer provide it, dms will always use it for connection.
+ * Gets the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for connection.
*
* @return the targetDbServerFullyQualifiedDomainName value.
*/
@@ -463,10 +463,12 @@ interface WithSourceDbServerResourceId {
interface WithSourceDbServerFullyQualifiedDomainName {
/**
* Specifies the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name
- * or ip. It is a optional value, if customer provide it, dms will always use it for connection.
+ * (FQDN) or IP address. It is a optional value, if customer provide it, migration service will always use
+ * it for connection.
*
- * @param sourceDbServerFullyQualifiedDomainName Source server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * @param sourceDbServerFullyQualifiedDomainName Source server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for
+ * connection.
* @return the next definition stage.
*/
WithCreate withSourceDbServerFullyQualifiedDomainName(String sourceDbServerFullyQualifiedDomainName);
@@ -478,10 +480,12 @@ interface WithSourceDbServerFullyQualifiedDomainName {
interface WithTargetDbServerFullyQualifiedDomainName {
/**
* Specifies the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name
- * or ip. It is a optional value, if customer provide it, dms will always use it for connection.
+ * (FQDN) or IP address. It is a optional value, if customer provide it, migration service will always use
+ * it for connection.
*
- * @param targetDbServerFullyQualifiedDomainName Target server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * @param targetDbServerFullyQualifiedDomainName Target server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for
+ * connection.
* @return the next definition stage.
*/
WithCreate withTargetDbServerFullyQualifiedDomainName(String targetDbServerFullyQualifiedDomainName);
@@ -726,10 +730,12 @@ interface WithSourceDbServerResourceId {
interface WithSourceDbServerFullyQualifiedDomainName {
/**
* Specifies the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name
- * or ip. It is a optional value, if customer provide it, dms will always use it for connection.
+ * (FQDN) or IP address. It is a optional value, if customer provide it, migration service will always use
+ * it for connection.
*
- * @param sourceDbServerFullyQualifiedDomainName Source server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * @param sourceDbServerFullyQualifiedDomainName Source server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for
+ * connection.
* @return the next definition stage.
*/
Update withSourceDbServerFullyQualifiedDomainName(String sourceDbServerFullyQualifiedDomainName);
@@ -741,10 +747,12 @@ interface WithSourceDbServerFullyQualifiedDomainName {
interface WithTargetDbServerFullyQualifiedDomainName {
/**
* Specifies the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name
- * or ip. It is a optional value, if customer provide it, dms will always use it for connection.
+ * (FQDN) or IP address. It is a optional value, if customer provide it, migration service will always use
+ * it for connection.
*
- * @param targetDbServerFullyQualifiedDomainName Target server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * @param targetDbServerFullyQualifiedDomainName Target server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for
+ * connection.
* @return the next definition stage.
*/
Update withTargetDbServerFullyQualifiedDomainName(String targetDbServerFullyQualifiedDomainName);
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResourceForPatch.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResourceForPatch.java
index 3c2ca3e9851c5..b8b0e86a95a7d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResourceForPatch.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/MigrationResourceForPatch.java
@@ -89,8 +89,8 @@ public MigrationResourceForPatch withSourceDbServerResourceId(String sourceDbSer
}
/**
- * Get the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * Get the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for connection.
*
* @return the sourceDbServerFullyQualifiedDomainName value.
*/
@@ -99,8 +99,8 @@ public String sourceDbServerFullyQualifiedDomainName() {
}
/**
- * Set the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * Set the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for connection.
*
* @param sourceDbServerFullyQualifiedDomainName the sourceDbServerFullyQualifiedDomainName value to set.
* @return the MigrationResourceForPatch object itself.
@@ -115,8 +115,8 @@ public String sourceDbServerFullyQualifiedDomainName() {
}
/**
- * Get the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * Get the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for connection.
*
* @return the targetDbServerFullyQualifiedDomainName value.
*/
@@ -125,8 +125,8 @@ public String targetDbServerFullyQualifiedDomainName() {
}
/**
- * Set the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip. It is a
- * optional value, if customer provide it, dms will always use it for connection.
+ * Set the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name (FQDN) or IP
+ * address. It is a optional value, if customer provide it, migration service will always use it for connection.
*
* @param targetDbServerFullyQualifiedDomainName the targetDbServerFullyQualifiedDomainName value to set.
* @return the MigrationResourceForPatch object itself.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/NameProperty.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/NameProperty.java
deleted file mode 100644
index 48cf6475bcaee..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/NameProperty.java
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Name property for quota usage.
- */
-@Fluent
-public final class NameProperty implements JsonSerializable {
- /*
- * Name value
- */
- private String value;
-
- /*
- * Localized name
- */
- private String localizedValue;
-
- /**
- * Creates an instance of NameProperty class.
- */
- public NameProperty() {
- }
-
- /**
- * Get the value property: Name value.
- *
- * @return the value value.
- */
- public String value() {
- return this.value;
- }
-
- /**
- * Set the value property: Name value.
- *
- * @param value the value value to set.
- * @return the NameProperty object itself.
- */
- public NameProperty withValue(String value) {
- this.value = value;
- return this;
- }
-
- /**
- * Get the localizedValue property: Localized name.
- *
- * @return the localizedValue value.
- */
- public String localizedValue() {
- return this.localizedValue;
- }
-
- /**
- * Set the localizedValue property: Localized name.
- *
- * @param localizedValue the localizedValue value to set.
- * @return the NameProperty object itself.
- */
- public NameProperty withLocalizedValue(String localizedValue) {
- this.localizedValue = localizedValue;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("value", this.value);
- jsonWriter.writeStringField("localizedValue", this.localizedValue);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of NameProperty from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of NameProperty if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the NameProperty.
- */
- public static NameProperty fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- NameProperty deserializedNameProperty = new NameProperty();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- deserializedNameProperty.value = reader.getString();
- } else if ("localizedValue".equals(fieldName)) {
- deserializedNameProperty.localizedValue = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedNameProperty;
- });
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Origin.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Origin.java
index 920c1c4d2ffdd..e7d922b5db807 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Origin.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Origin.java
@@ -16,6 +16,11 @@ public final class Origin extends ExpandableStringEnum {
*/
public static final Origin FULL = fromString("Full");
+ /**
+ * Static value Customer On-Demand for Origin.
+ */
+ public static final Origin CUSTOMER_ON_DEMAND = fromString("Customer On-Demand");
+
/**
* Creates a new instance of Origin value.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsage.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsage.java
deleted file mode 100644
index 42fc8e3aba599..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsage.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.models;
-
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-
-/**
- * An immutable client-side representation of QuotaUsage.
- */
-public interface QuotaUsage {
- /**
- * Gets the name property: Name of quota usage for flexible servers.
- *
- * @return the name value.
- */
- NameProperty name();
-
- /**
- * Gets the limit property: Quota limit.
- *
- * @return the limit value.
- */
- Long limit();
-
- /**
- * Gets the unit property: Quota unit.
- *
- * @return the unit value.
- */
- String unit();
-
- /**
- * Gets the currentValue property: Current Quota usage value.
- *
- * @return the currentValue value.
- */
- Long currentValue();
-
- /**
- * Gets the id property: Fully qualified ARM resource Id.
- *
- * @return the id value.
- */
- String id();
-
- /**
- * Gets the inner com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner object.
- *
- * @return the inner object.
- */
- QuotaUsageInner innerModel();
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsages.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsages.java
deleted file mode 100644
index b2243c0d47237..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsages.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.models;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-
-/**
- * Resource collection API of QuotaUsages.
- */
-public interface QuotaUsages {
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- PagedIterable list(String locationName);
-
- /**
- * Get quota usages at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return quota usages at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- PagedIterable list(String locationName, Context context);
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsagesListResult.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsagesListResult.java
deleted file mode 100644
index 30745c74c1f3e..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/QuotaUsagesListResult.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Capability for the PostgreSQL server.
- */
-@Immutable
-public final class QuotaUsagesListResult implements JsonSerializable {
- /*
- * A list of quota usages.
- */
- private List value;
-
- /*
- * Link to retrieve next page of results.
- */
- private String nextLink;
-
- /**
- * Creates an instance of QuotaUsagesListResult class.
- */
- public QuotaUsagesListResult() {
- }
-
- /**
- * Get the value property: A list of quota usages.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Get the nextLink property: Link to retrieve next page of results.
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of QuotaUsagesListResult from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of QuotaUsagesListResult if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the QuotaUsagesListResult.
- */
- public static QuotaUsagesListResult fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- QuotaUsagesListResult deserializedQuotaUsagesListResult = new QuotaUsagesListResult();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- List value = reader.readArray(reader1 -> QuotaUsageInner.fromJson(reader1));
- deserializedQuotaUsagesListResult.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedQuotaUsagesListResult.nextLink = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedQuotaUsagesListResult;
- });
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Server.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Server.java
index c88d5edd2b9fe..651c795fa2b88 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Server.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/Server.java
@@ -577,10 +577,11 @@ interface WithCreateMode {
* The template for Server update.
*/
interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithIdentity,
- UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithVersion, UpdateStages.WithStorage,
- UpdateStages.WithBackup, UpdateStages.WithHighAvailability, UpdateStages.WithMaintenanceWindow,
- UpdateStages.WithAuthConfig, UpdateStages.WithDataEncryption, UpdateStages.WithCreateMode,
- UpdateStages.WithReplicationRole, UpdateStages.WithReplica, UpdateStages.WithNetwork {
+ UpdateStages.WithAdministratorLogin, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithVersion,
+ UpdateStages.WithStorage, UpdateStages.WithBackup, UpdateStages.WithHighAvailability,
+ UpdateStages.WithMaintenanceWindow, UpdateStages.WithAuthConfig, UpdateStages.WithDataEncryption,
+ UpdateStages.WithCreateMode, UpdateStages.WithReplicationRole, UpdateStages.WithReplica,
+ UpdateStages.WithNetwork {
/**
* Executes the update request.
*
@@ -640,6 +641,22 @@ interface WithIdentity {
Update withIdentity(UserAssignedIdentity identity);
}
+ /**
+ * The stage of the Server update allowing to specify administratorLogin.
+ */
+ interface WithAdministratorLogin {
+ /**
+ * Specifies the administratorLogin property: The administrator's login name of a server. Can only be
+ * specified when the server is trying to switch to password authentication and does not have default
+ * administrator login..
+ *
+ * @param administratorLogin The administrator's login name of a server. Can only be specified when the
+ * server is trying to switch to password authentication and does not have default administrator login.
+ * @return the next definition stage.
+ */
+ Update withAdministratorLogin(String administratorLogin);
+ }
+
/**
* The stage of the Server update allowing to specify administratorLoginPassword.
*/
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerForUpdate.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerForUpdate.java
index 89524dfdf0be8..a754d623d7b60 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerForUpdate.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerForUpdate.java
@@ -113,6 +113,31 @@ public ServerForUpdate withTags(Map tags) {
return this;
}
+ /**
+ * Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the
+ * server is trying to switch to password authentication and does not have default administrator login.
+ *
+ * @return the administratorLogin value.
+ */
+ public String administratorLogin() {
+ return this.innerProperties() == null ? null : this.innerProperties().administratorLogin();
+ }
+
+ /**
+ * Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the
+ * server is trying to switch to password authentication and does not have default administrator login.
+ *
+ * @param administratorLogin the administratorLogin value to set.
+ * @return the ServerForUpdate object itself.
+ */
+ public ServerForUpdate withAdministratorLogin(String administratorLogin) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerPropertiesForUpdate();
+ }
+ this.innerProperties().withAdministratorLogin(administratorLogin);
+ return this;
+ }
+
/**
* Get the administratorLoginPassword property: The password of the administrator login.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerVersion.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerVersion.java
index c8b242faee09a..6b152fa9b30aa 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerVersion.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/models/ServerVersion.java
@@ -11,6 +11,11 @@
* The version of a server.
*/
public final class ServerVersion extends ExpandableStringEnum {
+ /**
+ * Static value 16 for ServerVersion.
+ */
+ public static final ServerVersion ONE_SIX = fromString("16");
+
/**
* Static value 15 for ServerVersion.
*/
@@ -36,11 +41,6 @@ public final class ServerVersion extends ExpandableStringEnum {
*/
public static final ServerVersion ONE_ONE = fromString("11");
- /**
- * Static value 16 for ServerVersion.
- */
- public static final ServerVersion ONE_SIX = fromString("16");
-
/**
* Creates a new instance of ServerVersion value.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-postgresqlflexibleserver/proxy-config.json b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-postgresqlflexibleserver/proxy-config.json
index 92721368ea2b9..15d392fdd4a28 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-postgresqlflexibleserver/proxy-config.json
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-postgresqlflexibleserver/proxy-config.json
@@ -1 +1 @@
-[["com.azure.resourcemanager.postgresqlflexibleserver.implementation.AdministratorsClientImpl$AdministratorsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.CheckNameAvailabilitiesClientImpl$CheckNameAvailabilitiesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.CheckNameAvailabilityWithLocationsClientImpl$CheckNameAvailabilityWithLocationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ConfigurationsClientImpl$ConfigurationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.DatabasesClientImpl$DatabasesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.FirewallRulesClientImpl$FirewallRulesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.FlexibleServersClientImpl$FlexibleServersService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.GetPrivateDnsZoneSuffixesClientImpl$GetPrivateDnsZoneSuffixesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.LocationBasedCapabilitiesClientImpl$LocationBasedCapabilitiesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.LogFilesClientImpl$LogFilesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.LtrBackupOperationsClientImpl$LtrBackupOperationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.MigrationsClientImpl$MigrationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateEndpointConnectionOperationsClientImpl$PrivateEndpointConnectionOperationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.QuotaUsagesClientImpl$QuotaUsagesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ReplicasClientImpl$ReplicasService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServerCapabilitiesClientImpl$ServerCapabilitiesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServerThreatProtectionSettingsClientImpl$ServerThreatProtectionSettingsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServersClientImpl$ServersService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.VirtualEndpointsClientImpl$VirtualEndpointsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.VirtualNetworkSubnetUsagesClientImpl$VirtualNetworkSubnetUsagesService"]]
\ No newline at end of file
+[["com.azure.resourcemanager.postgresqlflexibleserver.implementation.AdministratorsClientImpl$AdministratorsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.CheckNameAvailabilitiesClientImpl$CheckNameAvailabilitiesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.CheckNameAvailabilityWithLocationsClientImpl$CheckNameAvailabilityWithLocationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ConfigurationsClientImpl$ConfigurationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.DatabasesClientImpl$DatabasesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.FirewallRulesClientImpl$FirewallRulesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.FlexibleServersClientImpl$FlexibleServersService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.GetPrivateDnsZoneSuffixesClientImpl$GetPrivateDnsZoneSuffixesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.LocationBasedCapabilitiesClientImpl$LocationBasedCapabilitiesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.LogFilesClientImpl$LogFilesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.LtrBackupOperationsClientImpl$LtrBackupOperationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.MigrationsClientImpl$MigrationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateEndpointConnectionOperationsClientImpl$PrivateEndpointConnectionOperationsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ReplicasClientImpl$ReplicasService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServerCapabilitiesClientImpl$ServerCapabilitiesService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServerThreatProtectionSettingsClientImpl$ServerThreatProtectionSettingsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.ServersClientImpl$ServersService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.VirtualEndpointsClientImpl$VirtualEndpointsService"],["com.azure.resourcemanager.postgresqlflexibleserver.implementation.VirtualNetworkSubnetUsagesClientImpl$VirtualNetworkSubnetUsagesService"]]
\ No newline at end of file
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateSamples.java
index 459c53ba667d3..c8da7bb0fd048 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateSamples.java
@@ -12,8 +12,8 @@
public final class AdministratorsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * AdministratorAdd.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorAdd.
+ * json
*/
/**
* Sample code: Adds an Active DIrectory Administrator for the server.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteSamples.java
index 1ed4b5bc1c93c..a5ce53c36868f 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class AdministratorsDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* AdministratorDelete.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetSamples.java
index 614dae7bb3959..fd0f575d0f4c2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetSamples.java
@@ -10,8 +10,8 @@
public final class AdministratorsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * AdministratorGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorGet.
+ * json
*/
/**
* Sample code: ServerGet.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerSamples.java
index 0f02b60525e7d..dc885e8329966 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerSamples.java
@@ -10,7 +10,7 @@
public final class AdministratorsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* AdministratorsListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsCreateSamples.java
similarity index 56%
rename from sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListSamples.java
rename to sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsCreateSamples.java
index ee7cabd987a23..6f0546c397d25 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsCreateSamples.java
@@ -5,21 +5,21 @@
package com.azure.resourcemanager.postgresqlflexibleserver.generated;
/**
- * Samples for QuotaUsages List.
+ * Samples for Backups Create.
*/
-public final class QuotaUsagesListSamples {
+public final class BackupsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * QuotaUsagesForFlexibleServers.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupCreate.json
*/
/**
- * Sample code: List of quota usages for flexible servers.
+ * Sample code: Create a new Backup for a flexible server.
*
* @param manager Entry point to PostgreSqlManager.
*/
- public static void listOfQuotaUsagesForFlexibleServers(
+ public static void createANewBackupForAFlexibleServer(
com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
- manager.quotaUsages().list("westus", com.azure.core.util.Context.NONE);
+ manager.backups()
+ .create("TestGroup", "postgresqltestserver", "backup_20210615T160516", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsDeleteSamples.java
new file mode 100644
index 0000000000000..066f4f44dbea7
--- /dev/null
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsDeleteSamples.java
@@ -0,0 +1,24 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.postgresqlflexibleserver.generated;
+
+/**
+ * Samples for Backups Delete.
+ */
+public final class BackupsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupDelete.json
+ */
+ /**
+ * Sample code: Delete a specific backup.
+ *
+ * @param manager Entry point to PostgreSqlManager.
+ */
+ public static void
+ deleteASpecificBackup(com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
+ manager.backups().delete("TestGroup", "testserver", "backup_20210615T160516", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetSamples.java
index 0e22ecc57addc..5405f4a7916ae 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetSamples.java
@@ -10,8 +10,7 @@
public final class BackupsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/BackupGet
- * .json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupGet.json
*/
/**
* Sample code: Get a backup for a server.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerSamples.java
index 86b88ca74353f..0a0c6b713e8fc 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerSamples.java
@@ -10,8 +10,8 @@
public final class BackupsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * BackupListByServer.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupListByServer
+ * .json
*/
/**
* Sample code: List backups for a server.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityExecuteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityExecuteSamples.java
index 60fbe62f99894..c986ef8de0adf 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityExecuteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityExecuteSamples.java
@@ -12,7 +12,7 @@
public final class CheckNameAvailabilityExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CheckNameAvailability.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationExecuteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationExecuteSamples.java
index 12e09025ab5ba..1f0c044766e7e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationExecuteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationExecuteSamples.java
@@ -12,7 +12,7 @@
public final class CheckNameAvailabilityWithLocationExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CheckNameAvailabilityLocationBased.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetSamples.java
index 6d7383165d87e..e9f497a40bd86 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetSamples.java
@@ -10,8 +10,8 @@
public final class ConfigurationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ConfigurationGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ConfigurationGet.
+ * json
*/
/**
* Sample code: ConfigurationGet.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerSamples.java
index 6c7dc59b89e16..cf66792c1c551 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerSamples.java
@@ -10,7 +10,7 @@
public final class ConfigurationsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ConfigurationListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutSamples.java
index 1b2c38fd956c0..9e36145f98ab5 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutSamples.java
@@ -10,7 +10,7 @@
public final class ConfigurationsPutSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ConfigurationUpdate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsUpdateSamples.java
index 373fc6aca951a..c5c413e03959d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsUpdateSamples.java
@@ -12,7 +12,7 @@
public final class ConfigurationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ConfigurationUpdate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateSamples.java
index 1ce852d9615ce..6d44230028c7a 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateSamples.java
@@ -10,8 +10,8 @@
public final class DatabasesCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * DatabaseCreate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseCreate.
+ * json
*/
/**
* Sample code: Create a database.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteSamples.java
index ebcbf070027f3..77b4e31a75543 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteSamples.java
@@ -10,8 +10,8 @@
public final class DatabasesDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * DatabaseDelete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseDelete.
+ * json
*/
/**
* Sample code: Delete a database.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetSamples.java
index 1bbe108ee4569..e47d311d7898b 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetSamples.java
@@ -10,8 +10,7 @@
public final class DatabasesGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * DatabaseGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseGet.json
*/
/**
* Sample code: Get a database.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerSamples.java
index 47c53bb676668..c85e307ed8ed2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerSamples.java
@@ -10,7 +10,7 @@
public final class DatabasesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* DatabasesListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateSamples.java
index 0812c15ce9747..a3603597959e6 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateSamples.java
@@ -10,8 +10,8 @@
public final class FirewallRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * FirewallRuleCreate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleCreate
+ * .json
*/
/**
* Sample code: FirewallRuleCreate.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteSamples.java
index ea347b7a70777..08412f8b92deb 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteSamples.java
@@ -10,8 +10,8 @@
public final class FirewallRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * FirewallRuleDelete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleDelete
+ * .json
*/
/**
* Sample code: FirewallRuleDelete.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetSamples.java
index 920ba6f32e102..ce57988ef0601 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetSamples.java
@@ -10,8 +10,8 @@
public final class FirewallRulesGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * FirewallRuleGet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleGet.
+ * json
*/
/**
* Sample code: FirewallRuleList.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerSamples.java
index 8429d249c3eab..ac5e219773c4d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerSamples.java
@@ -10,7 +10,7 @@
public final class FirewallRulesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* FirewallRuleListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerStartLtrBackupSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerStartLtrBackupSamples.java
index 6c7ba0e7554e9..7b7a09e32a03e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerStartLtrBackupSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerStartLtrBackupSamples.java
@@ -15,7 +15,7 @@
public final class FlexibleServerStartLtrBackupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionBackup.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerTriggerLtrPreBackupSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerTriggerLtrPreBackupSamples.java
index f2c57b19512dc..3b4fe01e4530e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerTriggerLtrPreBackupSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServerTriggerLtrPreBackupSamples.java
@@ -13,7 +13,7 @@
public final class FlexibleServerTriggerLtrPreBackupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionPreBackup.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixExecuteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixExecuteSamples.java
index 12d94ad6208f0..f368ac1cd2778 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixExecuteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixExecuteSamples.java
@@ -10,7 +10,7 @@
public final class GetPrivateDnsZoneSuffixExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* GetPrivateDnsZoneSuffix.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteSamples.java
index 5d1b9bd796ed7..42e796cd6b57a 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteSamples.java
@@ -10,7 +10,7 @@
public final class LocationBasedCapabilitiesExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CapabilitiesByLocation.json
*/
/**
@@ -19,6 +19,6 @@ public final class LocationBasedCapabilitiesExecuteSamples {
* @param manager Entry point to PostgreSqlManager.
*/
public static void capabilitiesList(com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
- manager.locationBasedCapabilities().execute("westus", com.azure.core.util.Context.NONE);
+ manager.locationBasedCapabilities().execute("eastus", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerSamples.java
index fa76c3a99c9bb..8a784c8dd2472 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerSamples.java
@@ -10,7 +10,7 @@
public final class LogFilesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LogFilesListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsGetSamples.java
index eabe63c367f37..2027eab2e3976 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsGetSamples.java
@@ -10,7 +10,7 @@
public final class LtrBackupOperationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionOperationGet.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsListByServerSamples.java
index 7c1a7dcd1db03..85b38c5ebf499 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupOperationsListByServerSamples.java
@@ -10,7 +10,7 @@
public final class LtrBackupOperationsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* LongTermRetentionOperationListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsCreateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsCreateSamples.java
index 6404d7edbb33e..016860d07dc04 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsCreateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsCreateSamples.java
@@ -20,7 +20,7 @@
public final class MigrationsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_With_PrivateEndpoint_Servers.json
*/
/**
@@ -49,7 +49,7 @@ public static void migrationsCreateWithPrivateEndpoint(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_With_Roles.json
*/
/**
@@ -77,7 +77,7 @@ public static void migrationsCreateWithPrivateEndpoint(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_Validate_Only.json
*/
/**
@@ -105,7 +105,7 @@ public static void migrationsCreateWithPrivateEndpoint(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_With_Other_Users.json
*/
/**
@@ -133,8 +133,8 @@ public static void migrationsCreateByPassingUserNames(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Create.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create.
+ * json
*/
/**
* Sample code: Migrations_Create.
@@ -161,7 +161,7 @@ public static void migrationsCreate(com.azure.resourcemanager.postgresqlflexible
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_Create_Other_SourceTypes_Validate_Migrate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteSamples.java
index f178b83b822a0..48a7f76441b90 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteSamples.java
@@ -10,8 +10,8 @@
public final class MigrationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Delete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Delete.
+ * json
*/
/**
* Sample code: Migrations_Delete.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsGetSamples.java
index a5712e71b2de5..9d51abb8b08ec 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsGetSamples.java
@@ -10,7 +10,7 @@
public final class MigrationsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithSuccessfulValidationOnly.json
*/
/**
@@ -27,8 +27,8 @@ public static void migrationsGetMigrationWithSuccessfulValidationOnly(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Get.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Get.
+ * json
*/
/**
* Sample code: Migrations_Get.
@@ -43,7 +43,7 @@ public static void migrationsGet(com.azure.resourcemanager.postgresqlflexibleser
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithSuccessfulValidationButMigrationFailure.json
*/
/**
@@ -60,7 +60,7 @@ public static void migrationsGetMigrationWithSuccessfulValidationButMigrationFai
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithSuccessfulValidationAndMigration.json
*/
/**
@@ -77,7 +77,7 @@ public static void migrationsGetMigrationWithSuccessfulValidationAndMigration(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_GetMigrationWithValidationFailures.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsListByTargetServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsListByTargetServerSamples.java
index 55871fc057e88..d78612f8125d2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsListByTargetServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsListByTargetServerSamples.java
@@ -12,7 +12,7 @@
public final class MigrationsListByTargetServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* Migrations_ListByTargetServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsUpdateSamples.java
index e4b23a180457d..2c0bbb312a19f 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsUpdateSamples.java
@@ -14,8 +14,8 @@
public final class MigrationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Cancel.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Cancel.
+ * json
*/
/**
* Sample code: Cancel migration.
@@ -32,8 +32,8 @@ public static void cancelMigration(com.azure.resourcemanager.postgresqlflexibles
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * Migrations_Update.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Update.
+ * json
*/
/**
* Sample code: Migrations_Update.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListSamples.java
index 0e05972c4ce77..6ae70ae058afb 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListSamples.java
@@ -10,8 +10,7 @@
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * OperationList.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/OperationList.json
*/
/**
* Sample code: OperationList.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationDeleteSamples.java
index 284267afd02bd..8beb0397758fc 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationDeleteSamples.java
@@ -10,7 +10,7 @@
public final class PrivateEndpointConnectionOperationDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionDelete.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationUpdateSamples.java
index 81676cf08729f..ab47986e82121 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationUpdateSamples.java
@@ -14,7 +14,7 @@
public final class PrivateEndpointConnectionOperationUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionUpdate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetSamples.java
index ffdb6bbd42511..87e75c5f74384 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetSamples.java
@@ -10,7 +10,7 @@
public final class PrivateEndpointConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionGet.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerSamples.java
index 4a93b1dd0a1b4..a21888da56600 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerSamples.java
@@ -10,7 +10,7 @@
public final class PrivateEndpointConnectionsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateEndpointConnectionList.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetSamples.java
index f34af600f6319..781d4af866b74 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetSamples.java
@@ -10,7 +10,7 @@
public final class PrivateLinkResourcesGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateLinkResourcesGet.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerSamples.java
index 80bac427daf94..2ba6b79e73b2f 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerSamples.java
@@ -10,7 +10,7 @@
public final class PrivateLinkResourcesListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PrivateLinkResourcesList.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ReplicasListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ReplicasListByServerSamples.java
index 32a71dee4c6cb..35b198b3b0404 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ReplicasListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ReplicasListByServerSamples.java
@@ -10,7 +10,7 @@
public final class ReplicasListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ReplicasListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProviderCheckMigrationNameAvailabilitySamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProviderCheckMigrationNameAvailabilitySamples.java
index eee8ffed052c0..6ce4872776efb 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProviderCheckMigrationNameAvailabilitySamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProviderCheckMigrationNameAvailabilitySamples.java
@@ -12,7 +12,7 @@
public final class ResourceProviderCheckMigrationNameAvailabilitySamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* CheckMigrationNameAvailability.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListSamples.java
index 4b287dc133d9f..e4fc1b3d7f409 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListSamples.java
@@ -10,8 +10,8 @@
public final class ServerCapabilitiesListSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerCapabilities.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCapabilities
+ * .json
*/
/**
* Sample code: ServerCapabilitiesList.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateSamples.java
index e7c214e67f395..3a0c1c3c10e39 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateSamples.java
@@ -14,7 +14,7 @@
public final class ServerThreatProtectionSettingsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerThreatProtectionSettingsCreateOrUpdate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetSamples.java
index 197b2d9eee55b..83a139be15a49 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetSamples.java
@@ -12,7 +12,7 @@
public final class ServerThreatProtectionSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerThreatProtectionSettingsGet.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerSamples.java
index f4c7315237d0a..b792f1cd761a6 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerSamples.java
@@ -10,7 +10,7 @@
public final class ServerThreatProtectionSettingsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerThreatProtectionSettingsListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersCreateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersCreateSamples.java
index e52a5d0c817b2..043ea557ed950 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersCreateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersCreateSamples.java
@@ -34,7 +34,7 @@
public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateWithDataEncryptionEnabled.json
*/
/**
@@ -76,7 +76,7 @@ public static void serverCreateWithDataEncryptionEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateReviveDropped.json
*/
/**
@@ -99,7 +99,7 @@ public static void serverCreateWithDataEncryptionEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateGeoRestoreWithDataEncryptionEnabled.json
*/
/**
@@ -134,8 +134,7 @@ public static void createADatabaseAsAGeoRestoreInGeoPairedLocation(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerCreate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreate.json
*/
/**
* Sample code: Create a new server.
@@ -168,7 +167,7 @@ public static void createANewServer(com.azure.resourcemanager.postgresqlflexible
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateWithAadAuthEnabled.json
*/
/**
@@ -207,7 +206,7 @@ public static void createANewServerWithActiveDirectoryAuthenticationEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreateReplica.json
*/
/**
@@ -239,7 +238,7 @@ public static void createANewServerWithActiveDirectoryAuthenticationEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerCreatePointInTimeRestore.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteSamples.java
index c9adde50391b8..d2ee043ae3d6a 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteSamples.java
@@ -10,8 +10,7 @@
public final class ServersDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerDelete.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerDelete.json
*/
/**
* Sample code: ServerDelete.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersGetByResourceGroupSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersGetByResourceGroupSamples.java
index dd7e1b37dcefd..05bda087cbc31 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersGetByResourceGroupSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersGetByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerGetWithPrivateEndpoints.json
*/
/**
@@ -25,8 +25,7 @@ public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerGet
- * .json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGet.json
*/
/**
* Sample code: ServerGet.
@@ -39,8 +38,8 @@ public static void serverGet(com.azure.resourcemanager.postgresqlflexibleserver.
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerGetWithVnet.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGetWithVnet.
+ * json
*/
/**
* Sample code: ServerGetWithVnet.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListByResourceGroupSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListByResourceGroupSamples.java
index 48b40f6f3477b..0be7c0ac29f79 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListByResourceGroupSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class ServersListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerListByResourceGroup.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListSamples.java
index da9cd334b8ca1..9985a9a298db2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersListSamples.java
@@ -10,8 +10,7 @@
public final class ServersListSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerList.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerList.json
*/
/**
* Sample code: ServerList.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartSamples.java
index 953c84061f9d7..87b281bf4f1fc 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartSamples.java
@@ -13,8 +13,7 @@
public final class ServersRestartSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerRestart.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerRestart.json
*/
/**
* Sample code: ServerRestart.
@@ -27,7 +26,7 @@ public static void serverRestart(com.azure.resourcemanager.postgresqlflexibleser
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerRestartWithFailover.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartSamples.java
index 417ade978a479..931a547d3f505 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartSamples.java
@@ -10,8 +10,7 @@
public final class ServersStartSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerStart.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerStart.json
*/
/**
* Sample code: ServerStart.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopSamples.java
index d1b6a46206df2..9ca7f7ce4940c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopSamples.java
@@ -10,8 +10,7 @@
public final class ServersStopSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerStop.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerStop.json
*/
/**
* Sample code: ServerStop.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersUpdateSamples.java
index 5169ae5e43611..7d302eb2ac73a 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersUpdateSamples.java
@@ -34,7 +34,7 @@
public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithAadAuthEnabled.json
*/
/**
@@ -63,7 +63,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithDataEncryptionEnabled.json
*/
/**
@@ -98,7 +98,7 @@ public static void serverUpdateWithDataEncryptionEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsPlannedSwitchover.json
*/
/**
@@ -121,7 +121,7 @@ public static void serverUpdateWithDataEncryptionEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsForcedSwitchover.json
*/
/**
@@ -144,8 +144,7 @@ public static void serverUpdateWithDataEncryptionEnabled(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
- * ServerUpdate.json
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdate.json
*/
/**
* Sample code: ServerUpdate.
@@ -169,7 +168,7 @@ public static void serverUpdate(com.azure.resourcemanager.postgresqlflexibleserv
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithMajorVersionUpgrade.json
*/
/**
@@ -187,7 +186,7 @@ public static void serverUpdateWithMajorVersionUpgrade(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* ServerUpdateWithCustomerMaintenanceWindow.json
*/
/**
@@ -211,7 +210,7 @@ public static void serverUpdateWithCustomerMaintenanceWindow(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsForcedStandaloneServer.json
*/
/**
@@ -234,7 +233,7 @@ public static void serverUpdateWithCustomerMaintenanceWindow(
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* PromoteReplicaAsPlannedStandaloneServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateSamples.java
index acc86e093d11b..00bdc0f50c001 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateSamples.java
@@ -13,7 +13,7 @@
public final class VirtualEndpointsCreateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointCreate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsDeleteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsDeleteSamples.java
index a80c22e066f4a..1cfeb98160806 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsDeleteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class VirtualEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointDelete.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetSamples.java
index f10768866c8fb..da06bfbb49def 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetSamples.java
@@ -10,7 +10,7 @@
public final class VirtualEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointsGet.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerSamples.java
index 8418a47f20d82..2385749f6f350 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerSamples.java
@@ -10,7 +10,7 @@
public final class VirtualEndpointsListByServerSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointsListByServer.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsUpdateSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsUpdateSamples.java
index d4c48bd2a36cd..158bd8c1aa75a 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsUpdateSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsUpdateSamples.java
@@ -14,7 +14,7 @@
public final class VirtualEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualEndpointUpdate.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageExecuteSamples.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageExecuteSamples.java
index 16a035bd8eba7..3248d459e3976 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageExecuteSamples.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/samples/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageExecuteSamples.java
@@ -12,7 +12,7 @@
public final class VirtualNetworkSubnetUsageExecuteSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/
+ * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/
* VirtualNetworkSubnetUsage.json
*/
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateMockTests.java
index 0c8fd44887951..3423cadebdecb 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsCreateMockTests.java
@@ -22,7 +22,7 @@ public final class AdministratorsCreateMockTests {
@Test
public void testCreate() throws Exception {
String responseStr
- = "{\"properties\":{\"principalType\":\"User\",\"principalName\":\"ywdxsmic\",\"objectId\":\"rwfscjfnynszquj\",\"tenantId\":\"dvoqyt\"},\"id\":\"yo\",\"name\":\"bblgyavut\",\"type\":\"thjoxoism\"}";
+ = "{\"properties\":{\"principalType\":\"Group\",\"principalName\":\"brhu\",\"objectId\":\"kh\",\"tenantId\":\"ygo\"},\"id\":\"kkqfqjbvle\",\"name\":\"rfmluiqtq\",\"type\":\"fa\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,16 +32,16 @@ public void testCreate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
ActiveDirectoryAdministrator response = manager.administrators()
- .define("cubiipuipw")
- .withExistingFlexibleServer("euzaof", "chvcyyysfgdo")
+ .define("odqkdlwwqfb")
+ .withExistingFlexibleServer("gzibthostgktstv", "xeclzedqbcvhzlhp")
.withPrincipalType(PrincipalType.USER)
- .withPrincipalName("acjekni")
- .withTenantId("hqvcimpevfgmblr")
+ .withPrincipalName("trqjfsmlmbtx")
+ .withTenantId("gfwsrtaw")
.create();
- Assertions.assertEquals(PrincipalType.USER, response.principalType());
- Assertions.assertEquals("ywdxsmic", response.principalName());
- Assertions.assertEquals("rwfscjfnynszquj", response.objectId());
- Assertions.assertEquals("dvoqyt", response.tenantId());
+ Assertions.assertEquals(PrincipalType.GROUP, response.principalType());
+ Assertions.assertEquals("brhu", response.principalName());
+ Assertions.assertEquals("kh", response.objectId());
+ Assertions.assertEquals("ygo", response.tenantId());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteMockTests.java
index 1326394bd3a80..95bc1147d0793 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsDeleteMockTests.java
@@ -27,7 +27,7 @@ public void testDelete() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.administrators().delete("ufactk", "hzovaj", "ziuxxpshnee", com.azure.core.util.Context.NONE);
+ manager.administrators().delete("rykqgaifmvikl", "ydv", "hbejdznxcvdsrhnj", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetWithResponseMockTests.java
index f3328a28d443f..f48d172dcaf45 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsGetWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class AdministratorsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"principalType\":\"Unknown\",\"principalName\":\"mduvw\",\"objectId\":\"lvxwmyg\",\"tenantId\":\"pgpqchiszepnnb\"},\"id\":\"rxgibbd\",\"name\":\"xconfozauors\",\"type\":\"kokwbqplhlvnu\"}";
+ = "{\"properties\":{\"principalType\":\"Group\",\"principalName\":\"ftul\",\"objectId\":\"tduceamt\",\"tenantId\":\"zuo\"},\"id\":\"jw\",\"name\":\"w\",\"type\":\"qioknssxmojm\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,12 +32,12 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
ActiveDirectoryAdministrator response = manager.administrators()
- .getWithResponse("ulfgslqu", "kwdlenrdsutujba", "pjuohminyfl", com.azure.core.util.Context.NONE)
+ .getWithResponse("volvtn", "v", "fzg", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals(PrincipalType.UNKNOWN, response.principalType());
- Assertions.assertEquals("mduvw", response.principalName());
- Assertions.assertEquals("lvxwmyg", response.objectId());
- Assertions.assertEquals("pgpqchiszepnnb", response.tenantId());
+ Assertions.assertEquals(PrincipalType.GROUP, response.principalType());
+ Assertions.assertEquals("ftul", response.principalName());
+ Assertions.assertEquals("tduceamt", response.objectId());
+ Assertions.assertEquals("zuo", response.tenantId());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerMockTests.java
index f0e3c0b3ef69c..ecd931dea43aa 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/AdministratorsListByServerMockTests.java
@@ -23,7 +23,7 @@ public final class AdministratorsListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"principalType\":\"User\",\"principalName\":\"nrwrbiork\",\"objectId\":\"lywjhh\",\"tenantId\":\"nhxmsi\"},\"id\":\"omi\",\"name\":\"ox\",\"type\":\"gdufiqnd\"}]}";
+ = "{\"value\":[{\"properties\":{\"principalType\":\"Group\",\"principalName\":\"yxgtczh\",\"objectId\":\"dbsdshm\",\"tenantId\":\"maehvbbxurip\"},\"id\":\"fnhtbaxkgxyw\",\"name\":\"ckpyklyhplu\",\"type\":\"dpvruud\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,11 +33,11 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.administrators().listByServer("epzl", "phwzsoldweyuqdu", com.azure.core.util.Context.NONE);
+ = manager.administrators().listByServer("vpkjpr", "kwcf", com.azure.core.util.Context.NONE);
- Assertions.assertEquals(PrincipalType.USER, response.iterator().next().principalType());
- Assertions.assertEquals("nrwrbiork", response.iterator().next().principalName());
- Assertions.assertEquals("lywjhh", response.iterator().next().objectId());
- Assertions.assertEquals("nhxmsi", response.iterator().next().tenantId());
+ Assertions.assertEquals(PrincipalType.GROUP, response.iterator().next().principalType());
+ Assertions.assertEquals("yxgtczh", response.iterator().next().principalName());
+ Assertions.assertEquals("dbsdshm", response.iterator().next().objectId());
+ Assertions.assertEquals("maehvbbxurip", response.iterator().next().tenantId());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupRequestBaseTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupRequestBaseTests.java
index 4f8bba3553de1..d32be37d0cb8d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupRequestBaseTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupRequestBaseTests.java
@@ -12,16 +12,16 @@
public final class BackupRequestBaseTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- BackupRequestBase model = BinaryData.fromString("{\"backupSettings\":{\"backupName\":\"gktrmgucnapkte\"}}")
+ BackupRequestBase model = BinaryData.fromString("{\"backupSettings\":{\"backupName\":\"zhxgktrmgucn\"}}")
.toObject(BackupRequestBase.class);
- Assertions.assertEquals("gktrmgucnapkte", model.backupSettings().backupName());
+ Assertions.assertEquals("zhxgktrmgucn", model.backupSettings().backupName());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
BackupRequestBase model
- = new BackupRequestBase().withBackupSettings(new BackupSettings().withBackupName("gktrmgucnapkte"));
+ = new BackupRequestBase().withBackupSettings(new BackupSettings().withBackupName("zhxgktrmgucn"));
model = BinaryData.fromObject(model).toObject(BackupRequestBase.class);
- Assertions.assertEquals("gktrmgucnapkte", model.backupSettings().backupName());
+ Assertions.assertEquals("zhxgktrmgucn", model.backupSettings().backupName());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupSettingsTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupSettingsTests.java
index cc6ebf276393c..ed6e4ba6c4902 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupSettingsTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupSettingsTests.java
@@ -11,14 +11,14 @@
public final class BackupSettingsTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- BackupSettings model = BinaryData.fromString("{\"backupName\":\"ellwptfdy\"}").toObject(BackupSettings.class);
- Assertions.assertEquals("ellwptfdy", model.backupName());
+ BackupSettings model = BinaryData.fromString("{\"backupName\":\"pkteo\"}").toObject(BackupSettings.class);
+ Assertions.assertEquals("pkteo", model.backupName());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- BackupSettings model = new BackupSettings().withBackupName("ellwptfdy");
+ BackupSettings model = new BackupSettings().withBackupName("pkteo");
model = BinaryData.fromObject(model).toObject(BackupSettings.class);
- Assertions.assertEquals("ellwptfdy", model.backupName());
+ Assertions.assertEquals("pkteo", model.backupName());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupStoreDetailsTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupStoreDetailsTests.java
index 515aa2557a30f..c2579dca3c6bd 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupStoreDetailsTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupStoreDetailsTests.java
@@ -13,14 +13,16 @@ public final class BackupStoreDetailsTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
BackupStoreDetails model
- = BinaryData.fromString("{\"sasUriList\":[\"qxolzdahzx\"]}").toObject(BackupStoreDetails.class);
- Assertions.assertEquals("qxolzdahzx", model.sasUriList().get(0));
+ = BinaryData.fromString("{\"sasUriList\":[\"zfq\",\"hhuao\",\"ppcqeqxolz\",\"ahzxctobgbk\"]}")
+ .toObject(BackupStoreDetails.class);
+ Assertions.assertEquals("zfq", model.sasUriList().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- BackupStoreDetails model = new BackupStoreDetails().withSasUriList(Arrays.asList("qxolzdahzx"));
+ BackupStoreDetails model
+ = new BackupStoreDetails().withSasUriList(Arrays.asList("zfq", "hhuao", "ppcqeqxolz", "ahzxctobgbk"));
model = BinaryData.fromObject(model).toObject(BackupStoreDetails.class);
- Assertions.assertEquals("qxolzdahzx", model.sasUriList().get(0));
+ Assertions.assertEquals("zfq", model.sasUriList().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsCreateMockTests.java
similarity index 56%
rename from sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListMockTests.java
rename to sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsCreateMockTests.java
index ae4ff9a4e17de..ab80c31512687 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsCreateMockTests.java
@@ -6,23 +6,23 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsage;
+import com.azure.resourcemanager.postgresqlflexibleserver.models.Origin;
+import com.azure.resourcemanager.postgresqlflexibleserver.models.ServerBackup;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
-public final class QuotaUsagesListMockTests {
+public final class BackupsCreateMockTests {
@Test
- public void testList() throws Exception {
+ public void testCreate() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":{\"value\":\"iqxf\",\"localizedValue\":\"j\"},\"limit\":3974939603346143154,\"unit\":\"kpqhjpenuygbq\",\"currentValue\":3439448263345992300,\"id\":\"ewvnqvcdlgu\"}]}";
+ = "{\"properties\":{\"backupType\":\"Customer On-Demand\",\"completedTime\":\"2021-09-10T03:49:52Z\",\"source\":\"cv\"},\"id\":\"uwrbehwagoh\",\"name\":\"uffkmrqemvvh\",\"type\":\"xtdr\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,13 +31,11 @@ public void testList() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- PagedIterable response = manager.quotaUsages().list("haru", com.azure.core.util.Context.NONE);
+ ServerBackup response
+ = manager.backups().create("yvnqqybaryeuay", "kq", "bqgzslesjcbhern", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("iqxf", response.iterator().next().name().value());
- Assertions.assertEquals("j", response.iterator().next().name().localizedValue());
- Assertions.assertEquals(3974939603346143154L, response.iterator().next().limit());
- Assertions.assertEquals("kpqhjpenuygbq", response.iterator().next().unit());
- Assertions.assertEquals(3439448263345992300L, response.iterator().next().currentValue());
- Assertions.assertEquals("ewvnqvcdlgu", response.iterator().next().id());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, response.backupType());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T03:49:52Z"), response.completedTime());
+ Assertions.assertEquals("cv", response.source());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetWithResponseMockTests.java
index ea557f68a2cc8..0c42201d8c2a3 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsGetWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class BackupsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"backupType\":\"Full\",\"completedTime\":\"2021-04-12T21:20:45Z\",\"source\":\"lyoupfgfbkju\"},\"id\":\"yhgk\",\"name\":\"minsgowzf\",\"type\":\"tsttktlahbq\"}";
+ = "{\"properties\":{\"backupType\":\"Customer On-Demand\",\"completedTime\":\"2021-02-14T17:29:05Z\",\"source\":\"uxxpshne\"},\"id\":\"ulfgslqu\",\"name\":\"kwdlenrdsutujba\",\"type\":\"pjuohminyfl\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,11 +32,11 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
ServerBackup response = manager.backups()
- .getWithResponse("ksbpimlqoljx", "cgxxlxs", "fgcviz", com.azure.core.util.Context.NONE)
+ .getWithResponse("futacoebjvewzc", "znmwcp", "guaadraufactkahz", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals(Origin.FULL, response.backupType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-12T21:20:45Z"), response.completedTime());
- Assertions.assertEquals("lyoupfgfbkju", response.source());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, response.backupType());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T17:29:05Z"), response.completedTime());
+ Assertions.assertEquals("uxxpshne", response.source());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerMockTests.java
index 44cd2f30b78a8..56038b3c4d14a 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/BackupsListByServerMockTests.java
@@ -23,7 +23,7 @@ public final class BackupsListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"backupType\":\"Full\",\"completedTime\":\"2021-11-27T09:39:12Z\",\"source\":\"uisavokq\"},\"id\":\"fvazivjlfrqttba\",\"name\":\"lkatnwxyiopidkqq\",\"type\":\"kuvscxkdm\"}]}";
+ = "{\"value\":[{\"properties\":{\"backupType\":\"Customer On-Demand\",\"completedTime\":\"2021-08-06T16:36:03Z\",\"source\":\"pqchiszep\"},\"id\":\"bjcrxgibbdaxco\",\"name\":\"fozauorsuk\",\"type\":\"kwbqplhlvnuu\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,11 +33,11 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.backups().listByServer("ctxtgzukxi", "mmqtgqqqxhr", com.azure.core.util.Context.NONE);
+ = manager.backups().listByServer("orwmduvwpklv", "w", com.azure.core.util.Context.NONE);
- Assertions.assertEquals(Origin.FULL, response.iterator().next().backupType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-27T09:39:12Z"),
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, response.iterator().next().backupType());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-08-06T16:36:03Z"),
response.iterator().next().completedTime());
- Assertions.assertEquals("uisavokq", response.iterator().next().source());
+ Assertions.assertEquals("pqchiszep", response.iterator().next().source());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java
index 5e437e6427abf..6ad9e338edf86 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java
@@ -23,7 +23,7 @@ public final class CheckNameAvailabilitiesExecuteWithResponseMockTests {
@Test
public void testExecuteWithResponse() throws Exception {
String responseStr
- = "{\"name\":\"ulcdisdosf\",\"type\":\"jsvg\",\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"vyc\"}";
+ = "{\"name\":\"oqbeitpkxzt\",\"type\":\"ob\",\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"gfcwqmpimaqxzhem\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,12 +33,12 @@ public void testExecuteWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
NameAvailability response = manager.checkNameAvailabilities()
- .executeWithResponse(new CheckNameAvailabilityRequest().withName("okqgukkjq").withType("broyla"),
+ .executeWithResponse(new CheckNameAvailabilityRequest().withName("vvib").withType("jj"),
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals(true, response.nameAvailable());
+ Assertions.assertEquals(false, response.nameAvailable());
Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason());
- Assertions.assertEquals("vyc", response.message());
+ Assertions.assertEquals("gfcwqmpimaqxzhem", response.message());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationsExecuteWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationsExecuteWithResponseMockTests.java
index 1b8861e637ffb..79351669a23d2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationsExecuteWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/CheckNameAvailabilityWithLocationsExecuteWithResponseMockTests.java
@@ -23,7 +23,7 @@ public final class CheckNameAvailabilityWithLocationsExecuteWithResponseMockTest
@Test
public void testExecuteWithResponse() throws Exception {
String responseStr
- = "{\"name\":\"edxihchrphkmcrj\",\"type\":\"nsdfzpbgtgky\",\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"jeuut\"}";
+ = "{\"name\":\"ktalhsnvkcdmxz\",\"type\":\"oaimlnw\",\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"l\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,13 +33,13 @@ public void testExecuteWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
NameAvailability response = manager.checkNameAvailabilityWithLocations()
- .executeWithResponse("t",
- new CheckNameAvailabilityRequest().withName("lxgccknfnwmbtm").withType("dvjdhttza"),
+ .executeWithResponse("yhohujswtwkozzwc",
+ new CheckNameAvailabilityRequest().withName("kb").withType("pfajnjwltlwtjj"),
com.azure.core.util.Context.NONE)
.getValue();
Assertions.assertEquals(false, response.nameAvailable());
Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason());
- Assertions.assertEquals("jeuut", response.message());
+ Assertions.assertEquals("l", response.message());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetWithResponseMockTests.java
index fa795a3294b2a..5921f9f702d00 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsGetWithResponseMockTests.java
@@ -21,7 +21,7 @@ public final class ConfigurationsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"value\":\"meisls\",\"description\":\"asylwx\",\"defaultValue\":\"aumweoohguufu\",\"dataType\":\"Integer\",\"allowedValues\":\"jathwtzo\",\"source\":\"a\",\"isDynamicConfig\":false,\"isReadOnly\":false,\"isConfigPendingRestart\":true,\"unit\":\"bwjscjpahlxveab\",\"documentationLink\":\"xnmwmqtibxyijddt\"},\"id\":\"cttadi\",\"name\":\"aeukm\",\"type\":\"sieekpndzaapm\"}";
+ = "{\"properties\":{\"value\":\"vl\",\"description\":\"fcq\",\"defaultValue\":\"rdve\",\"dataType\":\"Integer\",\"allowedValues\":\"dtutnwldu\",\"source\":\"vuzhyr\",\"isDynamicConfig\":true,\"isReadOnly\":true,\"isConfigPendingRestart\":true,\"unit\":\"k\",\"documentationLink\":\"ukuqgsj\"},\"id\":\"undxgketw\",\"name\":\"hhzjhfj\",\"type\":\"hvvmuvgpmun\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Configuration response = manager.configurations()
- .getWithResponse("ankjpdnjzh", "joylh", "lmuoyxprimrsopte", com.azure.core.util.Context.NONE)
+ .getWithResponse("nzqodfvpg", "hoxgsgbpf", "zdjtxvzflbqv", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("meisls", response.value());
- Assertions.assertEquals("a", response.source());
+ Assertions.assertEquals("vl", response.value());
+ Assertions.assertEquals("vuzhyr", response.source());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerMockTests.java
index e7670c7dbefea..abde24ecdfe38 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsListByServerMockTests.java
@@ -22,7 +22,7 @@ public final class ConfigurationsListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"value\":\"gppipifh\",\"description\":\"e\",\"defaultValue\":\"jvgcxtx\",\"dataType\":\"Numeric\",\"allowedValues\":\"eafidltugsresm\",\"source\":\"sjhoiftxfkfwegpr\",\"isDynamicConfig\":true,\"isReadOnly\":false,\"isConfigPendingRestart\":false,\"unit\":\"biqtgdq\",\"documentationLink\":\"mcwsldrizetpwb\"},\"id\":\"lllibph\",\"name\":\"qzmiza\",\"type\":\"a\"}]}";
+ = "{\"value\":[{\"properties\":{\"value\":\"l\",\"description\":\"swpchwahfbousn\",\"defaultValue\":\"pgfewetwlyx\",\"dataType\":\"Boolean\",\"allowedValues\":\"ykxhdjh\",\"source\":\"mmbcxfhbcp\",\"isDynamicConfig\":false,\"isReadOnly\":true,\"isConfigPendingRestart\":false,\"unit\":\"hqizxfpxtgqscj\",\"documentationLink\":\"ftjuh\"},\"id\":\"azkmtgguwp\",\"name\":\"jrajcivm\",\"type\":\"ghfcfiwrxgkneuvy\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,9 +32,9 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.configurations().listByServer("wxezwzhok", "bwnhhtql", com.azure.core.util.Context.NONE);
+ = manager.configurations().listByServer("eazulcs", "thwwn", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("gppipifh", response.iterator().next().value());
- Assertions.assertEquals("sjhoiftxfkfwegpr", response.iterator().next().source());
+ Assertions.assertEquals("l", response.iterator().next().value());
+ Assertions.assertEquals("mmbcxfhbcp", response.iterator().next().source());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutMockTests.java
index cdee52eef3211..cf14c7e9f58e5 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ConfigurationsPutMockTests.java
@@ -21,7 +21,7 @@ public final class ConfigurationsPutMockTests {
@Test
public void testPut() throws Exception {
String responseStr
- = "{\"properties\":{\"value\":\"reljeamur\",\"description\":\"mlovuanashcxl\",\"defaultValue\":\"jerbdkelvidizozs\",\"dataType\":\"Numeric\",\"allowedValues\":\"xjmonf\",\"source\":\"nwncypuuw\",\"isDynamicConfig\":true,\"isReadOnly\":false,\"isConfigPendingRestart\":true,\"unit\":\"tzenk\",\"documentationLink\":\"fzzhmkdasv\"},\"id\":\"yhbxcudchxgs\",\"name\":\"boldforobwj\",\"type\":\"vizbfhfo\"}";
+ = "{\"properties\":{\"value\":\"frpmpdnqqskaw\",\"description\":\"qvmmbn\",\"defaultValue\":\"fr\",\"dataType\":\"Enumeration\",\"allowedValues\":\"zmegnitgvk\",\"source\":\"zyqdrfegcealzx\",\"isDynamicConfig\":true,\"isReadOnly\":true,\"isConfigPendingRestart\":false,\"unit\":\"oyqhlwig\",\"documentationLink\":\"vbkbxgomf\"},\"id\":\"uwasqvd\",\"name\":\"e\",\"type\":\"y\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,13 +31,13 @@ public void testPut() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Configuration response = manager.configurations()
- .define("ybpmzznrtffyaq")
- .withExistingFlexibleServer("dqmeqwigpibudq", "yxeb")
- .withValue("hheioqaqhvseuf")
- .withSource("rnxzh")
+ .define("yue")
+ .withExistingFlexibleServer("qsxvmhf", "uzjyihsasbhudypo")
+ .withValue("ynsqyrpfoobr")
+ .withSource("yvi")
.create();
- Assertions.assertEquals("reljeamur", response.value());
- Assertions.assertEquals("nwncypuuw", response.source());
+ Assertions.assertEquals("frpmpdnqqskaw", response.value());
+ Assertions.assertEquals("zyqdrfegcealzx", response.source());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateMockTests.java
index a2367d6612171..8b0b2dea4b372 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesCreateMockTests.java
@@ -21,7 +21,7 @@ public final class DatabasesCreateMockTests {
@Test
public void testCreate() throws Exception {
String responseStr
- = "{\"properties\":{\"charset\":\"ctfnmdxotng\",\"collation\":\"gugey\"},\"id\":\"hgrky\",\"name\":\"i\",\"type\":\"absnmfpp\"}";
+ = "{\"properties\":{\"charset\":\"d\",\"collation\":\"nsiru\"},\"id\":\"z\",\"name\":\"mes\",\"type\":\"kdlpa\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,13 +31,13 @@ public void testCreate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Database response = manager.databases()
- .define("xfuojrn")
- .withExistingFlexibleServer("ihrraiouaub", "jtlo")
- .withCharset("l")
- .withCollation("pasccbi")
+ .define("tvtzeexavoxtfg")
+ .withExistingFlexibleServer("awddjibab", "vit")
+ .withCharset("dmdqb")
+ .withCollation("ypq")
.create();
- Assertions.assertEquals("ctfnmdxotng", response.charset());
- Assertions.assertEquals("gugey", response.collation());
+ Assertions.assertEquals("d", response.charset());
+ Assertions.assertEquals("nsiru", response.collation());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteMockTests.java
index 4518a83d0de23..85f2f5384032e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesDeleteMockTests.java
@@ -28,7 +28,7 @@ public void testDelete() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
manager.databases()
- .delete("vacqpbtuodxesz", "bbelawumuaslzk", "rrwoycqucwyhahn", com.azure.core.util.Context.NONE);
+ .delete("uxakjsqzhzbezk", "imsidxasicddyvvj", "kgfmocwahpq", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetWithResponseMockTests.java
index f291e1eb25fc7..fe7e46ae74f2b 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesGetWithResponseMockTests.java
@@ -21,7 +21,7 @@ public final class DatabasesGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"charset\":\"pgepqtybbwwpgda\",\"collation\":\"hzyvlixqnrkcx\"},\"id\":\"ibn\",\"name\":\"mysu\",\"type\":\"swqrntvlwijp\"}";
+ = "{\"properties\":{\"charset\":\"idjks\",\"collation\":\"kyxvxevblbjedn\"},\"id\":\"lageuaulxun\",\"name\":\"mjbnk\",\"type\":\"pxynenlsvxeizzg\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Database response = manager.databases()
- .getWithResponse("mdr", "ywuhpsvfuur", "tlwexxwlalniexz", com.azure.core.util.Context.NONE)
+ .getWithResponse("atjeaahh", "jhhn", "kzyb", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("pgepqtybbwwpgda", response.charset());
- Assertions.assertEquals("hzyvlixqnrkcx", response.collation());
+ Assertions.assertEquals("idjks", response.charset());
+ Assertions.assertEquals("kyxvxevblbjedn", response.collation());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerMockTests.java
index e53f695a3e8f6..48f8bfef70143 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DatabasesListByServerMockTests.java
@@ -22,7 +22,7 @@ public final class DatabasesListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"charset\":\"pkcdqzhlct\",\"collation\":\"unqndyfpchrqb\"},\"id\":\"jrcg\",\"name\":\"gydcw\",\"type\":\"oxjumvqqo\"}]}";
+ = "{\"value\":[{\"properties\":{\"charset\":\"ekkkzd\",\"collation\":\"tkgdojbmxva\"},\"id\":\"efdeesve\",\"name\":\"uij\",\"type\":\"xtxsuwprtujw\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,9 +32,9 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.databases().listByServer("ttexoqqpwcyyufmh", "uncuw", com.azure.core.util.Context.NONE);
+ = manager.databases().listByServer("klnsrmffey", "xcktpiymerteeamm", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("pkcdqzhlct", response.iterator().next().charset());
- Assertions.assertEquals("unqndyfpchrqb", response.iterator().next().collation());
+ Assertions.assertEquals("ekkkzd", response.iterator().next().charset());
+ Assertions.assertEquals("tkgdojbmxva", response.iterator().next().collation());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DelegatedSubnetUsageTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DelegatedSubnetUsageTests.java
index 398156e0597b1..e37410e9de583 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DelegatedSubnetUsageTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/DelegatedSubnetUsageTests.java
@@ -10,9 +10,8 @@
public final class DelegatedSubnetUsageTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- DelegatedSubnetUsage model
- = BinaryData.fromString("{\"subnetName\":\"wzcjznmwcpmgua\",\"usage\":6174770568857951171}")
- .toObject(DelegatedSubnetUsage.class);
+ DelegatedSubnetUsage model = BinaryData.fromString("{\"subnetName\":\"x\",\"usage\":7062133650624687777}")
+ .toObject(DelegatedSubnetUsage.class);
}
@org.junit.jupiter.api.Test
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateMockTests.java
index c4f80915e6ed3..1d36cb0ce7fa3 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesCreateOrUpdateMockTests.java
@@ -21,7 +21,7 @@ public final class FirewallRulesCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"startIpAddress\":\"sdtmcdzs\",\"endIpAddress\":\"fcohdxbzlmcmu\"},\"id\":\"cvhd\",\"name\":\"evwqqxeyskonq\",\"type\":\"inkfkbgbz\"}";
+ = "{\"properties\":{\"startIpAddress\":\"iqtgdqoh\",\"endIpAddress\":\"cwsldri\"},\"id\":\"tpwb\",\"name\":\"a\",\"type\":\"llibphbqzmizak\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,13 +31,13 @@ public void testCreateOrUpdate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
FirewallRule response = manager.firewallRules()
- .define("mftpmdtz")
- .withExistingFlexibleServer("jkavl", "or")
- .withStartIpAddress("jltfvnzcyjtotpv")
- .withEndIpAddress("pvpbdbzqgqqiheds")
+ .define("ehgpp")
+ .withExistingFlexibleServer("wxezwzhok", "bwnhhtql")
+ .withStartIpAddress("pifhpfeoajvgcxtx")
+ .withEndIpAddress("csheafidltugsr")
.create();
- Assertions.assertEquals("sdtmcdzs", response.startIpAddress());
- Assertions.assertEquals("fcohdxbzlmcmu", response.endIpAddress());
+ Assertions.assertEquals("iqtgdqoh", response.startIpAddress());
+ Assertions.assertEquals("cwsldri", response.endIpAddress());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteMockTests.java
index f4c2fe3739ec7..ac40851d9f296 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesDeleteMockTests.java
@@ -27,7 +27,7 @@ public void testDelete() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.firewallRules().delete("ojeevy", "yhsgz", "czbgomfgbeg", com.azure.core.util.Context.NONE);
+ manager.firewallRules().delete("zrcxfailcfxwmdbo", "dfgsftufqobrj", "nac", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetWithResponseMockTests.java
index 4e2be90c3ebb4..e872dc4b673c3 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesGetWithResponseMockTests.java
@@ -21,7 +21,7 @@ public final class FirewallRulesGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"startIpAddress\":\"qqxlajr\",\"endIpAddress\":\"wxacevehj\"},\"id\":\"yxoaf\",\"name\":\"aoqltfaey\",\"type\":\"inmfgvxirp\"}";
+ = "{\"properties\":{\"startIpAddress\":\"zvulj\",\"endIpAddress\":\"aaeranokqgukk\"},\"id\":\"nvbroylaxx\",\"name\":\"lcdisd\",\"type\":\"sfjbjsvg\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
FirewallRule response = manager.firewallRules()
- .getWithResponse("qgleohibetnluank", "rfxeeebtij", "acvbmqz", com.azure.core.util.Context.NONE)
+ .getWithResponse("cc", "knh", "kizvytn", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("qqxlajr", response.startIpAddress());
- Assertions.assertEquals("wxacevehj", response.endIpAddress());
+ Assertions.assertEquals("zvulj", response.startIpAddress());
+ Assertions.assertEquals("aaeranokqgukk", response.endIpAddress());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerMockTests.java
index babf4cf05f0eb..03c6843e93583 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FirewallRulesListByServerMockTests.java
@@ -22,7 +22,7 @@ public final class FirewallRulesListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"startIpAddress\":\"nuciqdsmexiit\",\"endIpAddress\":\"fuxtyasiibmiybnn\"},\"id\":\"tgnljhnmgixhcmav\",\"name\":\"qfoudorhcgyy\",\"type\":\"rotwypundmbxhugc\"}]}";
+ = "{\"value\":[{\"properties\":{\"startIpAddress\":\"pdvjdhttzaefedx\",\"endIpAddress\":\"hchrphkmcrjdqn\"},\"id\":\"fzpbgtgkyl\",\"name\":\"dgh\",\"type\":\"jeuut\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,9 +32,9 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.firewallRules().listByServer("hriypoqeyhlqhy", "prlpy", com.azure.core.util.Context.NONE);
+ = manager.firewallRules().listByServer("rwhryvycytd", "lxgccknfnwmbtm", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("nuciqdsmexiit", response.iterator().next().startIpAddress());
- Assertions.assertEquals("fuxtyasiibmiybnn", response.iterator().next().endIpAddress());
+ Assertions.assertEquals("pdvjdhttzaefedx", response.iterator().next().startIpAddress());
+ Assertions.assertEquals("hchrphkmcrjdqn", response.iterator().next().endIpAddress());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServersTriggerLtrPreBackupWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServersTriggerLtrPreBackupWithResponseMockTests.java
index f5febaf082b06..92dd850775d77 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServersTriggerLtrPreBackupWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/FlexibleServersTriggerLtrPreBackupWithResponseMockTests.java
@@ -22,7 +22,7 @@
public final class FlexibleServersTriggerLtrPreBackupWithResponseMockTests {
@Test
public void testTriggerLtrPreBackupWithResponse() throws Exception {
- String responseStr = "{\"properties\":{\"numberOfContainers\":1111352078}}";
+ String responseStr = "{\"properties\":{\"numberOfContainers\":1318617256}}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,11 +32,11 @@ public void testTriggerLtrPreBackupWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
LtrPreBackupResponse response = manager.flexibleServers()
- .triggerLtrPreBackupWithResponse("tzxpuamwabzxrv", "cush",
- new LtrPreBackupRequest().withBackupSettings(new BackupSettings().withBackupName("phai")),
+ .triggerLtrPreBackupWithResponse("mqspkcdqzhlctdd", "nqndyfpchrqbn",
+ new LtrPreBackupRequest().withBackupSettings(new BackupSettings().withBackupName("jrcg")),
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals(1111352078, response.numberOfContainers());
+ Assertions.assertEquals(1318617256, response.numberOfContainers());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixesExecuteWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixesExecuteWithResponseMockTests.java
index 6bfbffa6a4df6..1b487697ee2d5 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixesExecuteWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/GetPrivateDnsZoneSuffixesExecuteWithResponseMockTests.java
@@ -19,7 +19,7 @@
public final class GetPrivateDnsZoneSuffixesExecuteWithResponseMockTests {
@Test
public void testExecuteWithResponse() throws Exception {
- String responseStr = "\"phdu\"";
+ String responseStr = "\"ghgshejjtbxqmu\"";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,6 +31,6 @@ public void testExecuteWithResponse() throws Exception {
String response
= manager.getPrivateDnsZoneSuffixes().executeWithResponse(com.azure.core.util.Context.NONE).getValue();
- Assertions.assertEquals("phdu", response);
+ Assertions.assertEquals("ghgshejjtbxqmu", response);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteMockTests.java
index 01804ec6376fc..449307a678e7e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LocationBasedCapabilitiesExecuteMockTests.java
@@ -22,7 +22,7 @@ public final class LocationBasedCapabilitiesExecuteMockTests {
@Test
public void testExecute() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":\"xk\",\"supportedServerEditions\":[{\"name\":\"azur\",\"defaultSkuName\":\"cbgoor\",\"supportedStorageEditions\":[{\"name\":\"ybfhjxa\",\"defaultStorageSizeMb\":5656556959711721318,\"supportedStorageMb\":[{},{},{}],\"status\":\"Disabled\",\"reason\":\"dilmyww\"},{\"name\":\"gkxnyedabg\",\"defaultStorageSizeMb\":475774977196617352,\"supportedStorageMb\":[{},{},{},{}],\"status\":\"Default\",\"reason\":\"bcihxuuwhc\"},{\"name\":\"xccybvpa\",\"defaultStorageSizeMb\":6238077672035548376,\"supportedStorageMb\":[{},{},{}],\"status\":\"Visible\",\"reason\":\"gwjplmag\"},{\"name\":\"cyohpfkyrkdbd\",\"defaultStorageSizeMb\":3710008921485897476,\"supportedStorageMb\":[{},{}],\"status\":\"Available\",\"reason\":\"wqjnob\"}],\"supportedServerSkus\":[{\"name\":\"ddviacegfnmntfpm\",\"vCores\":1245666604,\"supportedIops\":999073348,\"supportedMemoryPerVcoreMb\":5936316598559171392,\"supportedZones\":[\"vvbalx\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"evwrdnhfuk\"},{\"name\":\"sjcswsmystuluqyp\",\"vCores\":1783589840,\"supportedIops\":291266426,\"supportedMemoryPerVcoreMb\":2710586854780001980,\"supportedZones\":[\"bm\",\"pjbabwidfc\",\"sspuunnoxyhkx\",\"qddrihpfhoqcaae\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"SameZone\"],\"status\":\"Visible\",\"reason\":\"pjxxkzb\"}],\"status\":\"Available\",\"reason\":\"eivsiykzkdnc\"},{\"name\":\"xonbzoggculapz\",\"defaultSkuName\":\"rpgogtqxep\",\"supportedStorageEditions\":[{\"name\":\"fuajly\",\"defaultStorageSizeMb\":8707082855119375763,\"supportedStorageMb\":[{},{}],\"status\":\"Disabled\",\"reason\":\"vfcibyfmowux\"}],\"supportedServerSkus\":[{\"name\":\"vdwxfzwi\",\"vCores\":1157352083,\"supportedIops\":1754263967,\"supportedMemoryPerVcoreMb\":3348863459715855066,\"supportedZones\":[\"xjrk\",\"mbtrnegvmnvu\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Disabled\",\"reason\":\"tjb\"}],\"status\":\"Available\",\"reason\":\"flvestmjlxrrilo\"},{\"name\":\"peewchpxlkt\",\"defaultSkuName\":\"uziycsl\",\"supportedStorageEditions\":[{\"name\":\"uztcktyhjtqed\",\"defaultStorageSizeMb\":5572638261267969935,\"supportedStorageMb\":[{},{}],\"status\":\"Default\",\"reason\":\"qzz\"},{\"name\":\"jvpglydzgk\",\"defaultStorageSizeMb\":4622170098850979496,\"supportedStorageMb\":[{},{},{}],\"status\":\"Available\",\"reason\":\"pryu\"},{\"name\":\"wytpzdmovz\",\"defaultStorageSizeMb\":1753829479410952479,\"supportedStorageMb\":[{}],\"status\":\"Visible\",\"reason\":\"dflgzuri\"},{\"name\":\"aecxndtic\",\"defaultStorageSizeMb\":2952144912587821446,\"supportedStorageMb\":[{},{},{}],\"status\":\"Available\",\"reason\":\"mldgxobfirc\"}],\"supportedServerSkus\":[{\"name\":\"ciayzriykhya\",\"vCores\":47458099,\"supportedIops\":235772258,\"supportedMemoryPerVcoreMb\":8892395873525165573,\"supportedZones\":[\"kjlmx\",\"omdynhdwdigum\",\"nraauzz\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"SameZone\",\"SameZone\"],\"status\":\"Default\",\"reason\":\"ezwwv\"}],\"status\":\"Default\",\"reason\":\"uvvfonkp\"},{\"name\":\"qyikvy\",\"defaultSkuName\":\"uyav\",\"supportedStorageEditions\":[{\"name\":\"ncstt\",\"defaultStorageSizeMb\":9105800928046481710,\"supportedStorageMb\":[{}],\"status\":\"Visible\",\"reason\":\"krsgsgb\"}],\"supportedServerSkus\":[{\"name\":\"qgnjdgkynscli\",\"vCores\":1543388563,\"supportedIops\":252891746,\"supportedMemoryPerVcoreMb\":2288883432059892927,\"supportedZones\":[\"tkubotppn\"],\"supportedHaMode\":[\"SameZone\"],\"status\":\"Disabled\",\"reason\":\"hfrbbc\"},{\"name\":\"qagt\",\"vCores\":1362620391,\"supportedIops\":2099072626,\"supportedMemoryPerVcoreMb\":2322539021539304077,\"supportedZones\":[\"py\",\"vgtrdcnifmzzs\",\"ymbrnysuxmpraf\",\"g\"],\"supportedHaMode\":[\"ZoneRedundant\",\"ZoneRedundant\",\"SameZone\",\"SameZone\"],\"status\":\"Disabled\",\"reason\":\"fwafqrouda\"},{\"name\":\"avehhrvkbunzo\",\"vCores\":35410717,\"supportedIops\":1288828831,\"supportedMemoryPerVcoreMb\":9008191829096348596,\"supportedZones\":[\"yxcdyuibhmfdnbzy\",\"vfvfcj\",\"aeoisrvh\"],\"supportedHaMode\":[\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Default\",\"reason\":\"scvwmzhwplef\"},{\"name\":\"vxilcbt\",\"vCores\":896173123,\"supportedIops\":2012963266,\"supportedMemoryPerVcoreMb\":1792451256873457712,\"supportedZones\":[\"jjfzqlqhycavo\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"ZoneRedundant\"],\"status\":\"Visible\",\"reason\":\"mieknlraria\"}],\"status\":\"Disabled\",\"reason\":\"agy\"}],\"supportedServerVersions\":[{\"name\":\"bylyrfgia\",\"supportedVersionsToUpgrade\":[\"ojocqwogf\",\"zjvusfzldmo\",\"uxylfsbtkadpy\",\"own\"],\"status\":\"Default\",\"reason\":\"bugrj\"}],\"fastProvisioningSupported\":\"Enabled\",\"supportedFastProvisioningEditions\":[{\"supportedTier\":\"mi\",\"supportedSku\":\"fieypefojyqdhcup\",\"supportedStorageGb\":1670240889,\"supportedServerVersions\":\"cwkhihi\",\"serverCount\":1457958163,\"status\":\"Disabled\",\"reason\":\"qtz\"}],\"geoBackupSupported\":\"Disabled\",\"zoneRedundantHaSupported\":\"Enabled\",\"zoneRedundantHaAndGeoBackupSupported\":\"Enabled\",\"storageAutoGrowthSupported\":\"Enabled\",\"onlineResizeSupported\":\"Disabled\",\"restricted\":\"Enabled\",\"status\":\"Available\",\"reason\":\"actxmwoteyowc\"}]}";
+ = "{\"value\":[{\"name\":\"oldweyuqdu\",\"supportedServerEditions\":[{\"name\":\"nrwrbiork\",\"defaultSkuName\":\"lywjhh\",\"supportedStorageEditions\":[{\"name\":\"xmsivfomiloxggdu\",\"defaultStorageSizeMb\":322470867216638009,\"supportedStorageMb\":[{},{},{},{}],\"status\":\"Disabled\",\"reason\":\"ao\"},{\"name\":\"chvcyyysfgdo\",\"defaultStorageSizeMb\":7467577489537815272,\"supportedStorageMb\":[{}],\"status\":\"Disabled\",\"reason\":\"pwoqo\"}],\"supportedServerSkus\":[{\"name\":\"jeknizshq\",\"vCores\":1591499316,\"supportedIops\":932128156,\"supportedMemoryPerVcoreMb\":4510672218626509110,\"supportedZones\":[\"b\",\"rrilbywdxsmic\",\"wrwfscjfnyns\"],\"supportedHaMode\":[\"ZoneRedundant\"],\"status\":\"Disabled\",\"reason\":\"voqyt\"},{\"name\":\"yo\",\"vCores\":853520386,\"supportedIops\":1293894339,\"supportedMemoryPerVcoreMb\":2703223552159511284,\"supportedZones\":[\"pthjoxo\"],\"supportedHaMode\":[\"SameZone\",\"ZoneRedundant\"],\"status\":\"Disabled\",\"reason\":\"iml\"}],\"status\":\"Default\",\"reason\":\"xkcgxxlxsffgcvi\"},{\"name\":\"zdwlvwlyoupfgfb\",\"defaultSkuName\":\"ubdyhgk\",\"supportedStorageEditions\":[{\"name\":\"sgow\",\"defaultStorageSizeMb\":7972724077673531011,\"supportedStorageMb\":[{},{},{}],\"status\":\"Available\",\"reason\":\"lahb\"}],\"supportedServerSkus\":[{\"name\":\"xtgzukxitmmqtgqq\",\"vCores\":1748959674,\"supportedIops\":107951618,\"supportedMemoryPerVcoreMb\":3154721021246185511,\"supportedZones\":[\"juisavokqdzf\"],\"supportedHaMode\":[\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"frqttbajlkatnw\"},{\"name\":\"iopid\",\"vCores\":1150651693,\"supportedIops\":128266879,\"supportedMemoryPerVcoreMb\":3873613137312097491,\"supportedZones\":[\"kdmligovi\",\"rxkpmloazuruoc\"],\"supportedHaMode\":[\"SameZone\"],\"status\":\"Available\",\"reason\":\"eoybfhjxakvvjgs\"},{\"name\":\"r\",\"vCores\":1486233885,\"supportedIops\":482425656,\"supportedMemoryPerVcoreMb\":1679876509876130353,\"supportedZones\":[\"kxn\",\"edabgyvudtjue\",\"bcihxuuwhc\"],\"supportedHaMode\":[\"SameZone\",\"ZoneRedundant\"],\"status\":\"Visible\",\"reason\":\"payakkud\"}],\"status\":\"Disabled\",\"reason\":\"wjplma\"}],\"supportedServerVersions\":[{\"name\":\"yohpfkyrkdbdgiog\",\"supportedVersionsToUpgrade\":[\"mnwqj\",\"obaiyhddviaceg\",\"n\",\"ntfpmvmemfnc\"],\"status\":\"Visible\",\"reason\":\"vbalxlllc\"},{\"name\":\"odbzevwrdnhf\",\"supportedVersionsToUpgrade\":[\"vsjcswsmystuluqy\"],\"status\":\"Disabled\",\"reason\":\"lerchpq\"},{\"name\":\"f\",\"supportedVersionsToUpgrade\":[\"abwidfcxsspuun\",\"oxyhkxgqddrihpf\",\"oqcaaewdaomdj\"],\"status\":\"Available\",\"reason\":\"x\"}],\"fastProvisioningSupported\":\"Enabled\",\"supportedFastProvisioningEditions\":[{\"supportedTier\":\"sgeivsiy\",\"supportedSku\":\"kdncj\",\"supportedStorageGb\":1690186599,\"supportedServerVersions\":\"bzo\",\"serverCount\":1760548701,\"status\":\"Available\",\"reason\":\"p\"},{\"supportedTier\":\"y\",\"supportedSku\":\"gogtqxepnylbf\",\"supportedStorageGb\":347721012,\"supportedServerVersions\":\"yjt\",\"serverCount\":279762954,\"status\":\"Visible\",\"reason\":\"hvfcibyfmow\"},{\"supportedTier\":\"rkjpvdwxfzwii\",\"supportedSku\":\"zjb\",\"supportedStorageGb\":1608749608,\"supportedServerVersions\":\"xjrk\",\"serverCount\":2109306549,\"status\":\"Available\",\"reason\":\"egv\"},{\"supportedTier\":\"vuqeqvldspast\",\"supportedSku\":\"kkdmfl\",\"supportedStorageGb\":922777,\"supportedServerVersions\":\"mjlxrrilozapeewc\",\"serverCount\":159855339,\"status\":\"Default\",\"reason\":\"wk\"}],\"geoBackupSupported\":\"Disabled\",\"zoneRedundantHaSupported\":\"Disabled\",\"zoneRedundantHaAndGeoBackupSupported\":\"Disabled\",\"storageAutoGrowthSupported\":\"Enabled\",\"onlineResizeSupported\":\"Enabled\",\"restricted\":\"Enabled\",\"status\":\"Available\",\"reason\":\"tyh\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,8 +32,8 @@ public void testExecute() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.locationBasedCapabilities().execute("igovi", com.azure.core.util.Context.NONE);
+ = manager.locationBasedCapabilities().execute("pzlrphw", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("xk", response.iterator().next().name());
+ Assertions.assertEquals("oldweyuqdu", response.iterator().next().name());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileInnerTests.java
index 2e1e9ba918ffd..fdca96006c746 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileInnerTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileInnerTests.java
@@ -13,27 +13,27 @@ public final class LogFileInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LogFileInner model = BinaryData.fromString(
- "{\"properties\":{\"createdTime\":\"2021-12-07T02:03:19Z\",\"lastModifiedTime\":\"2021-06-16T15:34:06Z\",\"sizeInKb\":4507882308438079300,\"type\":\"g\",\"url\":\"ujb\"},\"id\":\"omvzzbtd\",\"name\":\"qvpn\",\"type\":\"yujviylwdshfssn\"}")
+ "{\"properties\":{\"createdTime\":\"2021-04-03T12:46:32Z\",\"lastModifiedTime\":\"2021-12-09T11:25:56Z\",\"sizeInKb\":3934291710122169990,\"type\":\"ubxcbihw\",\"url\":\"nfdn\"},\"id\":\"jchrdgoihxumw\",\"name\":\"ton\",\"type\":\"zj\"}")
.toObject(LogFileInner.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T02:03:19Z"), model.createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T15:34:06Z"), model.lastModifiedTime());
- Assertions.assertEquals(4507882308438079300L, model.sizeInKb());
- Assertions.assertEquals("g", model.typePropertiesType());
- Assertions.assertEquals("ujb", model.url());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-04-03T12:46:32Z"), model.createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-12-09T11:25:56Z"), model.lastModifiedTime());
+ Assertions.assertEquals(3934291710122169990L, model.sizeInKb());
+ Assertions.assertEquals("ubxcbihw", model.typePropertiesType());
+ Assertions.assertEquals("nfdn", model.url());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LogFileInner model = new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-12-07T02:03:19Z"))
- .withLastModifiedTime(OffsetDateTime.parse("2021-06-16T15:34:06Z"))
- .withSizeInKb(4507882308438079300L)
- .withTypePropertiesType("g")
- .withUrl("ujb");
+ LogFileInner model = new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-04-03T12:46:32Z"))
+ .withLastModifiedTime(OffsetDateTime.parse("2021-12-09T11:25:56Z"))
+ .withSizeInKb(3934291710122169990L)
+ .withTypePropertiesType("ubxcbihw")
+ .withUrl("nfdn");
model = BinaryData.fromObject(model).toObject(LogFileInner.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T02:03:19Z"), model.createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T15:34:06Z"), model.lastModifiedTime());
- Assertions.assertEquals(4507882308438079300L, model.sizeInKb());
- Assertions.assertEquals("g", model.typePropertiesType());
- Assertions.assertEquals("ujb", model.url());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-04-03T12:46:32Z"), model.createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-12-09T11:25:56Z"), model.lastModifiedTime());
+ Assertions.assertEquals(3934291710122169990L, model.sizeInKb());
+ Assertions.assertEquals("ubxcbihw", model.typePropertiesType());
+ Assertions.assertEquals("nfdn", model.url());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileListResultTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileListResultTests.java
index 6504244feb42d..1fbfa93073a9b 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileListResultTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFileListResultTests.java
@@ -15,46 +15,36 @@ public final class LogFileListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LogFileListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"createdTime\":\"2021-01-09T04:08:29Z\",\"lastModifiedTime\":\"2021-01-15T08:24:44Z\",\"sizeInKb\":8766240575961475236,\"type\":\"fiufx\",\"url\":\"npirgnepttw\"},\"id\":\"sniffc\",\"name\":\"mqnrojlpijnkr\",\"type\":\"frddhcrati\"},{\"properties\":{\"createdTime\":\"2021-06-27T16:40:41Z\",\"lastModifiedTime\":\"2021-05-12T01:29:29Z\",\"sizeInKb\":1499717509379744462,\"type\":\"tozqyzhftwesgo\",\"url\":\"zhonnxkrlgnyhmo\"},\"id\":\"xkk\",\"name\":\"thrrgh\",\"type\":\"jbdhqxvc\"},{\"properties\":{\"createdTime\":\"2021-08-03T04:18:25Z\",\"lastModifiedTime\":\"2021-06-30T13:21:57Z\",\"sizeInKb\":6288014935815935700,\"type\":\"shrnsvbuswdvz\",\"url\":\"bycnunvjsrtkf\"},\"id\":\"nopqgikyzirtx\",\"name\":\"yuxzejntpsewgi\",\"type\":\"ilqu\"},{\"properties\":{\"createdTime\":\"2021-01-27T19:33:50Z\",\"lastModifiedTime\":\"2021-05-20T16:44:09Z\",\"sizeInKb\":2574413464596771769,\"type\":\"ox\",\"url\":\"ggufhyaomtb\"},\"id\":\"havgrvk\",\"name\":\"fo\",\"type\":\"jzhpjbibgjmfx\"}],\"nextLink\":\"vfcluyovwxnbkfe\"}")
+ "{\"value\":[{\"properties\":{\"createdTime\":\"2021-10-31T02:18:42Z\",\"lastModifiedTime\":\"2021-04-04T17:22:28Z\",\"sizeInKb\":7989893119356760730,\"type\":\"m\",\"url\":\"d\"},\"id\":\"mmji\",\"name\":\"yeozphvwauyqncy\",\"type\":\"upkvipmdsc\"},{\"properties\":{\"createdTime\":\"2021-09-24T17:39:42Z\",\"lastModifiedTime\":\"2021-06-13T19:10:51Z\",\"sizeInKb\":7138744715268482510,\"type\":\"stotxh\",\"url\":\"ujbypelmcuvhixb\"},\"id\":\"yfwnylr\",\"name\":\"ool\",\"type\":\"ttpkiwkkbnujrywv\"}],\"nextLink\":\"lbfpncurd\"}")
.toObject(LogFileListResult.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T04:08:29Z"), model.value().get(0).createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T08:24:44Z"), model.value().get(0).lastModifiedTime());
- Assertions.assertEquals(8766240575961475236L, model.value().get(0).sizeInKb());
- Assertions.assertEquals("fiufx", model.value().get(0).typePropertiesType());
- Assertions.assertEquals("npirgnepttw", model.value().get(0).url());
- Assertions.assertEquals("vfcluyovwxnbkfe", model.nextLink());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-10-31T02:18:42Z"), model.value().get(0).createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-04-04T17:22:28Z"), model.value().get(0).lastModifiedTime());
+ Assertions.assertEquals(7989893119356760730L, model.value().get(0).sizeInKb());
+ Assertions.assertEquals("m", model.value().get(0).typePropertiesType());
+ Assertions.assertEquals("d", model.value().get(0).url());
+ Assertions.assertEquals("lbfpncurd", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
LogFileListResult model = new LogFileListResult().withValue(Arrays.asList(
- new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-01-09T04:08:29Z"))
- .withLastModifiedTime(OffsetDateTime.parse("2021-01-15T08:24:44Z"))
- .withSizeInKb(8766240575961475236L)
- .withTypePropertiesType("fiufx")
- .withUrl("npirgnepttw"),
- new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-06-27T16:40:41Z"))
- .withLastModifiedTime(OffsetDateTime.parse("2021-05-12T01:29:29Z"))
- .withSizeInKb(1499717509379744462L)
- .withTypePropertiesType("tozqyzhftwesgo")
- .withUrl("zhonnxkrlgnyhmo"),
- new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-08-03T04:18:25Z"))
- .withLastModifiedTime(OffsetDateTime.parse("2021-06-30T13:21:57Z"))
- .withSizeInKb(6288014935815935700L)
- .withTypePropertiesType("shrnsvbuswdvz")
- .withUrl("bycnunvjsrtkf"),
- new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-01-27T19:33:50Z"))
- .withLastModifiedTime(OffsetDateTime.parse("2021-05-20T16:44:09Z"))
- .withSizeInKb(2574413464596771769L)
- .withTypePropertiesType("ox")
- .withUrl("ggufhyaomtb")))
- .withNextLink("vfcluyovwxnbkfe");
+ new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-10-31T02:18:42Z"))
+ .withLastModifiedTime(OffsetDateTime.parse("2021-04-04T17:22:28Z"))
+ .withSizeInKb(7989893119356760730L)
+ .withTypePropertiesType("m")
+ .withUrl("d"),
+ new LogFileInner().withCreatedTime(OffsetDateTime.parse("2021-09-24T17:39:42Z"))
+ .withLastModifiedTime(OffsetDateTime.parse("2021-06-13T19:10:51Z"))
+ .withSizeInKb(7138744715268482510L)
+ .withTypePropertiesType("stotxh")
+ .withUrl("ujbypelmcuvhixb")))
+ .withNextLink("lbfpncurd");
model = BinaryData.fromObject(model).toObject(LogFileListResult.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T04:08:29Z"), model.value().get(0).createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T08:24:44Z"), model.value().get(0).lastModifiedTime());
- Assertions.assertEquals(8766240575961475236L, model.value().get(0).sizeInKb());
- Assertions.assertEquals("fiufx", model.value().get(0).typePropertiesType());
- Assertions.assertEquals("npirgnepttw", model.value().get(0).url());
- Assertions.assertEquals("vfcluyovwxnbkfe", model.nextLink());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-10-31T02:18:42Z"), model.value().get(0).createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-04-04T17:22:28Z"), model.value().get(0).lastModifiedTime());
+ Assertions.assertEquals(7989893119356760730L, model.value().get(0).sizeInKb());
+ Assertions.assertEquals("m", model.value().get(0).typePropertiesType());
+ Assertions.assertEquals("d", model.value().get(0).url());
+ Assertions.assertEquals("lbfpncurd", model.nextLink());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilePropertiesTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilePropertiesTests.java
index f02ba77054073..e77535f94fc26 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilePropertiesTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilePropertiesTests.java
@@ -13,27 +13,27 @@ public final class LogFilePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LogFileProperties model = BinaryData.fromString(
- "{\"createdTime\":\"2021-10-15T12:19:25Z\",\"lastModifiedTime\":\"2021-08-09T21:16:26Z\",\"sizeInKb\":2974540016936368802,\"type\":\"sgaojfmwncot\",\"url\":\"fhir\"}")
+ "{\"createdTime\":\"2021-04-03T13:31:04Z\",\"lastModifiedTime\":\"2021-10-05T06:38:19Z\",\"sizeInKb\":2404210463735215567,\"type\":\"gytsbwtovv\",\"url\":\"seinqfiuf\"}")
.toObject(LogFileProperties.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-15T12:19:25Z"), model.createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T21:16:26Z"), model.lastModifiedTime());
- Assertions.assertEquals(2974540016936368802L, model.sizeInKb());
- Assertions.assertEquals("sgaojfmwncot", model.type());
- Assertions.assertEquals("fhir", model.url());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-04-03T13:31:04Z"), model.createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T06:38:19Z"), model.lastModifiedTime());
+ Assertions.assertEquals(2404210463735215567L, model.sizeInKb());
+ Assertions.assertEquals("gytsbwtovv", model.type());
+ Assertions.assertEquals("seinqfiuf", model.url());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LogFileProperties model = new LogFileProperties().withCreatedTime(OffsetDateTime.parse("2021-10-15T12:19:25Z"))
- .withLastModifiedTime(OffsetDateTime.parse("2021-08-09T21:16:26Z"))
- .withSizeInKb(2974540016936368802L)
- .withType("sgaojfmwncot")
- .withUrl("fhir");
+ LogFileProperties model = new LogFileProperties().withCreatedTime(OffsetDateTime.parse("2021-04-03T13:31:04Z"))
+ .withLastModifiedTime(OffsetDateTime.parse("2021-10-05T06:38:19Z"))
+ .withSizeInKb(2404210463735215567L)
+ .withType("gytsbwtovv")
+ .withUrl("seinqfiuf");
model = BinaryData.fromObject(model).toObject(LogFileProperties.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-15T12:19:25Z"), model.createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T21:16:26Z"), model.lastModifiedTime());
- Assertions.assertEquals(2974540016936368802L, model.sizeInKb());
- Assertions.assertEquals("sgaojfmwncot", model.type());
- Assertions.assertEquals("fhir", model.url());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-04-03T13:31:04Z"), model.createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T06:38:19Z"), model.lastModifiedTime());
+ Assertions.assertEquals(2404210463735215567L, model.sizeInKb());
+ Assertions.assertEquals("gytsbwtovv", model.type());
+ Assertions.assertEquals("seinqfiuf", model.url());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerMockTests.java
index 8d0c94aff8354..3b865c9dd4b27 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LogFilesListByServerMockTests.java
@@ -22,7 +22,7 @@ public final class LogFilesListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"createdTime\":\"2021-07-27T13:55:01Z\",\"lastModifiedTime\":\"2021-06-04T03:09:29Z\",\"sizeInKb\":5363354368308403251,\"type\":\"anarfdlpukhpyrne\",\"url\":\"jcpeogkhnmg\"},\"id\":\"ouxddbhfhpfpazj\",\"name\":\"oywjxhpdulont\",\"type\":\"cnpqwteht\"}]}";
+ = "{\"value\":[{\"properties\":{\"createdTime\":\"2021-10-10T10:22:02Z\",\"lastModifiedTime\":\"2021-11-03T03:19:16Z\",\"sizeInKb\":3437193079645331762,\"type\":\"zizvuxmmk\",\"url\":\"vthn\"},\"id\":\"zt\",\"name\":\"kovmribiatt\",\"type\":\"plucfotangcfhnyk\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,13 +32,13 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.logFiles().listByServer("h", "jnhgwydyyn", com.azure.core.util.Context.NONE);
+ = manager.logFiles().listByServer("fr", "xousxauzl", com.azure.core.util.Context.NONE);
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T13:55:01Z"), response.iterator().next().createdTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-04T03:09:29Z"),
+ Assertions.assertEquals(OffsetDateTime.parse("2021-10-10T10:22:02Z"), response.iterator().next().createdTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-11-03T03:19:16Z"),
response.iterator().next().lastModifiedTime());
- Assertions.assertEquals(5363354368308403251L, response.iterator().next().sizeInKb());
- Assertions.assertEquals("anarfdlpukhpyrne", response.iterator().next().typePropertiesType());
- Assertions.assertEquals("jcpeogkhnmg", response.iterator().next().url());
+ Assertions.assertEquals(3437193079645331762L, response.iterator().next().sizeInKb());
+ Assertions.assertEquals("zizvuxmmk", response.iterator().next().typePropertiesType());
+ Assertions.assertEquals("vthn", response.iterator().next().url());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupRequestTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupRequestTests.java
index 6841510e9ec18..9a31b7680679c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupRequestTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrBackupRequestTests.java
@@ -14,20 +14,21 @@
public final class LtrBackupRequestTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- LtrBackupRequest model = BinaryData.fromString(
- "{\"targetDetails\":{\"sasUriList\":[\"b\",\"ac\",\"op\"]},\"backupSettings\":{\"backupName\":\"fqrhhuaopppc\"}}")
+ LtrBackupRequest model = BinaryData
+ .fromString(
+ "{\"targetDetails\":{\"sasUriList\":[\"pt\",\"d\"]},\"backupSettings\":{\"backupName\":\"gpfqbuace\"}}")
.toObject(LtrBackupRequest.class);
- Assertions.assertEquals("fqrhhuaopppc", model.backupSettings().backupName());
- Assertions.assertEquals("b", model.targetDetails().sasUriList().get(0));
+ Assertions.assertEquals("gpfqbuace", model.backupSettings().backupName());
+ Assertions.assertEquals("pt", model.targetDetails().sasUriList().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
LtrBackupRequest model
- = new LtrBackupRequest().withBackupSettings(new BackupSettings().withBackupName("fqrhhuaopppc"))
- .withTargetDetails(new BackupStoreDetails().withSasUriList(Arrays.asList("b", "ac", "op")));
+ = new LtrBackupRequest().withBackupSettings(new BackupSettings().withBackupName("gpfqbuace"))
+ .withTargetDetails(new BackupStoreDetails().withSasUriList(Arrays.asList("pt", "d")));
model = BinaryData.fromObject(model).toObject(LtrBackupRequest.class);
- Assertions.assertEquals("fqrhhuaopppc", model.backupSettings().backupName());
- Assertions.assertEquals("b", model.targetDetails().sasUriList().get(0));
+ Assertions.assertEquals("gpfqbuace", model.backupSettings().backupName());
+ Assertions.assertEquals("pt", model.targetDetails().sasUriList().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupRequestTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupRequestTests.java
index 185eaf3a83650..b20248569b241 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupRequestTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupRequestTests.java
@@ -12,16 +12,16 @@
public final class LtrPreBackupRequestTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- LtrPreBackupRequest model = BinaryData.fromString("{\"backupSettings\":{\"backupName\":\"lynqwwncwzzh\"}}")
+ LtrPreBackupRequest model = BinaryData.fromString("{\"backupSettings\":{\"backupName\":\"ncw\"}}")
.toObject(LtrPreBackupRequest.class);
- Assertions.assertEquals("lynqwwncwzzh", model.backupSettings().backupName());
+ Assertions.assertEquals("ncw", model.backupSettings().backupName());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
LtrPreBackupRequest model
- = new LtrPreBackupRequest().withBackupSettings(new BackupSettings().withBackupName("lynqwwncwzzh"));
+ = new LtrPreBackupRequest().withBackupSettings(new BackupSettings().withBackupName("ncw"));
model = BinaryData.fromObject(model).toObject(LtrPreBackupRequest.class);
- Assertions.assertEquals("lynqwwncwzzh", model.backupSettings().backupName());
+ Assertions.assertEquals("ncw", model.backupSettings().backupName());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponseInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponseInnerTests.java
index a5ed0ad710513..87869d984f9e4 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponseInnerTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponseInnerTests.java
@@ -11,15 +11,15 @@
public final class LtrPreBackupResponseInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- LtrPreBackupResponseInner model = BinaryData.fromString("{\"properties\":{\"numberOfContainers\":1046571541}}")
+ LtrPreBackupResponseInner model = BinaryData.fromString("{\"properties\":{\"numberOfContainers\":1950925712}}")
.toObject(LtrPreBackupResponseInner.class);
- Assertions.assertEquals(1046571541, model.numberOfContainers());
+ Assertions.assertEquals(1950925712, model.numberOfContainers());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LtrPreBackupResponseInner model = new LtrPreBackupResponseInner().withNumberOfContainers(1046571541);
+ LtrPreBackupResponseInner model = new LtrPreBackupResponseInner().withNumberOfContainers(1950925712);
model = BinaryData.fromObject(model).toObject(LtrPreBackupResponseInner.class);
- Assertions.assertEquals(1046571541, model.numberOfContainers());
+ Assertions.assertEquals(1950925712, model.numberOfContainers());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponsePropertiesTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponsePropertiesTests.java
index a79551f8d9512..a9b028c867b47 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponsePropertiesTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/LtrPreBackupResponsePropertiesTests.java
@@ -11,15 +11,15 @@
public final class LtrPreBackupResponsePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- LtrPreBackupResponseProperties model = BinaryData.fromString("{\"numberOfContainers\":622690283}")
+ LtrPreBackupResponseProperties model = BinaryData.fromString("{\"numberOfContainers\":1761160515}")
.toObject(LtrPreBackupResponseProperties.class);
- Assertions.assertEquals(622690283, model.numberOfContainers());
+ Assertions.assertEquals(1761160515, model.numberOfContainers());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LtrPreBackupResponseProperties model = new LtrPreBackupResponseProperties().withNumberOfContainers(622690283);
+ LtrPreBackupResponseProperties model = new LtrPreBackupResponseProperties().withNumberOfContainers(1761160515);
model = BinaryData.fromObject(model).toObject(LtrPreBackupResponseProperties.class);
- Assertions.assertEquals(622690283, model.numberOfContainers());
+ Assertions.assertEquals(1761160515, model.numberOfContainers());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteWithResponseMockTests.java
index b009146a971e5..bbe04f2ef1871 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/MigrationsDeleteWithResponseMockTests.java
@@ -27,9 +27,7 @@ public void testDeleteWithResponse() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.migrations()
- .deleteWithResponse("inwjizcilngh", "shejjtbxqm", "luxlxqzvnersby", "ucrwnami",
- com.azure.core.util.Context.NONE);
+ manager.migrations().deleteWithResponse("czurtlei", "q", "bkwvzg", "zvd", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/NamePropertyTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/NamePropertyTests.java
deleted file mode 100644
index 53ee3bbf2a3c7..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/NamePropertyTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.NameProperty;
-import org.junit.jupiter.api.Assertions;
-
-public final class NamePropertyTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- NameProperty model = BinaryData.fromString("{\"value\":\"ond\",\"localizedValue\":\"luudfdlwggytsb\"}")
- .toObject(NameProperty.class);
- Assertions.assertEquals("ond", model.value());
- Assertions.assertEquals("luudfdlwggytsb", model.localizedValue());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NameProperty model = new NameProperty().withValue("ond").withLocalizedValue("luudfdlwggytsb");
- model = BinaryData.fromObject(model).toObject(NameProperty.class);
- Assertions.assertEquals("ond", model.value());
- Assertions.assertEquals("luudfdlwggytsb", model.localizedValue());
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListWithResponseMockTests.java
index 4d95c0758d812..0461c49556340 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/OperationsListWithResponseMockTests.java
@@ -21,7 +21,7 @@ public final class OperationsListWithResponseMockTests {
@Test
public void testListWithResponse() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":\"ajquhuxylrjvmtyg\",\"display\":{\"provider\":\"zyos\",\"resource\":\"p\",\"operation\":\"c\",\"description\":\"kyjpmspbps\"},\"isDataAction\":true,\"origin\":\"system\",\"properties\":{\"eyujtvczkcnyxrx\":\"datagt\",\"glnkvxlxpagl\":\"dataunjdx\",\"hpzvuqdflvoniyp\":\"dataivbgkcv\",\"idibgqjxgpn\":\"datapubcpzgpxtivhjk\"}},{\"name\":\"govfgpikqmhhaow\",\"display\":{\"provider\":\"zvuporqzdfuydz\",\"resource\":\"fvxcnqmxqpswo\",\"operation\":\"vkhlggdhbemz\",\"description\":\"zszuwiwtglxx\"},\"isDataAction\":true,\"origin\":\"system\",\"properties\":{\"gmqgjs\":\"dataicrmnzh\",\"rmbodt\":\"datavpqcb\",\"qgvriibakcla\":\"datas\",\"gmwohqfzizvu\":\"datajfrnxousxauzlwv\"}},{\"name\":\"mk\",\"display\":{\"provider\":\"thnwpzte\",\"resource\":\"vmribiat\",\"operation\":\"plucfotangcfhnyk\",\"description\":\"ugswvx\"},\"isDataAction\":true,\"origin\":\"system\",\"properties\":{\"cvclxynpdk\":\"datavtxnjmxmcuqud\"}}],\"nextLink\":\"fabuiyjibu\"}";
+ = "{\"value\":[{\"name\":\"e\",\"display\":{\"provider\":\"zqn\",\"resource\":\"vsqltnzoibgsxg\",\"operation\":\"fyq\",\"description\":\"mpqoxw\"},\"isDataAction\":true,\"origin\":\"user\",\"properties\":{\"h\":\"dataqxeiiqbimhtmwwi\",\"bcblemb\":\"datahfqpofv\",\"ihebwtsw\":\"datakbwvqvxkdiv\"}},{\"name\":\"uwfmduragegizvc\",\"display\":{\"provider\":\"lisdjubggbq\",\"resource\":\"kxkbsazgakgacyr\",\"operation\":\"jdmspofapvuhryln\",\"description\":\"frzgbzjed\"},\"isDataAction\":true,\"origin\":\"system\",\"properties\":{\"bcuiiz\":\"datav\"}},{\"name\":\"twfans\",\"display\":{\"provider\":\"dibmikostbzbkiwb\",\"resource\":\"n\",\"operation\":\"phzfylsgcrp\",\"description\":\"cunezzcezelfw\"},\"isDataAction\":false,\"origin\":\"NotSpecified\",\"properties\":{\"afzvaylptrs\":\"datawetnpsihc\",\"cxwaxfewz\":\"dataqwztcmwqkc\",\"ylkkshkbffmbm\":\"datakjexfdeqvhp\"}},{\"name\":\"jrgywwpgjxsn\",\"display\":{\"provider\":\"ujgicgaaoe\",\"resource\":\"taqutdewem\",\"operation\":\"wvruunzzj\",\"description\":\"hkfkimrtixokf\"},\"isDataAction\":false,\"origin\":\"user\",\"properties\":{\"tshi\":\"dataqepqwhixmon\",\"vuwcobiegstmnin\":\"dataxgvelfclduccbird\"}}],\"nextLink\":\"izcil\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,6 +34,6 @@ public void testListWithResponse() throws Exception {
= manager.operations().listWithResponse(com.azure.core.util.Context.NONE).getValue();
Assertions.assertEquals(true, response.value().get(0).isDataAction());
- Assertions.assertEquals("fabuiyjibu", response.nextLink());
+ Assertions.assertEquals("izcil", response.nextLink());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationsUpdateMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationsUpdateMockTests.java
index 464cc0268467f..5063482d4e365 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationsUpdateMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionOperationsUpdateMockTests.java
@@ -25,7 +25,7 @@ public final class PrivateEndpointConnectionOperationsUpdateMockTests {
@Test
public void testUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"groupIds\":[\"xrdcqtj\",\"idttgepus\",\"vyjtcvu\"],\"privateEndpoint\":{\"id\":\"s\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"sfuughtuqfecjx\",\"actionsRequired\":\"gtuhxuicbu\"},\"provisioningState\":\"Succeeded\"},\"id\":\"s\",\"name\":\"njlx\",\"type\":\"zrhwp\"}";
+ = "{\"properties\":{\"groupIds\":[\"sn\",\"wfl\",\"qmp\",\"zruwn\"],\"privateEndpoint\":{\"id\":\"pxiwf\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"saasiixtmkzj\",\"actionsRequired\":\"viirhgfgrws\"},\"provisioningState\":\"Succeeded\"},\"id\":\"atzv\",\"name\":\"bglbyvict\",\"type\":\"tbrxkjz\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -35,17 +35,17 @@ public void testUpdate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PrivateEndpointConnection response = manager.privateEndpointConnectionOperations()
- .update("epdfgkmtdherng", "tcjuahokqto", "kauxof",
+ .update("nbsoqeqalarv", "agunbtgfebw", "nbmhyree",
new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint())
.withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
.withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("bauiropi")
- .withActionsRequired("szonwpngajinn")),
+ .withDescription("jkwrusnkq")
+ .withActionsRequired("syrq")),
com.azure.core.util.Context.NONE);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED,
+ Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED,
response.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("sfuughtuqfecjx", response.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("gtuhxuicbu", response.privateLinkServiceConnectionState().actionsRequired());
+ Assertions.assertEquals("saasiixtmkzj", response.privateLinkServiceConnectionState().description());
+ Assertions.assertEquals("viirhgfgrws", response.privateLinkServiceConnectionState().actionsRequired());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
index cd884a67b2e06..11e3f80ffcf9c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"groupIds\":[\"r\",\"x\",\"ewpktvqy\"],\"privateEndpoint\":{\"id\":\"qpzoyhlfbcgwgcl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"bqinjipnwjfu\",\"actionsRequired\":\"lafcbahh\"},\"provisioningState\":\"Creating\"},\"id\":\"foiyjwpfilk\",\"name\":\"kkholvdndvia\",\"type\":\"ogphuartvtiu\"}";
+ = "{\"properties\":{\"groupIds\":[\"gfuhokzrusw\",\"vhczznvfby\",\"jsxjwwix\"],\"privateEndpoint\":{\"id\":\"mwmxqhndvnoamld\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ohdjhhflzok\",\"actionsRequired\":\"ox\"},\"provisioningState\":\"Deleting\"},\"id\":\"jetagltsxoatft\",\"name\":\"zpnpbswv\",\"type\":\"floccsrmozih\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,12 +32,12 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PrivateEndpointConnection response = manager.privateEndpointConnections()
- .getWithResponse("neiknpg", "xgjiuqh", "btozipqwje", com.azure.core.util.Context.NONE)
+ .getWithResponse("uxlxqzvners", "ycucrwnamikzeb", "qbsms", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING,
+ Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED,
response.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("bqinjipnwjfu", response.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("lafcbahh", response.privateLinkServiceConnectionState().actionsRequired());
+ Assertions.assertEquals("ohdjhhflzok", response.privateLinkServiceConnectionState().description());
+ Assertions.assertEquals("ox", response.privateLinkServiceConnectionState().actionsRequired());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerMockTests.java
index c66b502ec2337..7ce1bca14d5c0 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateEndpointConnectionsListByServerMockTests.java
@@ -23,7 +23,7 @@ public final class PrivateEndpointConnectionsListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"groupIds\":[\"oxffif\"],\"privateEndpoint\":{\"id\":\"rsnewmozqvbubqma\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"cx\",\"actionsRequired\":\"zgaz\"},\"provisioningState\":\"Succeeded\"},\"id\":\"o\",\"name\":\"dvmfqhppub\",\"type\":\"w\"}]}";
+ = "{\"value\":[{\"properties\":{\"groupIds\":[\"jxgrytfmp\",\"ycilrmcaykggnox\"],\"privateEndpoint\":{\"id\":\"rksxwpndfc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"nthjtwkjaosrxuzv\",\"actionsRequired\":\"mktcqiosmgbza\"},\"provisioningState\":\"Failed\"},\"id\":\"dl\",\"name\":\"rtltla\",\"type\":\"rltzkatbhjmz\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,13 +32,14 @@ public void testListByServer() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- PagedIterable response = manager.privateEndpointConnections()
- .listByServer("yefchnm", "ahmnxhkxjqirw", com.azure.core.util.Context.NONE);
+ PagedIterable response
+ = manager.privateEndpointConnections().listByServer("ipgawtxx", "ky", com.azure.core.util.Context.NONE);
Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED,
response.iterator().next().privateLinkServiceConnectionState().status());
- Assertions.assertEquals("cx", response.iterator().next().privateLinkServiceConnectionState().description());
- Assertions.assertEquals("zgaz",
+ Assertions.assertEquals("nthjtwkjaosrxuzv",
+ response.iterator().next().privateLinkServiceConnectionState().description());
+ Assertions.assertEquals("mktcqiosmgbza",
response.iterator().next().privateLinkServiceConnectionState().actionsRequired());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetWithResponseMockTests.java
index e6ae20dbb0c22..56a9e3bc03549 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesGetWithResponseMockTests.java
@@ -21,7 +21,7 @@ public final class PrivateLinkResourcesGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"groupId\":\"bnfxofvc\",\"requiredMembers\":[\"dirazf\",\"xejw\"],\"requiredZoneNames\":[\"dujtmvcope\",\"c\",\"jurbuhhlkyqltqsr\",\"gtuwkff\"]},\"id\":\"ktsysidfvclglxn\",\"name\":\"uijtkbu\",\"type\":\"qogsfikayian\"}";
+ = "{\"properties\":{\"groupId\":\"jbmzyospspsh\",\"requiredMembers\":[\"kyjpmspbps\",\"df\",\"pyogtieyuj\",\"vczkcnyxrxmunjd\"],\"requiredZoneNames\":[\"lnkvxlx\",\"aglqivbgkcvkh\",\"zvuqdflvon\"]},\"id\":\"pfpubcpzgpx\",\"name\":\"ivhjknidi\",\"type\":\"gqjxgpnrhgovfgp\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PrivateLinkResource response = manager.privateLinkResources()
- .getWithResponse("ueio", "kjbsah", "tdtpdelqacslmo", com.azure.core.util.Context.NONE)
+ .getWithResponse("dtmaa", "quhuxylrj", "m", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("dujtmvcope", response.requiredZoneNames().get(0));
+ Assertions.assertEquals("lnkvxlx", response.requiredZoneNames().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerMockTests.java
index 592bf684deae4..d321f962d65ce 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/PrivateLinkResourcesListByServerMockTests.java
@@ -22,7 +22,7 @@ public final class PrivateLinkResourcesListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"groupId\":\"jqatucoigebxn\",\"requiredMembers\":[\"fepbnwgfmxjgc\",\"bjb\",\"dlfgtdysnaq\"],\"requiredZoneNames\":[\"qbctqha\",\"zjrwdkqze\",\"yjleziunjx\",\"fza\"]},\"id\":\"kwcegyamlbn\",\"name\":\"eqacjjvpilguooq\",\"type\":\"agmdit\"}]}";
+ = "{\"value\":[{\"properties\":{\"groupId\":\"clnapxbiygnugjkn\",\"requiredMembers\":[\"fcttuxuuyilfl\",\"oiquvrehmrnjhvs\"],\"requiredZoneNames\":[\"tczytqjtwh\",\"uunfprnjletlxsm\"]},\"id\":\"ddoui\",\"name\":\"amowaziynknlqwzd\",\"type\":\"piwhxqs\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,9 +31,9 @@ public void testListByServer() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- PagedIterable response
- = manager.privateLinkResources().listByServer("sxjb", "qehgpd", com.azure.core.util.Context.NONE);
+ PagedIterable response = manager.privateLinkResources()
+ .listByServer("rgxffmshkw", "bkgozxwopdbydpi", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("qbctqha", response.iterator().next().requiredZoneNames().get(0));
+ Assertions.assertEquals("tczytqjtwh", response.iterator().next().requiredZoneNames().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsageInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsageInnerTests.java
deleted file mode 100644
index 153051e3d23ea..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsageInnerTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.NameProperty;
-import org.junit.jupiter.api.Assertions;
-
-public final class QuotaUsageInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- QuotaUsageInner model = BinaryData.fromString(
- "{\"name\":{\"value\":\"tylbfpncurdoiw\",\"localizedValue\":\"thtywub\"},\"limit\":3048231352847216987,\"unit\":\"wqknfdn\",\"currentValue\":4775969019661520867,\"id\":\"rdgoihxumw\"}")
- .toObject(QuotaUsageInner.class);
- Assertions.assertEquals("tylbfpncurdoiw", model.name().value());
- Assertions.assertEquals("thtywub", model.name().localizedValue());
- Assertions.assertEquals(3048231352847216987L, model.limit());
- Assertions.assertEquals("wqknfdn", model.unit());
- Assertions.assertEquals(4775969019661520867L, model.currentValue());
- Assertions.assertEquals("rdgoihxumw", model.id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- QuotaUsageInner model = new QuotaUsageInner()
- .withName(new NameProperty().withValue("tylbfpncurdoiw").withLocalizedValue("thtywub"))
- .withLimit(3048231352847216987L)
- .withUnit("wqknfdn")
- .withCurrentValue(4775969019661520867L)
- .withId("rdgoihxumw");
- model = BinaryData.fromObject(model).toObject(QuotaUsageInner.class);
- Assertions.assertEquals("tylbfpncurdoiw", model.name().value());
- Assertions.assertEquals("thtywub", model.name().localizedValue());
- Assertions.assertEquals(3048231352847216987L, model.limit());
- Assertions.assertEquals("wqknfdn", model.unit());
- Assertions.assertEquals(4775969019661520867L, model.currentValue());
- Assertions.assertEquals("rdgoihxumw", model.id());
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListResultTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListResultTests.java
deleted file mode 100644
index 82b5906c244d3..0000000000000
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/QuotaUsagesListResultTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresqlflexibleserver.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.QuotaUsagesListResult;
-
-public final class QuotaUsagesListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- QuotaUsagesListResult model = BinaryData.fromString(
- "{\"value\":[{\"name\":{\"value\":\"akpjpqqmtedlt\",\"localizedValue\":\"jihy\"},\"limit\":4159702080316838891,\"unit\":\"vwau\",\"currentValue\":4404884666059686122,\"id\":\"gupkvipmdscwxq\"},{\"name\":{\"value\":\"vzhfstotxhoj\",\"localizedValue\":\"bypel\"},\"limit\":3920435085963862976,\"unit\":\"ixbjx\",\"currentValue\":55141822425765508,\"id\":\"lrcoolsttpki\"}],\"nextLink\":\"kbnujr\"}")
- .toObject(QuotaUsagesListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- QuotaUsagesListResult model = new QuotaUsagesListResult();
- model = BinaryData.fromObject(model).toObject(QuotaUsagesListResult.class);
- }
-}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProvidersCheckMigrationNameAvailabilityWithRMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProvidersCheckMigrationNameAvailabilityWithRMockTests.java
index 949cfc450d8e2..5dcc37b14e93c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProvidersCheckMigrationNameAvailabilityWithRMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ResourceProvidersCheckMigrationNameAvailabilityWithRMockTests.java
@@ -22,7 +22,7 @@ public final class ResourceProvidersCheckMigrationNameAvailabilityWithRMockTests
@Test
public void testCheckMigrationNameAvailabilityWithResponse() throws Exception {
String responseStr
- = "{\"name\":\"fa\",\"type\":\"owa\",\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"lqwzdvpiwhxqsz\"}";
+ = "{\"name\":\"tqyryuzcbmqqv\",\"type\":\"mv\",\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"xo\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,12 +32,12 @@ public void testCheckMigrationNameAvailabilityWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
MigrationNameAvailabilityResource response = manager.resourceProviders()
- .checkMigrationNameAvailabilityWithResponse("uyilflqoiquvrehm", "njhvsujztc", "ytqj",
- new MigrationNameAvailabilityResourceInner().withName("w").withType("auunfprnjletlx"),
+ .checkMigrationNameAvailabilityWithResponse("qscazuawxtz", "puamwabzxr", "xcushs",
+ new MigrationNameAvailabilityResourceInner().withName("haivm").withType("yasflvgsgzwy"),
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("fa", response.name());
- Assertions.assertEquals("owa", response.type());
+ Assertions.assertEquals("tqyryuzcbmqqv", response.name());
+ Assertions.assertEquals("mv", response.type());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/RestartParameterTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/RestartParameterTests.java
index 3c4f8c1f6aa82..de4819a85468d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/RestartParameterTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/RestartParameterTests.java
@@ -13,18 +13,18 @@ public final class RestartParameterTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RestartParameter model
- = BinaryData.fromString("{\"restartWithFailover\":true,\"failoverMode\":\"ForcedSwitchover\"}")
+ = BinaryData.fromString("{\"restartWithFailover\":true,\"failoverMode\":\"PlannedSwitchover\"}")
.toObject(RestartParameter.class);
Assertions.assertEquals(true, model.restartWithFailover());
- Assertions.assertEquals(FailoverMode.FORCED_SWITCHOVER, model.failoverMode());
+ Assertions.assertEquals(FailoverMode.PLANNED_SWITCHOVER, model.failoverMode());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RestartParameter model
- = new RestartParameter().withRestartWithFailover(true).withFailoverMode(FailoverMode.FORCED_SWITCHOVER);
+ = new RestartParameter().withRestartWithFailover(true).withFailoverMode(FailoverMode.PLANNED_SWITCHOVER);
model = BinaryData.fromObject(model).toObject(RestartParameter.class);
Assertions.assertEquals(true, model.restartWithFailover());
- Assertions.assertEquals(FailoverMode.FORCED_SWITCHOVER, model.failoverMode());
+ Assertions.assertEquals(FailoverMode.PLANNED_SWITCHOVER, model.failoverMode());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupInnerTests.java
index cebb10bbbd470..389a73eb09a39 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupInnerTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupInnerTests.java
@@ -14,20 +14,20 @@ public final class ServerBackupInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServerBackupInner model = BinaryData.fromString(
- "{\"properties\":{\"backupType\":\"Full\",\"completedTime\":\"2021-02-10T03:30:23Z\",\"source\":\"x\"},\"id\":\"ivyqniwbybrkxvd\",\"name\":\"mjgr\",\"type\":\"fwvuk\"}")
+ "{\"properties\":{\"backupType\":\"Customer On-Demand\",\"completedTime\":\"2021-02-10T03:30:23Z\",\"source\":\"x\"},\"id\":\"ivyqniwbybrkxvd\",\"name\":\"mjgr\",\"type\":\"fwvuk\"}")
.toObject(ServerBackupInner.class);
- Assertions.assertEquals(Origin.FULL, model.backupType());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, model.backupType());
Assertions.assertEquals(OffsetDateTime.parse("2021-02-10T03:30:23Z"), model.completedTime());
Assertions.assertEquals("x", model.source());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServerBackupInner model = new ServerBackupInner().withBackupType(Origin.FULL)
+ ServerBackupInner model = new ServerBackupInner().withBackupType(Origin.CUSTOMER_ON_DEMAND)
.withCompletedTime(OffsetDateTime.parse("2021-02-10T03:30:23Z"))
.withSource("x");
model = BinaryData.fromObject(model).toObject(ServerBackupInner.class);
- Assertions.assertEquals(Origin.FULL, model.backupType());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, model.backupType());
Assertions.assertEquals(OffsetDateTime.parse("2021-02-10T03:30:23Z"), model.completedTime());
Assertions.assertEquals("x", model.source());
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupListResultTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupListResultTests.java
index ffdbdb4f6b378..1fd20caacddc6 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupListResultTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupListResultTests.java
@@ -16,9 +16,9 @@ public final class ServerBackupListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServerBackupListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"backupType\":\"Full\",\"completedTime\":\"2021-08-18T11:52:54Z\",\"source\":\"hkryhtn\"},\"id\":\"czwlokjyem\",\"name\":\"kvnipjoxz\",\"type\":\"nchgej\"}],\"nextLink\":\"odmailzyd\"}")
+ "{\"value\":[{\"properties\":{\"backupType\":\"Customer On-Demand\",\"completedTime\":\"2021-08-18T11:52:54Z\",\"source\":\"hkryhtn\"},\"id\":\"czwlokjyem\",\"name\":\"kvnipjoxz\",\"type\":\"nchgej\"}],\"nextLink\":\"odmailzyd\"}")
.toObject(ServerBackupListResult.class);
- Assertions.assertEquals(Origin.FULL, model.value().get(0).backupType());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, model.value().get(0).backupType());
Assertions.assertEquals(OffsetDateTime.parse("2021-08-18T11:52:54Z"), model.value().get(0).completedTime());
Assertions.assertEquals("hkryhtn", model.value().get(0).source());
Assertions.assertEquals("odmailzyd", model.nextLink());
@@ -26,12 +26,13 @@ public void testDeserialize() throws Exception {
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServerBackupListResult model
- = new ServerBackupListResult().withValue(Arrays.asList(new ServerBackupInner().withBackupType(Origin.FULL)
+ ServerBackupListResult model = new ServerBackupListResult()
+ .withValue(Arrays.asList(new ServerBackupInner().withBackupType(Origin.CUSTOMER_ON_DEMAND)
.withCompletedTime(OffsetDateTime.parse("2021-08-18T11:52:54Z"))
- .withSource("hkryhtn"))).withNextLink("odmailzyd");
+ .withSource("hkryhtn")))
+ .withNextLink("odmailzyd");
model = BinaryData.fromObject(model).toObject(ServerBackupListResult.class);
- Assertions.assertEquals(Origin.FULL, model.value().get(0).backupType());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, model.value().get(0).backupType());
Assertions.assertEquals(OffsetDateTime.parse("2021-08-18T11:52:54Z"), model.value().get(0).completedTime());
Assertions.assertEquals("hkryhtn", model.value().get(0).source());
Assertions.assertEquals("odmailzyd", model.nextLink());
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupPropertiesTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupPropertiesTests.java
index 09db89cf8affd..fe9fe126c0df0 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupPropertiesTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerBackupPropertiesTests.java
@@ -14,20 +14,21 @@ public final class ServerBackupPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServerBackupProperties model = BinaryData
- .fromString("{\"backupType\":\"Full\",\"completedTime\":\"2021-02-24T15:23:22Z\",\"source\":\"cs\"}")
+ .fromString(
+ "{\"backupType\":\"Customer On-Demand\",\"completedTime\":\"2021-02-24T15:23:22Z\",\"source\":\"cs\"}")
.toObject(ServerBackupProperties.class);
- Assertions.assertEquals(Origin.FULL, model.backupType());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, model.backupType());
Assertions.assertEquals(OffsetDateTime.parse("2021-02-24T15:23:22Z"), model.completedTime());
Assertions.assertEquals("cs", model.source());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServerBackupProperties model = new ServerBackupProperties().withBackupType(Origin.FULL)
+ ServerBackupProperties model = new ServerBackupProperties().withBackupType(Origin.CUSTOMER_ON_DEMAND)
.withCompletedTime(OffsetDateTime.parse("2021-02-24T15:23:22Z"))
.withSource("cs");
model = BinaryData.fromObject(model).toObject(ServerBackupProperties.class);
- Assertions.assertEquals(Origin.FULL, model.backupType());
+ Assertions.assertEquals(Origin.CUSTOMER_ON_DEMAND, model.backupType());
Assertions.assertEquals(OffsetDateTime.parse("2021-02-24T15:23:22Z"), model.completedTime());
Assertions.assertEquals("cs", model.source());
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListMockTests.java
index d59a9bfb6097a..e7201e0b0a616 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerCapabilitiesListMockTests.java
@@ -22,7 +22,7 @@ public final class ServerCapabilitiesListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":\"vqikfxcvhrfsphu\",\"supportedServerEditions\":[{\"name\":\"tikteusqczkvykl\",\"defaultSkuName\":\"byjaffmmf\",\"supportedStorageEditions\":[{\"name\":\"cuubgq\",\"defaultStorageSizeMb\":6925699685066088287,\"supportedStorageMb\":[{},{},{},{}],\"status\":\"Disabled\",\"reason\":\"ttwgdsl\"}],\"supportedServerSkus\":[{\"name\":\"hrmooi\",\"vCores\":1309261520,\"supportedIops\":418488184,\"supportedMemoryPerVcoreMb\":6854004636755290327,\"supportedZones\":[\"cxa\",\"zhyrpeto\",\"e\",\"joxslhvnhla\"],\"supportedHaMode\":[\"SameZone\"],\"status\":\"Default\",\"reason\":\"jcjbt\"},{\"name\":\"aehvvibrxjjstoq\",\"vCores\":449265761,\"supportedIops\":774286462,\"supportedMemoryPerVcoreMb\":4666346090573112474,\"supportedZones\":[\"oobklftidgfcwq\"],\"supportedHaMode\":[\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"zhe\"}],\"status\":\"Disabled\",\"reason\":\"ohu\"},{\"name\":\"wtwko\",\"defaultSkuName\":\"wculkbaw\",\"supportedStorageEditions\":[{\"name\":\"njwltlwtjjgu\",\"defaultStorageSizeMb\":8518213803289262805,\"supportedStorageMb\":[{}],\"status\":\"Available\",\"reason\":\"cdmxzrpoaiml\"},{\"name\":\"iaaomylweazul\",\"defaultStorageSizeMb\":4118122894986571340,\"supportedStorageMb\":[{},{}],\"status\":\"Disabled\",\"reason\":\"jhlfzswpchwahf\"},{\"name\":\"usnfepgfewet\",\"defaultStorageSizeMb\":7432084644277094724,\"supportedStorageMb\":[{},{},{},{}],\"status\":\"Available\",\"reason\":\"kxhdjhlimmbcx\"}],\"supportedServerSkus\":[{\"name\":\"po\",\"vCores\":2026678131,\"supportedIops\":1548715838,\"supportedMemoryPerVcoreMb\":7495334357568508911,\"supportedZones\":[\"zxfpxtgqsc\",\"avft\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"gg\"},{\"name\":\"pijrajcivmmghf\",\"vCores\":1851539206,\"supportedIops\":1456716709,\"supportedMemoryPerVcoreMb\":3356451442054441941,\"supportedZones\":[\"uvyinzqodfvpgs\",\"oxgsgbpfgzdjtx\",\"zflbqvg\",\"qvlgafcqusrdvetn\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"duy\"},{\"name\":\"uzhyrmewipmvekdx\",\"vCores\":1124949924,\"supportedIops\":894303936,\"supportedMemoryPerVcoreMb\":1648370479769908154,\"supportedZones\":[\"n\",\"xgketwz\",\"hzjhf\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"SameZone\"],\"status\":\"Available\",\"reason\":\"pmuneqsx\"},{\"name\":\"hfbuzjyihsasbhud\",\"vCores\":1053625203,\"supportedIops\":719606175,\"supportedMemoryPerVcoreMb\":2798000155301001189,\"supportedZones\":[\"ynsqyrpfoobr\",\"ttymsjny\",\"qdnfwqzdz\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\"],\"status\":\"Disabled\",\"reason\":\"fhqlyvi\"}],\"status\":\"Available\",\"reason\":\"iv\"},{\"name\":\"oyzunbixxr\",\"defaultSkuName\":\"kvcpwpgclr\",\"supportedStorageEditions\":[{\"name\":\"soxfrken\",\"defaultStorageSizeMb\":116533809200901624,\"supportedStorageMb\":[{}],\"status\":\"Default\",\"reason\":\"mpdnqqskawa\"},{\"name\":\"vmm\",\"defaultStorageSizeMb\":118268358895074671,\"supportedStorageMb\":[{}],\"status\":\"Available\",\"reason\":\"kzmegnitgvkxlz\"}],\"supportedServerSkus\":[{\"name\":\"fegcea\",\"vCores\":608530050,\"supportedIops\":1274510165,\"supportedMemoryPerVcoreMb\":4874125909627032017,\"supportedZones\":[\"moy\"],\"supportedHaMode\":[\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Default\",\"reason\":\"bkbxgomfa\"}],\"status\":\"Default\",\"reason\":\"sqvdaeyygux\"}],\"supportedServerVersions\":[{\"name\":\"qzhzbezkgimsi\",\"supportedVersionsToUpgrade\":[\"sicddyvv\"],\"status\":\"Default\",\"reason\":\"fmocwahpq\"},{\"name\":\"tjeaahhvjhh\",\"supportedVersionsToUpgrade\":[\"zybbj\"],\"status\":\"Visible\",\"reason\":\"ksyxkyxvxevblbje\"},{\"name\":\"ljlageuaulxu\",\"supportedVersionsToUpgrade\":[\"jbnkpp\",\"ynenlsvxeizz\"],\"status\":\"Default\",\"reason\":\"nsrmffeycx\"}],\"fastProvisioningSupported\":\"Disabled\",\"supportedFastProvisioningEditions\":[{\"supportedTier\":\"merteeammxqiek\",\"supportedSku\":\"zddrt\",\"supportedStorageGb\":550978856,\"supportedServerVersions\":\"jbmxvavre\",\"serverCount\":1844509739,\"status\":\"Default\",\"reason\":\"ecuijpxtxs\"},{\"supportedTier\":\"prtujwsawdd\",\"supportedSku\":\"babxvitit\",\"supportedStorageGb\":1297733750,\"supportedServerVersions\":\"exavoxt\",\"serverCount\":165499088,\"status\":\"Visible\",\"reason\":\"m\"},{\"supportedTier\":\"bwpypqtgsfjacb\",\"supportedSku\":\"hhxud\",\"supportedStorageGb\":1368673691,\"supportedServerVersions\":\"d\",\"serverCount\":1282129926,\"status\":\"Available\",\"reason\":\"ud\"},{\"supportedTier\":\"m\",\"supportedSku\":\"sckdlp\",\"supportedStorageGb\":2009658341,\"supportedServerVersions\":\"cxfailcfxwmdboxd\",\"serverCount\":1260487269,\"status\":\"Disabled\",\"reason\":\"fqob\"}],\"geoBackupSupported\":\"Enabled\",\"zoneRedundantHaSupported\":\"Disabled\",\"zoneRedundantHaAndGeoBackupSupported\":\"Disabled\",\"storageAutoGrowthSupported\":\"Disabled\",\"onlineResizeSupported\":\"Enabled\",\"restricted\":\"Disabled\",\"status\":\"Available\",\"reason\":\"zvytnrzvuljraaer\"}]}";
+ = "{\"value\":[{\"name\":\"jvpglydzgk\",\"supportedServerEditions\":[{\"name\":\"ev\",\"defaultSkuName\":\"epr\",\"supportedStorageEditions\":[{\"name\":\"wytpzdmovz\",\"defaultStorageSizeMb\":1753829479410952479,\"supportedStorageMb\":[{}],\"status\":\"Visible\",\"reason\":\"dflgzuri\"}],\"supportedServerSkus\":[{\"name\":\"cx\",\"vCores\":103057298,\"supportedIops\":1221508981,\"supportedMemoryPerVcoreMb\":7263296405580029992,\"supportedZones\":[\"mlqtmldgxob\",\"irclnpk\",\"iayz\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Disabled\",\"reason\":\"jlb\"},{\"name\":\"qvkjlmxho\",\"vCores\":298942523,\"supportedIops\":1117354707,\"supportedMemoryPerVcoreMb\":5593659060766409421,\"supportedZones\":[\"umbnraauzzp\",\"jazysdzhezwwvaiq\",\"uvvfonkp\",\"hqyikvy\"],\"supportedHaMode\":[\"ZoneRedundant\"],\"status\":\"Default\",\"reason\":\"uwmncs\"},{\"name\":\"ijf\",\"vCores\":671639646,\"supportedIops\":263453714,\"supportedMemoryPerVcoreMb\":7136773832934056620,\"supportedZones\":[\"sgbdhuz\",\"gnjdgkynscliqhz\",\"h\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"ZoneRedundant\"],\"status\":\"Visible\",\"reason\":\"otppnv\"}],\"status\":\"Visible\",\"reason\":\"hihfrbbcevqagtlt\"},{\"name\":\"lfkqojpy\",\"defaultSkuName\":\"gtrd\",\"supportedStorageEditions\":[{\"name\":\"mzzs\",\"defaultStorageSizeMb\":911542749738488125,\"supportedStorageMb\":[{},{},{},{}],\"status\":\"Available\",\"reason\":\"xmprafwg\"},{\"name\":\"hocxvdfffwafqrou\",\"defaultStorageSizeMb\":5073586645904040665,\"supportedStorageMb\":[{},{},{},{}],\"status\":\"Visible\",\"reason\":\"r\"}],\"supportedServerSkus\":[{\"name\":\"n\",\"vCores\":1824103868,\"supportedIops\":35410717,\"supportedMemoryPerVcoreMb\":5535477679816636437,\"supportedZones\":[\"moy\",\"cdyuibhmfdnbzyd\",\"f\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"SameZone\",\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"rvhmgor\"},{\"name\":\"ukiscvwmzhw\",\"vCores\":157711526,\"supportedIops\":57384767,\"supportedMemoryPerVcoreMb\":7279041380388525299,\"supportedZones\":[\"cbtgnhnz\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"ZoneRedundant\",\"ZoneRedundant\"],\"status\":\"Available\",\"reason\":\"lqhy\"},{\"name\":\"vodggxdbee\",\"vCores\":1327302833,\"supportedIops\":1658504364,\"supportedMemoryPerVcoreMb\":1833714202725458886,\"supportedZones\":[\"iaa\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"ZoneRedundant\",\"SameZone\"],\"status\":\"Visible\",\"reason\":\"bylyrfgia\"}],\"status\":\"Disabled\",\"reason\":\"jocqwogfnzjvusf\"}],\"supportedServerVersions\":[{\"name\":\"ozuxylfsbtkadpys\",\"supportedVersionsToUpgrade\":[\"btgkbugrjqctoj\",\"mi\",\"of\",\"eypefojyqd\"],\"status\":\"Visible\",\"reason\":\"lcplc\"},{\"name\":\"hihihlhzdsqtzbsr\",\"supportedVersionsToUpgrade\":[\"wcjhfgmv\"],\"status\":\"Disabled\",\"reason\":\"txmwoteyow\"}],\"fastProvisioningSupported\":\"Disabled\",\"supportedFastProvisioningEditions\":[{\"supportedTier\":\"ekqvgqouwif\",\"supportedSku\":\"pjwyiv\",\"supportedStorageGb\":18074725,\"supportedServerVersions\":\"xcvhrfs\",\"serverCount\":1587826907,\"status\":\"Disabled\",\"reason\":\"ttikteusqczkvykl\"},{\"supportedTier\":\"byjaffmmf\",\"supportedSku\":\"cqc\",\"supportedStorageGb\":661332141,\"supportedServerVersions\":\"qibrtalme\",\"serverCount\":38344578,\"status\":\"Disabled\",\"reason\":\"slqxi\"},{\"supportedTier\":\"rmooizqse\",\"supportedSku\":\"xiutcx\",\"supportedStorageGb\":2081194366,\"supportedServerVersions\":\"y\",\"serverCount\":1111738970,\"status\":\"Visible\",\"reason\":\"e\"}],\"geoBackupSupported\":\"Enabled\",\"zoneRedundantHaSupported\":\"Disabled\",\"zoneRedundantHaAndGeoBackupSupported\":\"Enabled\",\"storageAutoGrowthSupported\":\"Enabled\",\"onlineResizeSupported\":\"Disabled\",\"restricted\":\"Disabled\",\"status\":\"Visible\",\"reason\":\"kkzjcjbtrga\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,8 +32,8 @@ public void testList() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.serverCapabilities().list("uqovekqvgqouwif", "mpjw", com.azure.core.util.Context.NONE);
+ = manager.serverCapabilities().list("tqedcgzulwm", "rqzz", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("vqikfxcvhrfsphu", response.iterator().next().name());
+ Assertions.assertEquals("jvpglydzgk", response.iterator().next().name());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionListResultTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionListResultTests.java
index 204f018b89a34..5fe5852420f6c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionListResultTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionListResultTests.java
@@ -11,7 +11,7 @@ public final class ServerThreatProtectionListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServerThreatProtectionListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-05-10T08:06:55Z\"},\"id\":\"iwyczuh\",\"name\":\"a\",\"type\":\"pqjlihhyusps\"},{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-06-21T01:18:29Z\"},\"id\":\"mfwdgzxu\",\"name\":\"ucvpamrs\",\"type\":\"euzvx\"},{\"properties\":{\"state\":\"Enabled\",\"creationTime\":\"2021-08-12T14:06:46Z\"},\"id\":\"hn\",\"name\":\"txifqj\",\"type\":\"gxmrhublwp\"}],\"nextLink\":\"sutrgjup\"}")
+ "{\"value\":[{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-01-02T14:34:14Z\"},\"id\":\"twqmsniffcdmqnr\",\"name\":\"jlpijnkrx\",\"type\":\"rddh\"},{\"properties\":{\"state\":\"Enabled\",\"creationTime\":\"2021-10-24T17:40:19Z\"},\"id\":\"zronasxift\",\"name\":\"zq\",\"type\":\"zh\"},{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-11-23T02:30:56Z\"},\"id\":\"ogczhonnxkrlg\",\"name\":\"yhmossxkkg\",\"type\":\"h\"},{\"properties\":{\"state\":\"Enabled\",\"creationTime\":\"2021-07-14T05:25:31Z\"},\"id\":\"bdhqxvcxgf\",\"name\":\"pdso\",\"type\":\"bshrnsvbuswd\"}],\"nextLink\":\"yybyc\"}")
.toObject(ServerThreatProtectionListResult.class);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionPropertiesTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionPropertiesTests.java
index 96a27cd3e8097..57460b8eae1ac 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionPropertiesTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionPropertiesTests.java
@@ -13,16 +13,16 @@ public final class ServerThreatProtectionPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServerThreatProtectionProperties model
- = BinaryData.fromString("{\"state\":\"Disabled\",\"creationTime\":\"2021-03-21T20:16:43Z\"}")
+ = BinaryData.fromString("{\"state\":\"Enabled\",\"creationTime\":\"2021-06-25T00:23:13Z\"}")
.toObject(ServerThreatProtectionProperties.class);
- Assertions.assertEquals(ThreatProtectionState.DISABLED, model.state());
+ Assertions.assertEquals(ThreatProtectionState.ENABLED, model.state());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
ServerThreatProtectionProperties model
- = new ServerThreatProtectionProperties().withState(ThreatProtectionState.DISABLED);
+ = new ServerThreatProtectionProperties().withState(ThreatProtectionState.ENABLED);
model = BinaryData.fromObject(model).toObject(ServerThreatProtectionProperties.class);
- Assertions.assertEquals(ThreatProtectionState.DISABLED, model.state());
+ Assertions.assertEquals(ThreatProtectionState.ENABLED, model.state());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateMockTests.java
index 10f0a7fc99f25..9d5725fdd6c19 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsCreateOrUpdateMockTests.java
@@ -23,7 +23,7 @@ public final class ServerThreatProtectionSettingsCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-11-12T13:22:26Z\"},\"id\":\"rrrouuxvnsa\",\"name\":\"bcrymodizrx\",\"type\":\"lobdxna\"}";
+ = "{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-08-26T01:20:28Z\"},\"id\":\"p\",\"name\":\"ilkmk\",\"type\":\"holvdn\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,7 +34,7 @@ public void testCreateOrUpdate() throws Exception {
ServerThreatProtectionSettingsModel response = manager.serverThreatProtectionSettings()
.define(ThreatProtectionName.DEFAULT)
- .withExistingFlexibleServer("ninvudbchaqdt", "qecrqctmxx")
+ .withExistingFlexibleServer("vqylkmqpzoyhl", "bcg")
.withState(ThreatProtectionState.DISABLED)
.create();
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetWithResponseMockTests.java
index 5252385122c9b..b1c169b6e9fe2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsGetWithResponseMockTests.java
@@ -23,7 +23,7 @@ public final class ServerThreatProtectionSettingsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-01-05T04:41:43Z\"},\"id\":\"okkhminq\",\"name\":\"ymc\",\"type\":\"ngnbdxxew\"}";
+ = "{\"properties\":{\"state\":\"Enabled\",\"creationTime\":\"2021-10-30T16:37:34Z\"},\"id\":\"btozipqwje\",\"name\":\"mur\",\"type\":\"xxgewpk\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,9 +33,9 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
ServerThreatProtectionSettingsModel response = manager.serverThreatProtectionSettings()
- .getWithResponse("nafvvkyfedev", "bo", ThreatProtectionName.DEFAULT, com.azure.core.util.Context.NONE)
+ .getWithResponse("n", "gox", ThreatProtectionName.DEFAULT, com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals(ThreatProtectionState.DISABLED, response.state());
+ Assertions.assertEquals(ThreatProtectionState.ENABLED, response.state());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerMockTests.java
index b725f225e522d..b2e93368bf5ce 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsListByServerMockTests.java
@@ -23,7 +23,7 @@ public final class ServerThreatProtectionSettingsListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"creationTime\":\"2021-08-18T08:22:43Z\"},\"id\":\"gwbsreurf\",\"name\":\"kfuarenlv\",\"type\":\"htkln\"}]}";
+ = "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"creationTime\":\"2021-01-01T06:59:38Z\"},\"id\":\"ynpdkvgfab\",\"name\":\"iyji\",\"type\":\"uzphdugnei\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,7 +33,7 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response = manager.serverThreatProtectionSettings()
- .listByServer("evrh", "ljyoogwx", com.azure.core.util.Context.NONE);
+ .listByServer("cugswvxwlmzqw", "vtxnjmxmcuqud", com.azure.core.util.Context.NONE);
Assertions.assertEquals(ThreatProtectionState.ENABLED, response.iterator().next().state());
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsModelInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsModelInnerTests.java
index e123c7a0d8761..723f81eb48676 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsModelInnerTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServerThreatProtectionSettingsModelInnerTests.java
@@ -13,7 +13,7 @@ public final class ServerThreatProtectionSettingsModelInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServerThreatProtectionSettingsModelInner model = BinaryData.fromString(
- "{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-05-19T21:38:43Z\"},\"id\":\"oqh\",\"name\":\"hej\",\"type\":\"g\"}")
+ "{\"properties\":{\"state\":\"Disabled\",\"creationTime\":\"2021-09-24T12:06:55Z\"},\"id\":\"rtkfawnopq\",\"name\":\"ikyzirtxdy\",\"type\":\"x\"}")
.toObject(ServerThreatProtectionSettingsModelInner.class);
Assertions.assertEquals(ThreatProtectionState.DISABLED, model.state());
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteMockTests.java
index 69d7c00031a18..924afbc513996 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersDeleteMockTests.java
@@ -27,7 +27,7 @@ public void testDelete() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.servers().delete("owxeqocljmy", "vkzqk", com.azure.core.util.Context.NONE);
+ manager.servers().delete("kan", "jpdn", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartMockTests.java
index eb51a846bf37b..2516edf1acfb9 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersRestartMockTests.java
@@ -30,8 +30,8 @@ public void testRestart() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
manager.servers()
- .restart("lkvn", "jlrigjkskyrioovz",
- new RestartParameter().withRestartWithFailover(false).withFailoverMode(FailoverMode.FORCED_SWITCHOVER),
+ .restart("kelvidizozsdb", "cxjmonfdgnwncyp",
+ new RestartParameter().withRestartWithFailover(false).withFailoverMode(FailoverMode.PLANNED_FAILOVER),
com.azure.core.util.Context.NONE);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartMockTests.java
index a5a287a899c9c..1121c1f7c05da 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStartMockTests.java
@@ -27,7 +27,7 @@ public void testStart() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.servers().start("aabzmif", "ygznmmaxrizk", com.azure.core.util.Context.NONE);
+ manager.servers().start("tvuqjctzenkeifzz", "mkdasv", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopMockTests.java
index ed5f5b9cad3e9..edbb68d1debbd 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/ServersStopMockTests.java
@@ -27,7 +27,7 @@ public void testStop() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.servers().stop("obgop", "lhslnelxieixyn", com.azure.core.util.Context.NONE);
+ manager.servers().stop("lyhb", "cu", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/UserAssignedIdentityTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/UserAssignedIdentityTests.java
index d84a3f64ca240..5489ac6f47681 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/UserAssignedIdentityTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/UserAssignedIdentityTests.java
@@ -16,11 +16,11 @@ public final class UserAssignedIdentityTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
UserAssignedIdentity model = BinaryData.fromString(
- "{\"userAssignedIdentities\":{\"hahvljuahaq\":{\"principalId\":\"kv\",\"clientId\":\"elmqk\"}},\"type\":\"UserAssigned\",\"tenantId\":\"dhmdua\"}")
+ "{\"userAssignedIdentities\":{\"hahvljuahaq\":{\"principalId\":\"kv\",\"clientId\":\"elmqk\"}},\"type\":\"SystemAssigned\",\"tenantId\":\"dhmdua\"}")
.toObject(UserAssignedIdentity.class);
Assertions.assertEquals("kv", model.userAssignedIdentities().get("hahvljuahaq").principalId());
Assertions.assertEquals("elmqk", model.userAssignedIdentities().get("hahvljuahaq").clientId());
- Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.type());
+ Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.type());
}
@org.junit.jupiter.api.Test
@@ -28,11 +28,11 @@ public void testSerialize() throws Exception {
UserAssignedIdentity model = new UserAssignedIdentity()
.withUserAssignedIdentities(
mapOf("hahvljuahaq", new UserIdentity().withPrincipalId("kv").withClientId("elmqk")))
- .withType(IdentityType.USER_ASSIGNED);
+ .withType(IdentityType.SYSTEM_ASSIGNED);
model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class);
Assertions.assertEquals("kv", model.userAssignedIdentities().get("hahvljuahaq").principalId());
Assertions.assertEquals("elmqk", model.userAssignedIdentities().get("hahvljuahaq").clientId());
- Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.type());
+ Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.type());
}
// Use "Map.of" if available
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceForPatchTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceForPatchTests.java
index a15aad46af18b..f4aeaefad778c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceForPatchTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceForPatchTests.java
@@ -14,19 +14,19 @@ public final class VirtualEndpointResourceForPatchTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
VirtualEndpointResourceForPatch model = BinaryData.fromString(
- "{\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"dvk\"],\"virtualEndpoints\":[\"jdz\"]}}")
+ "{\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"yhwzdgiruj\"],\"virtualEndpoints\":[\"omvzzbtd\",\"qvpn\",\"yujviylwdshfssn\"]}}")
.toObject(VirtualEndpointResourceForPatch.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.endpointType());
- Assertions.assertEquals("dvk", model.members().get(0));
+ Assertions.assertEquals("yhwzdgiruj", model.members().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualEndpointResourceForPatch model
= new VirtualEndpointResourceForPatch().withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("dvk"));
+ .withMembers(Arrays.asList("yhwzdgiruj"));
model = BinaryData.fromObject(model).toObject(VirtualEndpointResourceForPatch.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.endpointType());
- Assertions.assertEquals("dvk", model.members().get(0));
+ Assertions.assertEquals("yhwzdgiruj", model.members().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceInnerTests.java
index 470e9c187fd47..8b92e1e397d33 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceInnerTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourceInnerTests.java
@@ -14,19 +14,19 @@ public final class VirtualEndpointResourceInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
VirtualEndpointResourceInner model = BinaryData.fromString(
- "{\"id\":\"qntcypsxjvfoimwk\",\"name\":\"ircizjxvy\",\"type\":\"ceacvlhvygdy\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"nawjslbiwkojgcy\",\"tsf\",\"z\"],\"virtualEndpoints\":[\"eqphchqnrnr\",\"x\",\"huwrykqgaifm\"]}}")
+ "{\"id\":\"psew\",\"name\":\"oi\",\"type\":\"ukry\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"ox\",\"rgguf\",\"yaomtb\",\"hhavgrvkffovjz\"],\"virtualEndpoints\":[\"bibgjmfxumv\",\"cluyovwxnbkf\"]}}")
.toObject(VirtualEndpointResourceInner.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.endpointType());
- Assertions.assertEquals("nawjslbiwkojgcy", model.members().get(0));
+ Assertions.assertEquals("ox", model.members().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualEndpointResourceInner model
= new VirtualEndpointResourceInner().withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("nawjslbiwkojgcy", "tsf", "z"));
+ .withMembers(Arrays.asList("ox", "rgguf", "yaomtb", "hhavgrvkffovjz"));
model = BinaryData.fromObject(model).toObject(VirtualEndpointResourceInner.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.endpointType());
- Assertions.assertEquals("nawjslbiwkojgcy", model.members().get(0));
+ Assertions.assertEquals("ox", model.members().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourcePropertiesTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourcePropertiesTests.java
index 8cdf7bfbd1743..438a382432291 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourcePropertiesTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointResourcePropertiesTests.java
@@ -14,19 +14,19 @@ public final class VirtualEndpointResourcePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
VirtualEndpointResourceProperties model = BinaryData.fromString(
- "{\"endpointType\":\"ReadWrite\",\"members\":[\"srhnjivo\",\"v\"],\"virtualEndpoints\":[\"v\",\"fzg\"]}")
+ "{\"endpointType\":\"ReadWrite\",\"members\":[\"frymsgaojfmwnc\"],\"virtualEndpoints\":[\"rfh\",\"rctym\",\"xoftpipiwyczu\"]}")
.toObject(VirtualEndpointResourceProperties.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.endpointType());
- Assertions.assertEquals("srhnjivo", model.members().get(0));
+ Assertions.assertEquals("frymsgaojfmwnc", model.members().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualEndpointResourceProperties model
= new VirtualEndpointResourceProperties().withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("srhnjivo", "v"));
+ .withMembers(Arrays.asList("frymsgaojfmwnc"));
model = BinaryData.fromObject(model).toObject(VirtualEndpointResourceProperties.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.endpointType());
- Assertions.assertEquals("srhnjivo", model.members().get(0));
+ Assertions.assertEquals("frymsgaojfmwnc", model.members().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateMockTests.java
index eb1ebf8de0c45..0eeaa446f3ab6 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsCreateMockTests.java
@@ -23,7 +23,7 @@ public final class VirtualEndpointsCreateMockTests {
@Test
public void testCreate() throws Exception {
String responseStr
- = "{\"id\":\"phvtrrmhwrb\",\"name\":\"pyf\",\"type\":\"bhvjglr\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"hhmemhooclutnp\",\"memczjkmmyk\",\"ujxsglhsr\"],\"virtualEndpoints\":[\"ejylmbkzu\",\"nigrfihotjewl\",\"xuzzjgnrefq\",\"hqo\"]}}";
+ = "{\"id\":\"uicbuewmrsw\",\"name\":\"lx\",\"type\":\"rhwpus\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"gpdohzj\",\"atucoigebxncn\"],\"virtualEndpoints\":[\"pbnwgfmxjgcg\",\"jbgdlfgtdysnaquf\"]}}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,13 +33,13 @@ public void testCreate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
VirtualEndpointResource response = manager.virtualEndpoints()
- .define("tmhqykiz")
- .withExistingFlexibleServer("owlkjxnqpv", "gf")
+ .define("bauiropi")
+ .withExistingFlexibleServer("rjvzuyt", "rmlmuowo")
.withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("cbvopwndyqleallk"))
+ .withMembers(Arrays.asList("rd"))
.create();
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, response.endpointType());
- Assertions.assertEquals("hhmemhooclutnp", response.members().get(0));
+ Assertions.assertEquals("gpdohzj", response.members().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetWithResponseMockTests.java
index ed1f36a9dfd09..bc1ba74fc2b50 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsGetWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class VirtualEndpointsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"id\":\"rdddtfgxqbawpcb\",\"name\":\"zqcyknap\",\"type\":\"fyuicdh\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"gbdvibidmhmwff\",\"lfmu\",\"apckccrrvw\",\"yoxoy\"],\"virtualEndpoints\":[\"phaimmoi\"]}}";
+ = "{\"id\":\"jqirwrw\",\"name\":\"oxffif\",\"type\":\"wrsnewmozqvbu\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"ycxhxzgaztta\",\"o\",\"dvmfqhppub\"],\"virtualEndpoints\":[\"epdfgkmtdherng\",\"tcjuahokqto\"]}}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
VirtualEndpointResource response = manager.virtualEndpoints()
- .getWithResponse("pmkmlmvevfx", "op", "hbzxli", com.azure.core.util.Context.NONE)
+ .getWithResponse("viauogphua", "tvt", "ukyefchnmnahmnxh", com.azure.core.util.Context.NONE)
.getValue();
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, response.endpointType());
- Assertions.assertEquals("gbdvibidmhmwff", response.members().get(0));
+ Assertions.assertEquals("ycxhxzgaztta", response.members().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerMockTests.java
index a30c4ca5a6b5e..bbdf822032e6e 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListByServerMockTests.java
@@ -23,7 +23,7 @@ public final class VirtualEndpointsListByServerMockTests {
@Test
public void testListByServer() throws Exception {
String responseStr
- = "{\"value\":[{\"id\":\"avbopfp\",\"name\":\"bwnupgahxkumas\",\"type\":\"aacfdmmc\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"epvufhbzehew\",\"oqhnlb\",\"nbldxeaclgschori\"],\"virtualEndpoints\":[\"srrm\",\"ucsofldpuviyf\",\"aabeolhbhlvbmxuq\",\"bsxtkcudfbsfarfs\"]}}]}";
+ = "{\"value\":[{\"id\":\"whslwkoj\",\"name\":\"l\",\"type\":\"npdwr\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"gsnnf\"],\"virtualEndpoints\":[\"tefypococtfjgti\"]}}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,9 +33,9 @@ public void testListByServer() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.virtualEndpoints().listByServer("oqboshbragapyyr", "fsv", com.azure.core.util.Context.NONE);
+ = manager.virtualEndpoints().listByServer("kauxof", "hfphwpnulaiywze", com.azure.core.util.Context.NONE);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, response.iterator().next().endpointType());
- Assertions.assertEquals("epvufhbzehew", response.iterator().next().members().get(0));
+ Assertions.assertEquals("gsnnf", response.iterator().next().members().get(0));
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListResultTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListResultTests.java
index de46c3ba75e23..9d12a3d557ce5 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListResultTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualEndpointsListResultTests.java
@@ -15,26 +15,24 @@ public final class VirtualEndpointsListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
VirtualEndpointsListResult model = BinaryData.fromString(
- "{\"value\":[{\"id\":\"ftul\",\"name\":\"tduceamt\",\"type\":\"zuo\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"qioknssxmojm\",\"vpkjpr\"],\"virtualEndpoints\":[\"cfzq\",\"jyxgtczh\",\"ydbsd\"]}},{\"id\":\"m\",\"name\":\"maehvbbxurip\",\"type\":\"fnhtbaxkgxyw\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"yhpluodpvruudlgz\",\"bth\",\"stgktst\",\"dxeclzedqbcvh\"],\"virtualEndpoints\":[\"plodqkdlwwqfbu\"]}},{\"id\":\"kxtrq\",\"name\":\"smlmbtxhwgfwsrta\",\"type\":\"oezbrhubsk\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"okkqfqjbvleo\"],\"virtualEndpoints\":[\"luiqtqzfavyvnqq\"]}}],\"nextLink\":\"aryeu\"}")
+ "{\"value\":[{\"id\":\"pqjlihhyusps\",\"name\":\"sdvlmfwdgzxulucv\",\"type\":\"mrsreuzvxurisjnh\",\"properties\":{\"endpointType\":\"ReadWrite\",\"members\":[\"jzgxmrhublwp\",\"esutrgjupauutpw\",\"qhih\"],\"virtualEndpoints\":[\"g\"]}}],\"nextLink\":\"pnfqntcyp\"}")
.toObject(VirtualEndpointsListResult.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.value().get(0).endpointType());
- Assertions.assertEquals("qioknssxmojm", model.value().get(0).members().get(0));
- Assertions.assertEquals("aryeu", model.nextLink());
+ Assertions.assertEquals("jzgxmrhublwp", model.value().get(0).members().get(0));
+ Assertions.assertEquals("pnfqntcyp", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- VirtualEndpointsListResult model = new VirtualEndpointsListResult().withValue(Arrays.asList(
- new VirtualEndpointResourceInner().withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("qioknssxmojm", "vpkjpr")),
- new VirtualEndpointResourceInner().withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("yhpluodpvruudlgz", "bth", "stgktst", "dxeclzedqbcvh")),
- new VirtualEndpointResourceInner().withEndpointType(VirtualEndpointType.READ_WRITE)
- .withMembers(Arrays.asList("okkqfqjbvleo"))))
- .withNextLink("aryeu");
+ VirtualEndpointsListResult model
+ = new VirtualEndpointsListResult()
+ .withValue(
+ Arrays.asList(new VirtualEndpointResourceInner().withEndpointType(VirtualEndpointType.READ_WRITE)
+ .withMembers(Arrays.asList("jzgxmrhublwp", "esutrgjupauutpw", "qhih"))))
+ .withNextLink("pnfqntcyp");
model = BinaryData.fromObject(model).toObject(VirtualEndpointsListResult.class);
Assertions.assertEquals(VirtualEndpointType.READ_WRITE, model.value().get(0).endpointType());
- Assertions.assertEquals("qioknssxmojm", model.value().get(0).members().get(0));
- Assertions.assertEquals("aryeu", model.nextLink());
+ Assertions.assertEquals("jzgxmrhublwp", model.value().get(0).members().get(0));
+ Assertions.assertEquals("pnfqntcyp", model.nextLink());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageParameterTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageParameterTests.java
index 184e0c06d4645..f91f16a6f5877 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageParameterTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageParameterTests.java
@@ -11,16 +11,16 @@
public final class VirtualNetworkSubnetUsageParameterTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- VirtualNetworkSubnetUsageParameter model = BinaryData.fromString("{\"virtualNetworkArmResourceId\":\"jkqa\"}")
+ VirtualNetworkSubnetUsageParameter model = BinaryData.fromString("{\"virtualNetworkArmResourceId\":\"jv\"}")
.toObject(VirtualNetworkSubnetUsageParameter.class);
- Assertions.assertEquals("jkqa", model.virtualNetworkArmResourceId());
+ Assertions.assertEquals("jv", model.virtualNetworkArmResourceId());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualNetworkSubnetUsageParameter model
- = new VirtualNetworkSubnetUsageParameter().withVirtualNetworkArmResourceId("jkqa");
+ = new VirtualNetworkSubnetUsageParameter().withVirtualNetworkArmResourceId("jv");
model = BinaryData.fromObject(model).toObject(VirtualNetworkSubnetUsageParameter.class);
- Assertions.assertEquals("jkqa", model.virtualNetworkArmResourceId());
+ Assertions.assertEquals("jv", model.virtualNetworkArmResourceId());
}
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageResultInnerTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageResultInnerTests.java
index da179f8cadd06..884be31835b87 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageResultInnerTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsageResultInnerTests.java
@@ -11,7 +11,7 @@ public final class VirtualNetworkSubnetUsageResultInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
VirtualNetworkSubnetUsageResultInner model = BinaryData.fromString(
- "{\"delegatedSubnetsUsage\":[{\"subnetName\":\"slesjcbhernnt\",\"usage\":721518754958009281},{\"subnetName\":\"cv\",\"usage\":3139399735496716073},{\"subnetName\":\"behwagohb\",\"usage\":4128252170970600631},{\"subnetName\":\"rqemvvhmxt\",\"usage\":2260254657949075974}],\"location\":\"tac\",\"subscriptionId\":\"bj\"}")
+ "{\"delegatedSubnetsUsage\":[{\"subnetName\":\"wkslir\",\"usage\":1648418859978390426},{\"subnetName\":\"vydfceacvlhvygdy\",\"usage\":2478564510622036028},{\"subnetName\":\"twnawjslbiwkojgc\",\"usage\":2684891506891853322}],\"location\":\"mznbaeqphch\",\"subscriptionId\":\"rn\"}")
.toObject(VirtualNetworkSubnetUsageResultInner.class);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsagesExecuteWithResponseMockTests.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsagesExecuteWithResponseMockTests.java
index e51fc336fbb18..4ec3c76129d02 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsagesExecuteWithResponseMockTests.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/test/java/com/azure/resourcemanager/postgresqlflexibleserver/generated/VirtualNetworkSubnetUsagesExecuteWithResponseMockTests.java
@@ -21,7 +21,7 @@ public final class VirtualNetworkSubnetUsagesExecuteWithResponseMockTests {
@Test
public void testExecuteWithResponse() throws Exception {
String responseStr
- = "{\"delegatedSubnetsUsage\":[{\"subnetName\":\"qaxsipietgbebjf\",\"usage\":7305176553437357835},{\"subnetName\":\"ichdlpn\",\"usage\":7943096772032502565}],\"location\":\"tnbatzvi\",\"subscriptionId\":\"owsaaelcattcjuh\"}";
+ = "{\"delegatedSubnetsUsage\":[{\"subnetName\":\"leziunjxdfzant\",\"usage\":7973738400365966100},{\"subnetName\":\"yamlbnse\",\"usage\":6409376933110730693},{\"subnetName\":\"vpilg\",\"usage\":2023691682107427976}],\"location\":\"agmdit\",\"subscriptionId\":\"eiookjbsah\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,8 +31,8 @@ public void testExecuteWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
VirtualNetworkSubnetUsageResult response = manager.virtualNetworkSubnetUsages()
- .executeWithResponse("oihiqak",
- new VirtualNetworkSubnetUsageParameter().withVirtualNetworkArmResourceId("iwfbrkwpzdqtvhcs"),
+ .executeWithResponse("qbctqha",
+ new VirtualNetworkSubnetUsageParameter().withVirtualNetworkArmResourceId("jrwdkqz"),
com.azure.core.util.Context.NONE)
.getValue();