diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md
index c8374fa740d0..3495eb6d466d 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/CHANGELOG.md
@@ -1,14 +1,415 @@
# Release History
-## 2.1.0-beta.1 (Unreleased)
+## 2.1.0-beta.1 (2026-01-20)
-### Features Added
+- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model. Package api-version 2026-01-01-preview. 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.BackupAutomaticAndOnDemandList` was removed
+
+#### `models.ServerList` was removed
+
+#### `models.FirewallRuleList` was removed
+
+#### `models.PrivateEndpointConnectionList` was removed
+
+#### `models.DatabaseList` was removed
+
+#### `models.TuningOptionsList` was removed
+
+#### `models.ObjectRecommendationList` was removed
+
+#### `models.AdvancedThreatProtectionSettingsList` was removed
+
+#### `models.AdministratorMicrosoftEntraList` was removed
+
+#### `models.ConfigurationList` was removed
+
+#### `models.OperationList` was removed
+
+#### `models.PrivateLinkResourceList` was removed
+
+#### `models.MigrationList` was removed
+
+#### `models.CapabilityList` was removed
+
+#### `models.QuotaUsageList` was removed
+
+#### `models.VirtualEndpointsList` was removed
+
+#### `models.CapturedLogList` was removed
+
+#### `models.LtrServerBackupOperationList` was removed
+
+#### `models.Backup` was modified
+
+* `validate()` was removed
+
+#### `models.StorageTierCapability` was modified
+
+* `StorageTierCapability()` was changed to private access
+* `validate()` was removed
+
+#### `models.HighAvailability` was modified
+
+* `withMode(models.HighAvailabilityMode)` was removed
+* `models.HighAvailabilityMode mode()` -> `models.PostgreSqlFlexibleServerHighAvailabilityMode mode()`
+* `validate()` was removed
+
+#### `models.VirtualNetworkSubnetUsageParameter` was modified
+
+* `validate()` was removed
+
+#### `models.ImpactRecord` was modified
+
+* `ImpactRecord()` was changed to private access
+* `withAbsoluteValue(java.lang.Double)` was removed
+* `withDimensionName(java.lang.String)` was removed
+* `withQueryId(java.lang.Long)` was removed
+* `validate()` was removed
+* `withUnit(java.lang.String)` was removed
+
+#### `models.Replica` was modified
+
+* `validate()` was removed
+
+#### `models.ObjectRecommendationDetails` was modified
+
+* `ObjectRecommendationDetails()` was changed to private access
+* `withDatabaseName(java.lang.String)` was removed
+* `withSchema(java.lang.String)` was removed
+* `withIndexType(java.lang.String)` was removed
+* `withIncludedColumns(java.util.List)` was removed
+* `withTable(java.lang.String)` was removed
+* `withIndexColumns(java.util.List)` was removed
+* `withIndexName(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.CheckNameAvailabilityResponse` was modified
+
+* `models.CheckNameAvailabilityResponse withMessage(java.lang.String)` -> `models.CheckNameAvailabilityResponse withMessage(java.lang.String)`
+* `models.CheckNameAvailabilityResponse withReason(models.CheckNameAvailabilityReason)` -> `models.CheckNameAvailabilityResponse withReason(models.CheckNameAvailabilityReason)`
+* `validate()` was removed
+* `models.CheckNameAvailabilityResponse withNameAvailable(java.lang.Boolean)` -> `models.CheckNameAvailabilityResponse withNameAvailable(java.lang.Boolean)`
+
+#### `models.HighAvailabilityForPatch` was modified
+
+* `models.HighAvailabilityMode mode()` -> `models.PostgreSqlFlexibleServerHighAvailabilityMode mode()`
+* `withMode(models.HighAvailabilityMode)` was removed
+* `validate()` was removed
+
+#### `models.NameProperty` was modified
+
+* `NameProperty()` was changed to private access
+* `withLocalizedValue(java.lang.String)` was removed
+* `validate()` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.MigrationResourceForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.FastProvisioningEditionCapability` was modified
+
+* `FastProvisioningEditionCapability()` was changed to private access
+* `validate()` was removed
+
+#### `models.SkuForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.Storage` was modified
+
+* `validate()` was removed
+
+#### `models.UserIdentity` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `validate()` was removed
+
+#### `models.MaintenanceWindowForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.PrivateLinkServiceConnectionState` was modified
+
+* `validate()` was removed
+
+#### `models.AuthConfigForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.UserAssignedIdentity` was modified
+
+* `validate()` was removed
+
+#### `models.ObjectRecommendationPropertiesImplementationDetails` was modified
+
+* `ObjectRecommendationPropertiesImplementationDetails()` was changed to private access
+* `withScript(java.lang.String)` was removed
+* `withMethod(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.DelegatedSubnetUsage` was modified
+
+* `DelegatedSubnetUsage()` was changed to private access
+* `validate()` was removed
+
+#### `models.MigrationStatus` was modified
+
+* `MigrationStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.StorageMbCapability` was modified
+
+* `StorageMbCapability()` was changed to private access
+* `validate()` was removed
+
+#### `models.SupportedFeature` was modified
+
+* `SupportedFeature()` was changed to private access
+* `validate()` was removed
+
+#### `models.ServerSku` was modified
+
+* `ServerSku()` was changed to private access
+* `validate()` was removed
+* `withTier(models.SkuTier)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.PrivateEndpoint` was modified
+
+* `validate()` was removed
+
+#### `models.BackupStoreDetails` was modified
+
+* `validate()` was removed
+
+#### `models.AdministratorMicrosoftEntraAdd` was modified
+
+* `validate()` was removed
+
+#### `models.DatabaseMigrationState` was modified
+
+* `DatabaseMigrationState()` was changed to private access
+* `validate()` was removed
+* `withEndedOn(java.time.OffsetDateTime)` was removed
+* `withFullLoadCompletedTables(java.lang.Integer)` was removed
+* `withIncomingChanges(java.lang.Integer)` was removed
+* `withMigrationOperation(java.lang.String)` was removed
+* `withCdcInsertCounter(java.lang.Integer)` was removed
+* `withAppliedChanges(java.lang.Integer)` was removed
+* `withStartedOn(java.time.OffsetDateTime)` was removed
+* `withMessage(java.lang.String)` was removed
+* `withMigrationState(models.MigrationDatabaseState)` was removed
+* `withFullLoadQueuedTables(java.lang.Integer)` was removed
+* `withFullLoadErroredTables(java.lang.Integer)` was removed
+* `withCdcUpdateCounter(java.lang.Integer)` was removed
+* `withFullLoadLoadingTables(java.lang.Integer)` was removed
+* `withDatabaseName(java.lang.String)` was removed
+* `withLatency(java.lang.Integer)` was removed
+* `withCdcDeleteCounter(java.lang.Integer)` was removed
+
+#### `models.CapabilityBase` was modified
+
+* `validate()` was removed
+
+#### `models.DataEncryption` was modified
+
+* `withGeoBackupEncryptionKeyStatus(models.EncryptionKeyStatus)` was removed
+* `validate()` was removed
+* `withPrimaryEncryptionKeyStatus(models.EncryptionKeyStatus)` was removed
+
+#### `models.RestartParameter` was modified
+
+* `validate()` was removed
+
+#### `models.ServerVersionCapability` was modified
+
+* `ServerVersionCapability()` was changed to private access
+* `validate()` was removed
+
+#### `models.BackupForPatch` was modified
+
+* `validate()` was removed
+* `withGeoRedundantBackup(models.GeographicallyRedundantBackup)` was removed
+
+#### `models.ValidationDetails` was modified
+
+* `ValidationDetails()` was changed to private access
+* `withServerLevelValidationDetails(java.util.List)` was removed
+* `validate()` was removed
+* `withValidationEndTimeInUtc(java.time.OffsetDateTime)` was removed
+* `withValidationStartTimeInUtc(java.time.OffsetDateTime)` was removed
+* `withDbLevelValidationDetails(java.util.List)` was removed
+* `withStatus(models.ValidationState)` was removed
+
+#### `models.ServerForPatch` was modified
+
+* `validate()` was removed
+* `withAdministratorLogin(java.lang.String)` was removed
+
+#### `models.BackupsLongTermRetentionRequest` was modified
+
+* `validate()` was removed
+
+#### `models.Cluster` was modified
+
+* `validate()` was removed
+
+#### `models.VirtualEndpointResourceForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.BackupRequestBase` was modified
+
+* `validate()` was removed
+
+#### `models.ServerSkuCapability` was modified
+
+* `ServerSkuCapability()` was changed to private access
+* `validate()` was removed
+
+#### `models.ValidationMessage` was modified
+
+* `ValidationMessage()` was changed to private access
+* `validate()` was removed
+* `withState(models.ValidationState)` was removed
+* `withMessage(java.lang.String)` was removed
+
+#### `models.BackupsLongTermRetentionsCheckPrerequisitesHeaders` was modified
+
+* `withXMsRequestId(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.ConfigurationForUpdate` was modified
+
+* `validate()` was removed
+
+#### `models.AdminCredentialsForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.MaintenanceWindow` was modified
+
+* `validate()` was removed
+
+#### `models.Network` was modified
+
+* `validate()` was removed
+
+#### `models.BackupSettings` was modified
+
+* `validate()` was removed
+
+#### `models.Sku` was modified
+
+* `validate()` was removed
+
+#### `models.MigrationSecretParametersForPatch` was modified
+
+* `validate()` was removed
+
+#### `models.ValidationSummaryItem` was modified
+
+* `ValidationSummaryItem()` was changed to private access
+* `withType(java.lang.String)` was removed
+* `withMessages(java.util.List)` was removed
+* `validate()` was removed
+* `withState(models.ValidationState)` was removed
+
+#### `models.LtrPreBackupRequest` was modified
+
+* `validate()` was removed
+
+#### `models.CheckNameAvailabilityRequest` was modified
+
+* `validate()` was removed
+
+#### `models.MigrationSecretParameters` was modified
+
+* `validate()` was removed
+
+#### `models.DbLevelValidationStatus` was modified
+
+* `DbLevelValidationStatus()` was changed to private access
+* `withStartedOn(java.time.OffsetDateTime)` was removed
+* `validate()` was removed
+* `withDatabaseName(java.lang.String)` was removed
+* `withEndedOn(java.time.OffsetDateTime)` was removed
+* `withSummary(java.util.List)` was removed
+
+#### `models.StorageEditionCapability` was modified
+
+* `StorageEditionCapability()` was changed to private access
+* `validate()` was removed
+
+#### `models.DbServerMetadata` was modified
+
+* `DbServerMetadata()` was changed to private access
+* `withStorageMb(java.lang.Integer)` was removed
+* `validate()` was removed
+* `withVersion(java.lang.String)` was removed
+* `withSku(models.ServerSku)` was removed
+
+#### `models.AdminCredentials` was modified
+
+* `validate()` was removed
+
+#### `models.ObjectRecommendationPropertiesAnalyzedWorkload` was modified
+
+* `ObjectRecommendationPropertiesAnalyzedWorkload()` was changed to private access
+* `withEndTime(java.time.OffsetDateTime)` was removed
+* `withQueryCount(java.lang.Integer)` was removed
+* `validate()` was removed
+* `withStartTime(java.time.OffsetDateTime)` was removed
+
+#### `models.AuthConfig` was modified
+
+* `validate()` was removed
+
+#### `models.MigrationSubstateDetails` was modified
+
+* `MigrationSubstateDetails()` was changed to private access
+* `withDbDetails(java.util.Map)` was removed
+* `withValidationDetails(models.ValidationDetails)` was removed
+* `validate()` was removed
+
+#### `models.ServerEditionCapability` was modified
+
+* `ServerEditionCapability()` was changed to private access
+* `validate()` was removed
+
+### Features Added
+
+* `models.MigrateNetworkStatus` was added
+
+* `models.NetworkMigrationState` was added
+
+* `models.PostgreSqlFlexibleServerHighAvailabilityMode` was added
+
+#### `models.HighAvailability` was modified
+
+* `withMode(models.PostgreSqlFlexibleServerHighAvailabilityMode)` was added
+
+#### `models.Servers` was modified
+
+* `migrateNetworkMode(java.lang.String,java.lang.String)` was added
+* `migrateNetworkMode(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.HighAvailabilityForPatch` was modified
+
+* `withMode(models.PostgreSqlFlexibleServerHighAvailabilityMode)` was added
+
+#### `models.Server` was modified
-### Other Changes
+* `migrateNetworkMode()` was added
+* `migrateNetworkMode(com.azure.core.util.Context)` was added
## 2.0.0 (2025-11-21)
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/README.md b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/README.md
index a258ac45fa91..1441b4a0db85 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 Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2025-08-01. 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 Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model. Package api-version 2026-01-01-preview. 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
- 2.0.0
+ 2.1.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -78,17 +78,17 @@ server = postgreSqlManager.servers()
.withAdministratorLogin(adminName)
.withAdministratorLoginPassword(adminPwd)
.withSku(new Sku().withName("Standard_D2ds_v4").withTier(SkuTier.GENERAL_PURPOSE))
- .withAuthConfig(new AuthConfig().withActiveDirectoryAuth(MicrosoftEntraAuth.DISABLED)
+ .withAuthConfig(new AuthConfig().withActiveDirectoryAuth(MicrosoftEntraAuth.DISABLED)
.withPasswordAuth(PasswordBasedAuth.ENABLED))
- .withIdentity(new UserAssignedIdentity().withType(IdentityType.NONE))
- .withDataEncryption(new DataEncryption().withType(DataEncryptionType.SYSTEM_MANAGED))
- .withVersion(PostgresMajorVersion.ONE_FOUR)
+ .withIdentity(new UserAssignedIdentity().withType(IdentityType.NONE))
+ .withDataEncryption(new DataEncryption().withType(DataEncryptionType.SYSTEM_MANAGED))
+ .withVersion(PostgresMajorVersion.ONE_FOUR)
.withAvailabilityZone("2")
.withStorage(new Storage().withStorageSizeGB(128))
- .withBackup(new Backup().withGeoRedundantBackup(GeographicallyRedundantBackup.DISABLED)
+ .withBackup(new Backup().withGeoRedundantBackup(GeographicallyRedundantBackup.DISABLED)
.withBackupRetentionDays(7))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.SAME_ZONE))
- .withReplicationRole(ReplicationRole.PRIMARY)
+ .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.SAME_ZONE))
+ .withReplicationRole(ReplicationRole.PRIMARY)
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md)
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md
index 4643e63aa74d..39cca1bf9839 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/SAMPLE.md
@@ -109,6 +109,7 @@
- [GetByResourceGroup](#servers_getbyresourcegroup)
- [List](#servers_list)
- [ListByResourceGroup](#servers_listbyresourcegroup)
+- [MigrateNetworkMode](#servers_migratenetworkmode)
- [Restart](#servers_restart)
- [Start](#servers_start)
- [Stop](#servers_stop)
@@ -141,9 +142,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.PrincipalType;
*/
public final class AdministratorsMicrosoftEntraCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * AdministratorsMicrosoftEntraAdd.json
+ * x-ms-original-file: 2026-01-01-preview/AdministratorsMicrosoftEntraAdd.json
*/
/**
* Sample code: Add a server administrator associated to a Microsoft Entra principal.
@@ -171,9 +170,7 @@ public final class AdministratorsMicrosoftEntraCreateOrUpdateSamples {
*/
public final class AdministratorsMicrosoftEntraDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * AdministratorsMicrosoftEntraDelete.json
+ * x-ms-original-file: 2026-01-01-preview/AdministratorsMicrosoftEntraDelete.json
*/
/**
* Sample code: Delete a server administrator associated to a Microsoft Entra principal.
@@ -197,9 +194,7 @@ public final class AdministratorsMicrosoftEntraDeleteSamples {
*/
public final class AdministratorsMicrosoftEntraGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * AdministratorsMicrosoftEntraGet.json
+ * x-ms-original-file: 2026-01-01-preview/AdministratorsMicrosoftEntraGet.json
*/
/**
* Sample code: Get information about a server administrator associated to a Microsoft Entra principal.
@@ -223,9 +218,7 @@ public final class AdministratorsMicrosoftEntraGetSamples {
*/
public final class AdministratorsMicrosoftEntraListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * AdministratorsMicrosoftEntraListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/AdministratorsMicrosoftEntraListByServer.json
*/
/**
* Sample code: List information about all server administrators associated to Microsoft Entra principals.
@@ -250,9 +243,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.ThreatProtectio
*/
public final class AdvancedThreatProtectionSettingsGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * AdvancedThreatProtectionSettingsGet.json
+ * x-ms-original-file: 2026-01-01-preview/AdvancedThreatProtectionSettingsGet.json
*/
/**
* Sample code: Get state of advanced threat protection settings for a server.
@@ -276,9 +267,7 @@ public final class AdvancedThreatProtectionSettingsGetSamples {
*/
public final class AdvancedThreatProtectionSettingsListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * AdvancedThreatProtectionSettingsListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/AdvancedThreatProtectionSettingsListByServer.json
*/
/**
* Sample code: List state of advanced threat protection settings for a server.
@@ -301,9 +290,7 @@ public final class AdvancedThreatProtectionSettingsListByServerSamples {
*/
public final class BackupsAutomaticAndOnDemandCreateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsAutomaticAndOnDemandCreate.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsAutomaticAndOnDemandCreate.json
*/
/**
* Sample code: Create an on demand backup of a server.
@@ -327,9 +314,7 @@ public final class BackupsAutomaticAndOnDemandCreateSamples {
*/
public final class BackupsAutomaticAndOnDemandDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsAutomaticAndOnDemandDelete.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsAutomaticAndOnDemandDelete.json
*/
/**
* Sample code: Delete an on demand backup, given its name.
@@ -353,9 +338,7 @@ public final class BackupsAutomaticAndOnDemandDeleteSamples {
*/
public final class BackupsAutomaticAndOnDemandGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsAutomaticAndOnDemandGet.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsAutomaticAndOnDemandGet.json
*/
/**
* Sample code: Get an on demand backup, given its name.
@@ -379,9 +362,7 @@ public final class BackupsAutomaticAndOnDemandGetSamples {
*/
public final class BackupsAutomaticAndOnDemandListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsAutomaticAndOnDemandListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsAutomaticAndOnDemandListByServer.json
*/
/**
* Sample code: List all available backups of a server.
@@ -407,9 +388,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.LtrPreBackupReq
*/
public final class BackupsLongTermRetentionCheckPrerequisitesSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsLongTermRetentionCheckPrerequisites.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsLongTermRetentionCheckPrerequisites.json
*/
/**
* Sample code: Perform all checks required for a long term retention backup operation to succeed.
@@ -434,9 +413,7 @@ public final class BackupsLongTermRetentionCheckPrerequisitesSamples {
*/
public final class BackupsLongTermRetentionGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsLongTermRetentionGet.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsLongTermRetentionGet.json
*/
/**
* Sample code: Get the results of a long retention backup operation for a server.
@@ -460,9 +437,7 @@ public final class BackupsLongTermRetentionGetSamples {
*/
public final class BackupsLongTermRetentionListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsLongTermRetentionListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsLongTermRetentionListByServer.json
*/
/**
* Sample code: List the results of the long term retention backup operations for a server.
@@ -490,9 +465,7 @@ import java.util.Arrays;
*/
public final class BackupsLongTermRetentionStartSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * BackupsLongTermRetentionStart.json
+ * x-ms-original-file: 2026-01-01-preview/BackupsLongTermRetentionStart.json
*/
/**
* Sample code: Initiate a long term retention backup.
@@ -519,9 +492,7 @@ public final class BackupsLongTermRetentionStartSamples {
*/
public final class CapabilitiesByLocationListSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * CapabilitiesByLocationList.json
+ * x-ms-original-file: 2026-01-01-preview/CapabilitiesByLocationList.json
*/
/**
* Sample code: List the capabilities available in a given location for a specific subscription.
@@ -543,9 +514,7 @@ public final class CapabilitiesByLocationListSamples {
*/
public final class CapabilitiesByServerListSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * CapabilitiesByServerList.json
+ * x-ms-original-file: 2026-01-01-preview/CapabilitiesByServerList.json
*/
/**
* Sample code: List the capabilities available for a given server.
@@ -567,9 +536,7 @@ public final class CapabilitiesByServerListSamples {
*/
public final class CapturedLogsListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * CapturedLogsListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/CapturedLogsListByServer.json
*/
/**
* Sample code: List all captured logs for download in a server.
@@ -591,9 +558,7 @@ public final class CapturedLogsListByServerSamples {
*/
public final class ConfigurationsGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ConfigurationsGet.
- * json
+ * x-ms-original-file: 2026-01-01-preview/ConfigurationsGet.json
*/
/**
* Sample code: Get information about a specific configuration (also known as server parameter) of a server.
@@ -616,9 +581,7 @@ public final class ConfigurationsGetSamples {
*/
public final class ConfigurationsListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ConfigurationsListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/ConfigurationsListByServer.json
*/
/**
* Sample code: List all configurations (also known as server parameters) of a server.
@@ -641,9 +604,7 @@ public final class ConfigurationsListByServerSamples {
*/
public final class ConfigurationsPutSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ConfigurationsUpdateUsingPut.json
+ * x-ms-original-file: 2026-01-01-preview/ConfigurationsUpdateUsingPut.json
*/
/**
* Sample code: Update, using Put verb, the value assigned to a specific modifiable configuration (also known as
@@ -674,9 +635,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.Configuration;
*/
public final class ConfigurationsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ConfigurationsUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/ConfigurationsUpdate.json
*/
/**
* Sample code: Update the value assigned to a specific modifiable configuration (also known as server parameter) of
@@ -703,9 +662,7 @@ public final class ConfigurationsUpdateSamples {
*/
public final class DatabasesCreateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/DatabasesCreate.
- * json
+ * x-ms-original-file: 2026-01-01-preview/DatabasesCreate.json
*/
/**
* Sample code: Create a database.
@@ -731,9 +688,7 @@ public final class DatabasesCreateSamples {
*/
public final class DatabasesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/DatabasesDelete.
- * json
+ * x-ms-original-file: 2026-01-01-preview/DatabasesDelete.json
*/
/**
* Sample code: Delete an existing database.
@@ -756,8 +711,7 @@ public final class DatabasesDeleteSamples {
*/
public final class DatabasesGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/DatabasesGet.json
+ * x-ms-original-file: 2026-01-01-preview/DatabasesGet.json
*/
/**
* Sample code: Get information about an existing database.
@@ -781,9 +735,7 @@ public final class DatabasesGetSamples {
*/
public final class DatabasesListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * DatabasesListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/DatabasesListByServer.json
*/
/**
* Sample code: List all databases in a server.
@@ -805,9 +757,7 @@ public final class DatabasesListByServerSamples {
*/
public final class FirewallRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * FirewallRulesCreateOrUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/FirewallRulesCreateOrUpdate.json
*/
/**
* Sample code: Create a new firewall rule or update an existing firewall rule.
@@ -834,9 +784,7 @@ public final class FirewallRulesCreateOrUpdateSamples {
*/
public final class FirewallRulesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * FirewallRulesDelete.json
+ * x-ms-original-file: 2026-01-01-preview/FirewallRulesDelete.json
*/
/**
* Sample code: Delete an existing firewall rule.
@@ -859,9 +807,7 @@ public final class FirewallRulesDeleteSamples {
*/
public final class FirewallRulesGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/FirewallRulesGet.
- * json
+ * x-ms-original-file: 2026-01-01-preview/FirewallRulesGet.json
*/
/**
* Sample code: Get information about a firewall rule in a server.
@@ -885,9 +831,7 @@ public final class FirewallRulesGetSamples {
*/
public final class FirewallRulesListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * FirewallRulesListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/FirewallRulesListByServer.json
*/
/**
* Sample code: List information about all firewall rules in a server.
@@ -909,9 +853,7 @@ public final class FirewallRulesListByServerSamples {
*/
public final class MigrationsCancelSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/MigrationsCancel.
- * json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCancel.json
*/
/**
* Sample code: Cancel an active migration.
@@ -937,9 +879,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.Migratio
*/
public final class MigrationsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCheckNameAvailability.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCheckNameAvailability.json
*/
/**
* Sample code: Check the validity and availability of the given name, to assign it to a new migration.
@@ -975,9 +915,7 @@ import java.util.Arrays;
*/
public final class MigrationsCreateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCreateWithOtherUsers.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreateWithOtherUsers.json
*/
/**
* Sample code: Create a migration specifying user names.
@@ -1004,9 +942,7 @@ public final class MigrationsCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCreateOtherSourceTypesValidateMigrate.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreateOtherSourceTypesValidateMigrate.json
*/
/**
* Sample code: Create a migration with other source type for validating and migrating.
@@ -1034,9 +970,7 @@ public final class MigrationsCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCreateWithPrivateEndpointServers.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreateWithPrivateEndpointServers.json
*/
/**
* Sample code: Create a migration with private endpoint.
@@ -1064,9 +998,7 @@ public final class MigrationsCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/MigrationsCreate.
- * json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreate.json
*/
/**
* Sample code: Create a migration.
@@ -1091,9 +1023,7 @@ public final class MigrationsCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCreateWithRoles.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreateWithRoles.json
*/
/**
* Sample code: Create a migration with roles.
@@ -1120,9 +1050,7 @@ public final class MigrationsCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCreateWithFullyQualifiedDomainName.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreateWithFullyQualifiedDomainName.json
*/
/**
* Sample code: Create a migration with fully qualified domain names for source and target servers.
@@ -1150,9 +1078,7 @@ public final class MigrationsCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsCreateValidateOnly.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsCreateValidateOnly.json
*/
/**
* Sample code: Create a migration for validating only.
@@ -1188,9 +1114,7 @@ public final class MigrationsCreateSamples {
*/
public final class MigrationsGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsGetMigrationWithSuccessfulValidationOnly.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsGetMigrationWithSuccessfulValidationOnly.json
*/
/**
* Sample code: Get information about a migration with successful validation only.
@@ -1205,9 +1129,7 @@ public final class MigrationsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsGetMigrationWithSuccessfulValidationAndMigration.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsGetMigrationWithSuccessfulValidationAndMigration.json
*/
/**
* Sample code: Get information about a migration with successful validation and successful migration.
@@ -1222,9 +1144,7 @@ public final class MigrationsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsGetMigrationWithSuccessfulValidationButMigrationFailure.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsGetMigrationWithSuccessfulValidationButMigrationFailure.json
*/
/**
* Sample code: Get information about a migration with successful validation but failed migration.
@@ -1239,9 +1159,7 @@ public final class MigrationsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsGetMigrationWithValidationFailures.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsGetMigrationWithValidationFailures.json
*/
/**
* Sample code: Get information about a migration with validation failures.
@@ -1256,8 +1174,7 @@ public final class MigrationsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/MigrationsGet.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsGet.json
*/
/**
* Sample code: Get information about a migration.
@@ -1283,9 +1200,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationListFi
*/
public final class MigrationsListByTargetServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * MigrationsListByTargetServer.json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsListByTargetServer.json
*/
/**
* Sample code: List all migrations of a target flexible server.
@@ -1312,9 +1227,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.Migration;
*/
public final class MigrationsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/MigrationsUpdate.
- * json
+ * x-ms-original-file: 2026-01-01-preview/MigrationsUpdate.json
*/
/**
* Sample code: Update an existing migration.
@@ -1342,9 +1255,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvaila
*/
public final class NameAvailabilityCheckGloballySamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * NameAvailabilityCheckGlobally.json
+ * x-ms-original-file: 2026-01-01-preview/NameAvailabilityCheckGlobally.json
*/
/**
* Sample code: Check the validity and availability of the given name, to assign it to a new server or to use it as
@@ -1372,9 +1283,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvaila
*/
public final class NameAvailabilityCheckWithLocationSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * NameAvailabilityCheckWithLocation.json
+ * x-ms-original-file: 2026-01-01-preview/NameAvailabilityCheckWithLocation.json
*/
/**
* Sample code: Check the validity and availability of the given name, in the given location, to assign it to a new
@@ -1400,9 +1309,7 @@ public final class NameAvailabilityCheckWithLocationSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/OperationsList.
- * json
+ * x-ms-original-file: 2026-01-01-preview/OperationsList.json
*/
/**
* Sample code: List all available REST API operations.
@@ -1424,9 +1331,7 @@ public final class OperationsListSamples {
*/
public final class PrivateDnsZoneSuffixGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateDnsZoneSuffixGet.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateDnsZoneSuffixGet.json
*/
/**
* Sample code: Get the private DNS suffix.
@@ -1448,9 +1353,7 @@ public final class PrivateDnsZoneSuffixGetSamples {
*/
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateEndpointConnectionsDelete.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateEndpointConnectionsDelete.json
*/
/**
* Sample code: Delete a private endpoint connection.
@@ -1475,9 +1378,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
*/
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateEndpointConnectionsGet.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateEndpointConnectionsGet.json
*/
/**
* Sample code: Get a private endpoint connection.
@@ -1502,9 +1403,7 @@ public final class PrivateEndpointConnectionsGetSamples {
*/
public final class PrivateEndpointConnectionsListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateEndpointConnectionsList.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateEndpointConnectionsList.json
*/
/**
* Sample code: List all private endpoint connections on a server.
@@ -1531,9 +1430,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.PrivateLinkServ
*/
public final class PrivateEndpointConnectionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateEndpointConnectionsUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateEndpointConnectionsUpdate.json
*/
/**
* Sample code: Approve or reject a private endpoint connection.
@@ -1561,9 +1458,7 @@ public final class PrivateEndpointConnectionsUpdateSamples {
*/
public final class PrivateLinkResourcesGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateLinkResourcesGet.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateLinkResourcesGet.json
*/
/**
* Sample code: Gets a private link resource for PostgreSQL.
@@ -1587,9 +1482,7 @@ public final class PrivateLinkResourcesGetSamples {
*/
public final class PrivateLinkResourcesListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * PrivateLinkResourcesList.json
+ * x-ms-original-file: 2026-01-01-preview/PrivateLinkResourcesList.json
*/
/**
* Sample code: Gets private link resources for PostgreSQL.
@@ -1612,9 +1505,7 @@ public final class PrivateLinkResourcesListByServerSamples {
*/
public final class QuotaUsagesListSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * QuotaUsagesForFlexibleServers.json
+ * x-ms-original-file: 2026-01-01-preview/QuotaUsagesForFlexibleServers.json
*/
/**
* Sample code: List of quota usages for servers.
@@ -1636,9 +1527,7 @@ public final class QuotaUsagesListSamples {
*/
public final class ReplicasListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ReplicasListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/ReplicasListByServer.json
*/
/**
* Sample code: List all read replicas of a server.
@@ -1664,11 +1553,11 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.DataEncryption;
import com.azure.resourcemanager.postgresqlflexibleserver.models.DataEncryptionType;
import com.azure.resourcemanager.postgresqlflexibleserver.models.GeographicallyRedundantBackup;
import com.azure.resourcemanager.postgresqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.postgresqlflexibleserver.models.HighAvailabilityMode;
import com.azure.resourcemanager.postgresqlflexibleserver.models.IdentityType;
import com.azure.resourcemanager.postgresqlflexibleserver.models.MicrosoftEntraAuth;
import com.azure.resourcemanager.postgresqlflexibleserver.models.Network;
import com.azure.resourcemanager.postgresqlflexibleserver.models.PasswordBasedAuth;
+import com.azure.resourcemanager.postgresqlflexibleserver.models.PostgreSqlFlexibleServerHighAvailabilityMode;
import com.azure.resourcemanager.postgresqlflexibleserver.models.PostgresMajorVersion;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ServerPublicNetworkAccessState;
import com.azure.resourcemanager.postgresqlflexibleserver.models.Sku;
@@ -1686,9 +1575,7 @@ import java.util.Map;
*/
public final class ServersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateReviveDropped.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateReviveDropped.json
*/
/**
* Sample code: Create a new server using a backup of a server that was deleted or dropped recently.
@@ -1710,8 +1597,7 @@ public final class ServersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateInMicrosoftOwnedVirtualNetworkWithZoneRedundantHighAvailability.json
+ * 2026-01-01-preview/ServersCreateInMicrosoftOwnedVirtualNetworkWithZoneRedundantHighAvailability.json
*/
/**
* Sample code: Create a new server in Microsoft owned virtual network with zone redundant high availability.
@@ -1735,16 +1621,15 @@ public final class ServersCreateOrUpdateSamples {
.withBackup(
new Backup().withBackupRetentionDays(7).withGeoRedundantBackup(GeographicallyRedundantBackup.ENABLED))
.withNetwork(new Network().withPublicNetworkAccess(ServerPublicNetworkAccessState.ENABLED))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.ZONE_REDUNDANT))
+ .withHighAvailability(
+ new HighAvailability().withMode(PostgreSqlFlexibleServerHighAvailabilityMode.ZONE_REDUNDANT))
.withAvailabilityZone("1")
.withCreateMode(CreateMode.CREATE)
.create();
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateGeoRestoreWithDataEncryptionEnabledAutoUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateGeoRestoreWithDataEncryptionEnabledAutoUpdate.json
*/
/**
* Sample code: Create a new server using a restore of a geographically redundant backup of an existing server, with
@@ -1779,9 +1664,7 @@ public final class ServersCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateWithDataEncryptionEnabled.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateWithDataEncryptionEnabled.json
*/
/**
* Sample code: Create a new server with data encryption based on customer managed key.
@@ -1816,16 +1699,15 @@ public final class ServersCreateOrUpdateSamples {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.withPrivateDnsZoneArmResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.ZONE_REDUNDANT))
+ .withHighAvailability(
+ new HighAvailability().withMode(PostgreSqlFlexibleServerHighAvailabilityMode.ZONE_REDUNDANT))
.withAvailabilityZone("1")
.withCreateMode(CreateMode.CREATE)
.create();
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateGeoRestoreWithDataEncryptionEnabled.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateGeoRestoreWithDataEncryptionEnabled.json
*/
/**
* Sample code: Create a new server using a restore of a geographically redundant backup of an existing server, with
@@ -1860,9 +1742,7 @@ public final class ServersCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateReplica.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateReplica.json
*/
/**
* Sample code: Create a read replica of an existing server.
@@ -1892,9 +1772,7 @@ public final class ServersCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateInYourOwnVirtualNetworkWithSameZoneHighAvailability.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateInYourOwnVirtualNetworkWithSameZoneHighAvailability.json
*/
/**
* Sample code: Create a new server in your own virtual network with same zone high availability.
@@ -1921,16 +1799,15 @@ public final class ServersCreateOrUpdateSamples {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.withPrivateDnsZoneArmResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database"))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.SAME_ZONE))
+ .withHighAvailability(
+ new HighAvailability().withMode(PostgreSqlFlexibleServerHighAvailabilityMode.SAME_ZONE))
.withAvailabilityZone("1")
.withCreateMode(CreateMode.CREATE)
.create();
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersClusterCreate.json
+ * x-ms-original-file: 2026-01-01-preview/ServersClusterCreate.json
*/
/**
* Sample code: Create a new elastic cluster.
@@ -1953,16 +1830,15 @@ public final class ServersCreateOrUpdateSamples {
.withBackup(
new Backup().withBackupRetentionDays(7).withGeoRedundantBackup(GeographicallyRedundantBackup.DISABLED))
.withNetwork(new Network().withPublicNetworkAccess(ServerPublicNetworkAccessState.DISABLED))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.fromString("Disabled")))
+ .withHighAvailability(
+ new HighAvailability().withMode(PostgreSqlFlexibleServerHighAvailabilityMode.DISABLED))
.withCreateMode(CreateMode.CREATE)
.withCluster(new Cluster().withClusterSize(2).withDefaultDatabaseName("clusterdb"))
.create();
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreatePointInTimeRestore.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreatePointInTimeRestore.json
*/
/**
* Sample code: Create a new server using a point in time restore of a backup of an existing server.
@@ -1984,8 +1860,7 @@ public final class ServersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateWithMicrosoftEntraEnabledInYourOwnVirtualNetworkWithoutHighAvailability.json
+ * 2026-01-01-preview/ServersCreateWithMicrosoftEntraEnabledInYourOwnVirtualNetworkWithoutHighAvailability.json
*/
/**
* Sample code: Create a new server with Microsoft Entra authentication enabled in your own virtual network and
@@ -2017,16 +1892,15 @@ public final class ServersCreateOrUpdateSamples {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.withPrivateDnsZoneArmResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.fromString("Disabled")))
+ .withHighAvailability(
+ new HighAvailability().withMode(PostgreSqlFlexibleServerHighAvailabilityMode.DISABLED))
.withAvailabilityZone("1")
.withCreateMode(CreateMode.CREATE)
.create();
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersCreateWithDataEncryptionEnabledAutoUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/ServersCreateWithDataEncryptionEnabledAutoUpdate.json
*/
/**
* Sample code: Create a new server with data encryption based on customer managed key with automatic key version
@@ -2062,7 +1936,8 @@ public final class ServersCreateOrUpdateSamples {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.withPrivateDnsZoneArmResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"))
- .withHighAvailability(new HighAvailability().withMode(HighAvailabilityMode.ZONE_REDUNDANT))
+ .withHighAvailability(
+ new HighAvailability().withMode(PostgreSqlFlexibleServerHighAvailabilityMode.ZONE_REDUNDANT))
.withAvailabilityZone("1")
.withCreateMode(CreateMode.CREATE)
.create();
@@ -2090,8 +1965,7 @@ public final class ServersCreateOrUpdateSamples {
*/
public final class ServersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersDelete.json
+ * x-ms-original-file: 2026-01-01-preview/ServersDelete.json
*/
/**
* Sample code: Delete or drop an existing server.
@@ -2113,9 +1987,7 @@ public final class ServersDeleteSamples {
*/
public final class ServersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersGetWithPrivateEndpoints.json
+ * x-ms-original-file: 2026-01-01-preview/ServersGetWithPrivateEndpoints.json
*/
/**
* Sample code: Get information about an existing server that isn't integrated into a virtual network provided by
@@ -2131,9 +2003,7 @@ public final class ServersGetByResourceGroupSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersGetWithVnet
- * .json
+ * x-ms-original-file: 2026-01-01-preview/ServersGetWithVnet.json
*/
/**
* Sample code: Get information about an existing server that is integrated into a virtual network provided by
@@ -2148,8 +2018,7 @@ public final class ServersGetByResourceGroupSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersGet.json
+ * x-ms-original-file: 2026-01-01-preview/ServersGet.json
*/
/**
* Sample code: Get information about an existing server.
@@ -2172,9 +2041,7 @@ public final class ServersGetByResourceGroupSamples {
*/
public final class ServersListSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersListBySubscription.json
+ * x-ms-original-file: 2026-01-01-preview/ServersListBySubscription.json
*/
/**
* Sample code: List all servers in a subscription.
@@ -2196,9 +2063,7 @@ public final class ServersListSamples {
*/
public final class ServersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersListByResourceGroup.json
+ * x-ms-original-file: 2026-01-01-preview/ServersListByResourceGroup.json
*/
/**
* Sample code: List all servers in a resource group.
@@ -2212,6 +2077,28 @@ public final class ServersListByResourceGroupSamples {
}
```
+### Servers_MigrateNetworkMode
+
+```java
+/**
+ * Samples for Servers MigrateNetworkMode.
+ */
+public final class ServersMigrateNetworkModeSamples {
+ /*
+ * x-ms-original-file: 2026-01-01-preview/ServersMigrateNetworkMode.json
+ */
+ /**
+ * Sample code: Migrate server network configuration.
+ *
+ * @param manager Entry point to PostgreSqlManager.
+ */
+ public static void migrateServerNetworkConfiguration(
+ com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
+ manager.servers().migrateNetworkMode("exampleresourcegroup", "exampleserver", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Servers_Restart
```java
@@ -2223,9 +2110,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.RestartParamete
*/
public final class ServersRestartSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersRestartWithFailover.json
+ * x-ms-original-file: 2026-01-01-preview/ServersRestartWithFailover.json
*/
/**
* Sample code: Restart PostgreSQL database engine in a server with a forced failover to standby server.
@@ -2241,9 +2126,7 @@ public final class ServersRestartSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersRestart.
- * json
+ * x-ms-original-file: 2026-01-01-preview/ServersRestart.json
*/
/**
* Sample code: Restart PostgreSQL database engine in a server.
@@ -2265,8 +2148,7 @@ public final class ServersRestartSamples {
*/
public final class ServersStartSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersStart.json
+ * x-ms-original-file: 2026-01-01-preview/ServersStart.json
*/
/**
* Sample code: Start a stopped server.
@@ -2288,8 +2170,7 @@ public final class ServersStartSamples {
*/
public final class ServersStopSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersStop.json
+ * x-ms-original-file: 2026-01-01-preview/ServersStop.json
*/
/**
* Sample code: Stop a server.
@@ -2334,9 +2215,7 @@ import java.util.Map;
*/
public final class ServersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersPromoteReplicaAsForcedSwitchover.json
+ * x-ms-original-file: 2026-01-01-preview/ServersPromoteReplicaAsForcedSwitchover.json
*/
/**
* Sample code: Switch over a read replica to primary server with forced data synchronization. Meaning that it
@@ -2358,9 +2237,7 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersPromoteReplicaAsPlannedSwitchover.json
+ * x-ms-original-file: 2026-01-01-preview/ServersPromoteReplicaAsPlannedSwitchover.json
*/
/**
* Sample code: Switch over a read replica to primary server with planned data synchronization. Meaning that it
@@ -2382,38 +2259,7 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersUpdateWithMicrosoftEntraEnabled.json
- */
- /**
- * Sample code: Update an existing server with Microsoft Entra authentication enabled.
- *
- * @param manager Entry point to PostgreSqlManager.
- */
- public static void updateAnExistingServerWithMicrosoftEntraAuthenticationEnabled(
- com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
- Server resource = manager.servers()
- .getByResourceGroupWithResponse("exampleresourcegroup", "exampleserver", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withSku(new SkuForPatch().withName("Standard_D8s_v3").withTier(SkuTier.GENERAL_PURPOSE))
- .withAdministratorLoginPassword("examplenewpassword")
- .withStorage(new Storage().withStorageSizeGB(1024)
- .withAutoGrow(StorageAutoGrow.DISABLED)
- .withTier(AzureManagedDiskPerformanceTier.P30))
- .withBackup(new BackupForPatch().withBackupRetentionDays(20))
- .withAuthConfig(new AuthConfigForPatch().withActiveDirectoryAuth(MicrosoftEntraAuth.ENABLED)
- .withPasswordAuth(PasswordBasedAuth.ENABLED)
- .withTenantId("tttttt-tttt-tttt-tttt-tttttttttttt"))
- .withCreateMode(CreateModeForPatch.UPDATE)
- .apply();
- }
-
- /*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersUpdateWithDataEncryptionEnabledAutoUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/ServersUpdateWithDataEncryptionEnabledAutoUpdate.json
*/
/**
* Sample code: Update an existing server with data encryption based on customer managed key with automatic key
@@ -2447,27 +2293,34 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersUpdateWithMajorVersionUpgrade.json
+ * x-ms-original-file: 2026-01-01-preview/ServersUpdateWithMicrosoftEntraEnabled.json
*/
/**
- * Sample code: Update an existing server to upgrade the major version of PostgreSQL database engine.
+ * Sample code: Update an existing server with Microsoft Entra authentication enabled.
*
* @param manager Entry point to PostgreSqlManager.
*/
- public static void updateAnExistingServerToUpgradeTheMajorVersionOfPostgreSQLDatabaseEngine(
+ public static void updateAnExistingServerWithMicrosoftEntraAuthenticationEnabled(
com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
Server resource = manager.servers()
.getByResourceGroupWithResponse("exampleresourcegroup", "exampleserver", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withVersion(PostgresMajorVersion.ONE_SEVEN).withCreateMode(CreateModeForPatch.UPDATE).apply();
+ resource.update()
+ .withSku(new SkuForPatch().withName("Standard_D8s_v3").withTier(SkuTier.GENERAL_PURPOSE))
+ .withAdministratorLoginPassword("examplenewpassword")
+ .withStorage(new Storage().withStorageSizeGB(1024)
+ .withAutoGrow(StorageAutoGrow.DISABLED)
+ .withTier(AzureManagedDiskPerformanceTier.P30))
+ .withBackup(new BackupForPatch().withBackupRetentionDays(20))
+ .withAuthConfig(new AuthConfigForPatch().withActiveDirectoryAuth(MicrosoftEntraAuth.ENABLED)
+ .withPasswordAuth(PasswordBasedAuth.ENABLED)
+ .withTenantId("tttttt-tttt-tttt-tttt-tttttttttttt"))
+ .withCreateMode(CreateModeForPatch.UPDATE)
+ .apply();
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersUpdateWithCustomMaintenanceWindow.json
+ * x-ms-original-file: 2026-01-01-preview/ServersUpdateWithCustomMaintenanceWindow.json
*/
/**
* Sample code: Update an existing server with custom maintenance window.
@@ -2489,9 +2342,7 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersUpdateWithDataEncryptionEnabled.json
+ * x-ms-original-file: 2026-01-01-preview/ServersUpdateWithDataEncryptionEnabled.json
*/
/**
* Sample code: Update an existing server with data encryption based on customer managed key.
@@ -2524,8 +2375,23 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/ServersUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/ServersUpdateWithMajorVersionUpgrade.json
+ */
+ /**
+ * Sample code: Update an existing server to upgrade the major version of PostgreSQL database engine.
+ *
+ * @param manager Entry point to PostgreSqlManager.
+ */
+ public static void updateAnExistingServerToUpgradeTheMajorVersionOfPostgreSQLDatabaseEngine(
+ com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {
+ Server resource = manager.servers()
+ .getByResourceGroupWithResponse("exampleresourcegroup", "exampleserver", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withVersion(PostgresMajorVersion.ONE_SEVEN).withCreateMode(CreateModeForPatch.UPDATE).apply();
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-01-preview/ServersUpdate.json
*/
/**
* Sample code: Update an existing server.
@@ -2549,9 +2415,7 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersPromoteReplicaAsForcedStandaloneServer.json
+ * x-ms-original-file: 2026-01-01-preview/ServersPromoteReplicaAsForcedStandaloneServer.json
*/
/**
* Sample code: Promote a read replica to a standalone server with forced data synchronization. Meaning that it
@@ -2573,9 +2437,7 @@ public final class ServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * ServersPromoteReplicaAsPlannedStandaloneServer.json
+ * x-ms-original-file: 2026-01-01-preview/ServersPromoteReplicaAsPlannedStandaloneServer.json
*/
/**
* Sample code: Promote a read replica to a standalone server with planned data synchronization. Meaning that it
@@ -2620,9 +2482,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.TuningOptionPar
*/
public final class TuningOptionsOperationGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/TuningOptionsGet.
- * json
+ * x-ms-original-file: 2026-01-01-preview/TuningOptionsGet.json
*/
/**
* Sample code: Get the tuning options of a server.
@@ -2646,9 +2506,7 @@ public final class TuningOptionsOperationGetSamples {
*/
public final class TuningOptionsOperationListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * TuningOptionsListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/TuningOptionsListByServer.json
*/
/**
* Sample code: List the tuning options of a server.
@@ -2674,9 +2532,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.TuningOptionPar
*/
public final class TuningOptionsOperationListRecommendationsSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * TuningOptionsListIndexRecommendations.json
+ * x-ms-original-file: 2026-01-01-preview/TuningOptionsListIndexRecommendations.json
*/
/**
* Sample code: List available index recommendations.
@@ -2691,9 +2547,7 @@ public final class TuningOptionsOperationListRecommendationsSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * TuningOptionsListTableRecommendations.json
+ * x-ms-original-file: 2026-01-01-preview/TuningOptionsListTableRecommendations.json
*/
/**
* Sample code: List available table recommendations.
@@ -2708,9 +2562,7 @@ public final class TuningOptionsOperationListRecommendationsSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * TuningOptionsListIndexRecommendationsFilteredForCreateIndex.json
+ * x-ms-original-file: 2026-01-01-preview/TuningOptionsListIndexRecommendationsFilteredForCreateIndex.json
*/
/**
* Sample code: List available index recommendations, filtered to exclusively get those of CREATE INDEX type.
@@ -2725,9 +2577,7 @@ public final class TuningOptionsOperationListRecommendationsSamples {
}
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * TuningOptionsListTableRecommendationsFilteredForAnalyzeTable.json
+ * x-ms-original-file: 2026-01-01-preview/TuningOptionsListTableRecommendationsFilteredForAnalyzeTable.json
*/
/**
* Sample code: List available table recommendations, filtered to exclusively get those of ANALYZE TABLE type.
@@ -2754,9 +2604,7 @@ import java.util.Arrays;
*/
public final class VirtualEndpointsCreateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * VirtualEndpointCreate.json
+ * x-ms-original-file: 2026-01-01-preview/VirtualEndpointCreate.json
*/
/**
* Sample code: Create a pair of virtual endpoints for a server.
@@ -2783,9 +2631,7 @@ public final class VirtualEndpointsCreateSamples {
*/
public final class VirtualEndpointsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * VirtualEndpointDelete.json
+ * x-ms-original-file: 2026-01-01-preview/VirtualEndpointDelete.json
*/
/**
* Sample code: Delete a pair of virtual endpoints.
@@ -2808,9 +2654,7 @@ public final class VirtualEndpointsDeleteSamples {
*/
public final class VirtualEndpointsGetSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * VirtualEndpointsGet.json
+ * x-ms-original-file: 2026-01-01-preview/VirtualEndpointsGet.json
*/
/**
* Sample code: Get information about a pair of virtual endpoints.
@@ -2834,9 +2678,7 @@ public final class VirtualEndpointsGetSamples {
*/
public final class VirtualEndpointsListByServerSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * VirtualEndpointsListByServer.json
+ * x-ms-original-file: 2026-01-01-preview/VirtualEndpointsListByServer.json
*/
/**
* Sample code: List pair of virtual endpoints associated to a server.
@@ -2863,9 +2705,7 @@ import java.util.Arrays;
*/
public final class VirtualEndpointsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * VirtualEndpointUpdate.json
+ * x-ms-original-file: 2026-01-01-preview/VirtualEndpointUpdate.json
*/
/**
* Sample code: Update a pair of virtual endpoints for a server.
@@ -2896,9 +2736,7 @@ import com.azure.resourcemanager.postgresqlflexibleserver.models.VirtualNetworkS
*/
public final class VirtualNetworkSubnetUsageListSamples {
/*
- * x-ms-original-file:
- * specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2025-08-01/examples/
- * VirtualNetworkSubnetUsageList.json
+ * x-ms-original-file: 2026-01-01-preview/VirtualNetworkSubnetUsageList.json
*/
/**
* Sample code: List the virtual network subnet usage for a given virtual network.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml
index 1905a0feab12..01917ff5214f 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -18,7 +18,7 @@
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 Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2025-08-01.
+ 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 Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model. Package api-version 2026-01-01-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
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 0bfe67bdc205..e1de864828d0 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver;
@@ -87,19 +87,11 @@
* log files and configurations with new business model.
*/
public final class PostgreSqlManager {
- private AdministratorsMicrosoftEntras administratorsMicrosoftEntras;
-
- private AdvancedThreatProtectionSettings advancedThreatProtectionSettings;
-
- private ServerThreatProtectionSettings serverThreatProtectionSettings;
-
- private BackupsAutomaticAndOnDemands backupsAutomaticAndOnDemands;
-
- private CapabilitiesByLocations capabilitiesByLocations;
+ private Operations operations;
- private CapabilitiesByServers capabilitiesByServers;
+ private Migrations migrations;
- private CapturedLogs capturedLogs;
+ private Servers servers;
private Configurations configurations;
@@ -107,29 +99,37 @@ public final class PostgreSqlManager {
private FirewallRules firewallRules;
- private BackupsLongTermRetentions backupsLongTermRetentions;
-
- private Migrations migrations;
+ private PrivateEndpointConnections privateEndpointConnections;
- private NameAvailabilities nameAvailabilities;
+ private PrivateLinkResources privateLinkResources;
- private Operations operations;
+ private VirtualEndpoints virtualEndpoints;
- private PrivateDnsZoneSuffixes privateDnsZoneSuffixes;
+ private AdministratorsMicrosoftEntras administratorsMicrosoftEntras;
- private PrivateEndpointConnections privateEndpointConnections;
+ private CapabilitiesByServers capabilitiesByServers;
- private PrivateLinkResources privateLinkResources;
+ private CapturedLogs capturedLogs;
- private QuotaUsages quotaUsages;
+ private BackupsLongTermRetentions backupsLongTermRetentions;
private Replicas replicas;
- private Servers servers;
+ private AdvancedThreatProtectionSettings advancedThreatProtectionSettings;
+
+ private ServerThreatProtectionSettings serverThreatProtectionSettings;
+
+ private BackupsAutomaticAndOnDemands backupsAutomaticAndOnDemands;
private TuningOptionsOperations tuningOptionsOperations;
- private VirtualEndpoints virtualEndpoints;
+ private CapabilitiesByLocations capabilitiesByLocations;
+
+ private NameAvailabilities nameAvailabilities;
+
+ private PrivateDnsZoneSuffixes privateDnsZoneSuffixes;
+
+ private QuotaUsages quotaUsages;
private VirtualNetworkSubnetUsages virtualNetworkSubnetUsages;
@@ -349,93 +349,39 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
}
/**
- * Gets the resource collection API of AdministratorsMicrosoftEntras. It manages AdministratorMicrosoftEntra.
- *
- * @return Resource collection API of AdministratorsMicrosoftEntras.
- */
- public AdministratorsMicrosoftEntras administratorsMicrosoftEntras() {
- if (this.administratorsMicrosoftEntras == null) {
- this.administratorsMicrosoftEntras
- = new AdministratorsMicrosoftEntrasImpl(clientObject.getAdministratorsMicrosoftEntras(), this);
- }
- return administratorsMicrosoftEntras;
- }
-
- /**
- * Gets the resource collection API of AdvancedThreatProtectionSettings.
- *
- * @return Resource collection API of AdvancedThreatProtectionSettings.
- */
- public AdvancedThreatProtectionSettings advancedThreatProtectionSettings() {
- if (this.advancedThreatProtectionSettings == null) {
- this.advancedThreatProtectionSettings
- = new AdvancedThreatProtectionSettingsImpl(clientObject.getAdvancedThreatProtectionSettings(), this);
- }
- return advancedThreatProtectionSettings;
- }
-
- /**
- * Gets the resource collection API of ServerThreatProtectionSettings. It manages
- * AdvancedThreatProtectionSettingsModel.
- *
- * @return Resource collection API of ServerThreatProtectionSettings.
- */
- public ServerThreatProtectionSettings serverThreatProtectionSettings() {
- if (this.serverThreatProtectionSettings == null) {
- this.serverThreatProtectionSettings
- = new ServerThreatProtectionSettingsImpl(clientObject.getServerThreatProtectionSettings(), this);
- }
- return serverThreatProtectionSettings;
- }
-
- /**
- * Gets the resource collection API of BackupsAutomaticAndOnDemands.
- *
- * @return Resource collection API of BackupsAutomaticAndOnDemands.
- */
- public BackupsAutomaticAndOnDemands backupsAutomaticAndOnDemands() {
- if (this.backupsAutomaticAndOnDemands == null) {
- this.backupsAutomaticAndOnDemands
- = new BackupsAutomaticAndOnDemandsImpl(clientObject.getBackupsAutomaticAndOnDemands(), this);
- }
- return backupsAutomaticAndOnDemands;
- }
-
- /**
- * Gets the resource collection API of CapabilitiesByLocations.
+ * Gets the resource collection API of Operations.
*
- * @return Resource collection API of CapabilitiesByLocations.
+ * @return Resource collection API of Operations.
*/
- public CapabilitiesByLocations capabilitiesByLocations() {
- if (this.capabilitiesByLocations == null) {
- this.capabilitiesByLocations
- = new CapabilitiesByLocationsImpl(clientObject.getCapabilitiesByLocations(), this);
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return capabilitiesByLocations;
+ return operations;
}
/**
- * Gets the resource collection API of CapabilitiesByServers.
+ * Gets the resource collection API of Migrations. It manages Migration.
*
- * @return Resource collection API of CapabilitiesByServers.
+ * @return Resource collection API of Migrations.
*/
- public CapabilitiesByServers capabilitiesByServers() {
- if (this.capabilitiesByServers == null) {
- this.capabilitiesByServers = new CapabilitiesByServersImpl(clientObject.getCapabilitiesByServers(), this);
+ public Migrations migrations() {
+ if (this.migrations == null) {
+ this.migrations = new MigrationsImpl(clientObject.getMigrations(), this);
}
- return capabilitiesByServers;
+ return migrations;
}
/**
- * Gets the resource collection API of CapturedLogs.
+ * Gets the resource collection API of Servers. It manages Server.
*
- * @return Resource collection API of CapturedLogs.
+ * @return Resource collection API of Servers.
*/
- public CapturedLogs capturedLogs() {
- if (this.capturedLogs == null) {
- this.capturedLogs = new CapturedLogsImpl(clientObject.getCapturedLogs(), this);
+ public Servers servers() {
+ if (this.servers == null) {
+ this.servers = new ServersImpl(clientObject.getServers(), this);
}
- return capturedLogs;
+ return servers;
}
/**
@@ -475,102 +421,90 @@ public FirewallRules firewallRules() {
}
/**
- * Gets the resource collection API of BackupsLongTermRetentions.
- *
- * @return Resource collection API of BackupsLongTermRetentions.
- */
- public BackupsLongTermRetentions backupsLongTermRetentions() {
- if (this.backupsLongTermRetentions == null) {
- this.backupsLongTermRetentions
- = new BackupsLongTermRetentionsImpl(clientObject.getBackupsLongTermRetentions(), this);
- }
- return backupsLongTermRetentions;
- }
-
- /**
- * Gets the resource collection API of Migrations. It manages Migration.
+ * Gets the resource collection API of PrivateEndpointConnections.
*
- * @return Resource collection API of Migrations.
+ * @return Resource collection API of PrivateEndpointConnections.
*/
- public Migrations migrations() {
- if (this.migrations == null) {
- this.migrations = new MigrationsImpl(clientObject.getMigrations(), this);
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
- return migrations;
+ return privateEndpointConnections;
}
/**
- * Gets the resource collection API of NameAvailabilities.
+ * Gets the resource collection API of PrivateLinkResources.
*
- * @return Resource collection API of NameAvailabilities.
+ * @return Resource collection API of PrivateLinkResources.
*/
- public NameAvailabilities nameAvailabilities() {
- if (this.nameAvailabilities == null) {
- this.nameAvailabilities = new NameAvailabilitiesImpl(clientObject.getNameAvailabilities(), this);
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
- return nameAvailabilities;
+ return privateLinkResources;
}
/**
- * Gets the resource collection API of Operations.
+ * Gets the resource collection API of VirtualEndpoints. It manages VirtualEndpoint.
*
- * @return Resource collection API of Operations.
+ * @return Resource collection API of VirtualEndpoints.
*/
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ public VirtualEndpoints virtualEndpoints() {
+ if (this.virtualEndpoints == null) {
+ this.virtualEndpoints = new VirtualEndpointsImpl(clientObject.getVirtualEndpoints(), this);
}
- return operations;
+ return virtualEndpoints;
}
/**
- * Gets the resource collection API of PrivateDnsZoneSuffixes.
+ * Gets the resource collection API of AdministratorsMicrosoftEntras. It manages AdministratorMicrosoftEntra.
*
- * @return Resource collection API of PrivateDnsZoneSuffixes.
+ * @return Resource collection API of AdministratorsMicrosoftEntras.
*/
- public PrivateDnsZoneSuffixes privateDnsZoneSuffixes() {
- if (this.privateDnsZoneSuffixes == null) {
- this.privateDnsZoneSuffixes
- = new PrivateDnsZoneSuffixesImpl(clientObject.getPrivateDnsZoneSuffixes(), this);
+ public AdministratorsMicrosoftEntras administratorsMicrosoftEntras() {
+ if (this.administratorsMicrosoftEntras == null) {
+ this.administratorsMicrosoftEntras
+ = new AdministratorsMicrosoftEntrasImpl(clientObject.getAdministratorsMicrosoftEntras(), this);
}
- return privateDnsZoneSuffixes;
+ return administratorsMicrosoftEntras;
}
/**
- * Gets the resource collection API of PrivateEndpointConnections.
+ * Gets the resource collection API of CapabilitiesByServers.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of CapabilitiesByServers.
*/
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ public CapabilitiesByServers capabilitiesByServers() {
+ if (this.capabilitiesByServers == null) {
+ this.capabilitiesByServers = new CapabilitiesByServersImpl(clientObject.getCapabilitiesByServers(), this);
}
- return privateEndpointConnections;
+ return capabilitiesByServers;
}
/**
- * Gets the resource collection API of PrivateLinkResources.
+ * Gets the resource collection API of CapturedLogs.
*
- * @return Resource collection API of PrivateLinkResources.
+ * @return Resource collection API of CapturedLogs.
*/
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ public CapturedLogs capturedLogs() {
+ if (this.capturedLogs == null) {
+ this.capturedLogs = new CapturedLogsImpl(clientObject.getCapturedLogs(), this);
}
- return privateLinkResources;
+ return capturedLogs;
}
/**
- * Gets the resource collection API of QuotaUsages.
+ * Gets the resource collection API of BackupsLongTermRetentions.
*
- * @return Resource collection API of QuotaUsages.
+ * @return Resource collection API of BackupsLongTermRetentions.
*/
- public QuotaUsages quotaUsages() {
- if (this.quotaUsages == null) {
- this.quotaUsages = new QuotaUsagesImpl(clientObject.getQuotaUsages(), this);
+ public BackupsLongTermRetentions backupsLongTermRetentions() {
+ if (this.backupsLongTermRetentions == null) {
+ this.backupsLongTermRetentions
+ = new BackupsLongTermRetentionsImpl(clientObject.getBackupsLongTermRetentions(), this);
}
- return quotaUsages;
+ return backupsLongTermRetentions;
}
/**
@@ -586,15 +520,43 @@ public Replicas replicas() {
}
/**
- * Gets the resource collection API of Servers. It manages Server.
+ * Gets the resource collection API of AdvancedThreatProtectionSettings.
*
- * @return Resource collection API of Servers.
+ * @return Resource collection API of AdvancedThreatProtectionSettings.
*/
- public Servers servers() {
- if (this.servers == null) {
- this.servers = new ServersImpl(clientObject.getServers(), this);
+ public AdvancedThreatProtectionSettings advancedThreatProtectionSettings() {
+ if (this.advancedThreatProtectionSettings == null) {
+ this.advancedThreatProtectionSettings
+ = new AdvancedThreatProtectionSettingsImpl(clientObject.getAdvancedThreatProtectionSettings(), this);
}
- return servers;
+ return advancedThreatProtectionSettings;
+ }
+
+ /**
+ * Gets the resource collection API of ServerThreatProtectionSettings. It manages
+ * AdvancedThreatProtectionSettingsModel.
+ *
+ * @return Resource collection API of ServerThreatProtectionSettings.
+ */
+ public ServerThreatProtectionSettings serverThreatProtectionSettings() {
+ if (this.serverThreatProtectionSettings == null) {
+ this.serverThreatProtectionSettings
+ = new ServerThreatProtectionSettingsImpl(clientObject.getServerThreatProtectionSettings(), this);
+ }
+ return serverThreatProtectionSettings;
+ }
+
+ /**
+ * Gets the resource collection API of BackupsAutomaticAndOnDemands.
+ *
+ * @return Resource collection API of BackupsAutomaticAndOnDemands.
+ */
+ public BackupsAutomaticAndOnDemands backupsAutomaticAndOnDemands() {
+ if (this.backupsAutomaticAndOnDemands == null) {
+ this.backupsAutomaticAndOnDemands
+ = new BackupsAutomaticAndOnDemandsImpl(clientObject.getBackupsAutomaticAndOnDemands(), this);
+ }
+ return backupsAutomaticAndOnDemands;
}
/**
@@ -611,15 +573,53 @@ public TuningOptionsOperations tuningOptionsOperations() {
}
/**
- * Gets the resource collection API of VirtualEndpoints. It manages VirtualEndpoint.
+ * Gets the resource collection API of CapabilitiesByLocations.
*
- * @return Resource collection API of VirtualEndpoints.
+ * @return Resource collection API of CapabilitiesByLocations.
*/
- public VirtualEndpoints virtualEndpoints() {
- if (this.virtualEndpoints == null) {
- this.virtualEndpoints = new VirtualEndpointsImpl(clientObject.getVirtualEndpoints(), this);
+ public CapabilitiesByLocations capabilitiesByLocations() {
+ if (this.capabilitiesByLocations == null) {
+ this.capabilitiesByLocations
+ = new CapabilitiesByLocationsImpl(clientObject.getCapabilitiesByLocations(), this);
}
- return virtualEndpoints;
+ return capabilitiesByLocations;
+ }
+
+ /**
+ * Gets the resource collection API of NameAvailabilities.
+ *
+ * @return Resource collection API of NameAvailabilities.
+ */
+ public NameAvailabilities nameAvailabilities() {
+ if (this.nameAvailabilities == null) {
+ this.nameAvailabilities = new NameAvailabilitiesImpl(clientObject.getNameAvailabilities(), this);
+ }
+ return nameAvailabilities;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateDnsZoneSuffixes.
+ *
+ * @return Resource collection API of PrivateDnsZoneSuffixes.
+ */
+ public PrivateDnsZoneSuffixes privateDnsZoneSuffixes() {
+ if (this.privateDnsZoneSuffixes == null) {
+ this.privateDnsZoneSuffixes
+ = new PrivateDnsZoneSuffixesImpl(clientObject.getPrivateDnsZoneSuffixes(), this);
+ }
+ return privateDnsZoneSuffixes;
+ }
+
+ /**
+ * 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;
}
/**
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdministratorsMicrosoftEntrasClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdministratorsMicrosoftEntrasClient.java
index ead2efe4cc2b..613c45cc35cc 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdministratorsMicrosoftEntrasClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdministratorsMicrosoftEntrasClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -23,6 +23,68 @@
* An instance of this class provides access to all the operations defined in AdministratorsMicrosoftEntrasClient.
*/
public interface AdministratorsMicrosoftEntrasClient {
+ /**
+ * Gets information about a server administrator associated to a Microsoft Entra principal.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param objectId Object identifier of the Microsoft Entra principal.
+ * @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 information about a server administrator associated to a Microsoft Entra principal along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String objectId);
+
+ /**
+ * Gets information about a server administrator associated to a Microsoft Entra principal.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param objectId Object identifier of the Microsoft Entra principal.
+ * @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 information about a server administrator associated to a Microsoft Entra principal on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String objectId);
+
+ /**
+ * Gets information about a server administrator associated to a Microsoft Entra principal.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param objectId Object identifier of the Microsoft Entra principal.
+ * @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 information about a server administrator associated to a Microsoft Entra principal along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName,
+ String objectId, Context context);
+
+ /**
+ * Gets information about a server administrator associated to a Microsoft Entra principal.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param objectId Object identifier of the Microsoft Entra principal.
+ * @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 information about a server administrator associated to a Microsoft Entra principal.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AdministratorMicrosoftEntraInner get(String resourceGroupName, String serverName, String objectId);
+
/**
* Creates a new server administrator associated to a Microsoft Entra principal.
*
@@ -34,8 +96,7 @@ public interface AdministratorsMicrosoftEntrasClient {
* @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 administrator associated to a Microsoft Entra principal along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
@@ -52,7 +113,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 administrator associated to a Microsoft Entra principal.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, AdministratorMicrosoftEntraInner> beginCreateOrUpdateAsync(
@@ -69,7 +130,7 @@ PollerFlux, AdministratorMicrosoftE
* @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 administrator associated to a Microsoft Entra principal.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AdministratorMicrosoftEntraInner> beginCreateOrUpdate(
@@ -87,7 +148,7 @@ SyncPoller, AdministratorMicrosoftE
* @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 administrator associated to a Microsoft Entra principal.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AdministratorMicrosoftEntraInner> beginCreateOrUpdate(
@@ -105,7 +166,7 @@ SyncPoller, AdministratorMicrosoftE
* @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 administrator associated to a Microsoft Entra principal on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String serverName,
@@ -122,7 +183,7 @@ Mono createOrUpdateAsync(String resourceGroupN
* @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 administrator associated to a Microsoft Entra principal.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AdministratorMicrosoftEntraInner createOrUpdate(String resourceGroupName, String serverName, String objectId,
@@ -140,7 +201,7 @@ AdministratorMicrosoftEntraInner createOrUpdate(String resourceGroupName, String
* @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 administrator associated to a Microsoft Entra principal.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AdministratorMicrosoftEntraInner createOrUpdate(String resourceGroupName, String serverName, String objectId,
@@ -246,68 +307,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String serverName, String objectId, Context context);
- /**
- * Gets information about a server administrator associated to a Microsoft Entra principal.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param objectId Object identifier of the Microsoft Entra principal.
- * @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 information about a server administrator associated to a Microsoft Entra principal along with
- * {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- String objectId);
-
- /**
- * Gets information about a server administrator associated to a Microsoft Entra principal.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param objectId Object identifier of the Microsoft Entra principal.
- * @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 information about a server administrator associated to a Microsoft Entra principal on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName, String objectId);
-
- /**
- * Gets information about a server administrator associated to a Microsoft Entra principal.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param objectId Object identifier of the Microsoft Entra principal.
- * @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 information about a server administrator associated to a Microsoft Entra principal along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName,
- String objectId, Context context);
-
- /**
- * Gets information about a server administrator associated to a Microsoft Entra principal.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param objectId Object identifier of the Microsoft Entra principal.
- * @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 information about a server administrator associated to a Microsoft Entra principal.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdministratorMicrosoftEntraInner get(String resourceGroupName, String serverName, String objectId);
-
/**
* List all server administrators associated to a Microsoft Entra principal.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java
index 8c013f634b95..3780eb8f50a7 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -19,48 +19,51 @@
*/
public interface AdvancedThreatProtectionSettingsClient {
/**
- * Lists state of advanced threat protection settings for a server.
+ * Gets state of advanced threat protection settings for a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param threatProtectionName Name of the advanced threat protection settings.
* @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 list of advanced threat protection settings for a server as paginated response with {@link PagedFlux}.
+ * @return state of advanced threat protection settings for a server along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByServerAsync(String resourceGroupName,
- String serverName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName,
+ String serverName, ThreatProtectionName threatProtectionName);
/**
- * Lists state of advanced threat protection settings for a server.
+ * Gets state of advanced threat protection settings for a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param threatProtectionName Name of the advanced threat protection settings.
* @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 list of advanced threat protection settings for a server as paginated response with
- * {@link PagedIterable}.
+ * @return state of advanced threat protection settings for a server on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName,
+ ThreatProtectionName threatProtectionName);
/**
- * Lists state of advanced threat protection settings for a server.
+ * Gets state of advanced threat protection settings for a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param threatProtectionName Name of the advanced threat protection settings.
* @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 list of advanced threat protection settings for a server as paginated response with
- * {@link PagedIterable}.
+ * @return state of advanced threat protection settings for a server along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName,
+ ThreatProtectionName threatProtectionName, Context context);
/**
* Gets state of advanced threat protection settings for a server.
@@ -71,56 +74,53 @@ PagedIterable listByServer(String re
* @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 state of advanced threat protection settings for a server along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return state of advanced threat protection settings for a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName,
- String serverName, ThreatProtectionName threatProtectionName);
+ AdvancedThreatProtectionSettingsModelInner get(String resourceGroupName, String serverName,
+ ThreatProtectionName threatProtectionName);
/**
- * Gets state of advanced threat protection settings for a server.
+ * Lists state of advanced threat protection settings for a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param threatProtectionName Name of the advanced threat protection settings.
* @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 state of advanced threat protection settings for a server on successful completion of {@link Mono}.
+ * @return list of advanced threat protection settings for a server as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName,
- ThreatProtectionName threatProtectionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(String resourceGroupName,
+ String serverName);
/**
- * Gets state of advanced threat protection settings for a server.
+ * Lists state of advanced threat protection settings for a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param threatProtectionName Name of the advanced threat protection settings.
- * @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 state of advanced threat protection settings for a server along with {@link Response}.
+ * @return list of advanced threat protection settings for a server as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName,
- ThreatProtectionName threatProtectionName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
/**
- * Gets state of advanced threat protection settings for a server.
+ * Lists state of advanced threat protection settings for a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param threatProtectionName Name of the advanced threat protection settings.
+ * @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 state of advanced threat protection settings for a server.
+ * @return list of advanced threat protection settings for a server as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionSettingsModelInner get(String resourceGroupName, String serverName,
- ThreatProtectionName threatProtectionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName,
+ Context context);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsAutomaticAndOnDemandsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsAutomaticAndOnDemandsClient.java
index c69d909ae6f7..5c7ce6d0d4d2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsAutomaticAndOnDemandsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsAutomaticAndOnDemandsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -22,6 +22,66 @@
* An instance of this class provides access to all the operations defined in BackupsAutomaticAndOnDemandsClient.
*/
public interface BackupsAutomaticAndOnDemandsClient {
+ /**
+ * Gets information of an on demand backup, given its name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName 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 information of an on demand backup, given its name along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String backupName);
+
+ /**
+ * Gets information of an on demand backup, given its name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName 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 information of an on demand backup, given its name on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String backupName);
+
+ /**
+ * Gets information of an on demand backup, given its name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName 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 information of an on demand backup, given its name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName,
+ String backupName, Context context);
+
+ /**
+ * Gets information of an on demand backup, given its name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param backupName 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 information of an on demand backup, given its name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BackupAutomaticAndOnDemandInner get(String resourceGroupName, String serverName, String backupName);
+
/**
* Creates an on demand backup of a server.
*
@@ -31,7 +91,7 @@ public interface BackupsAutomaticAndOnDemandsClient {
* @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 properties of a backup along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
@@ -46,7 +106,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 properties of a backup.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, BackupAutomaticAndOnDemandInner>
@@ -61,7 +121,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 properties of a backup.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupAutomaticAndOnDemandInner>
@@ -77,7 +137,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 properties of a backup.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupAutomaticAndOnDemandInner>
@@ -92,7 +152,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 properties of a backup on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createAsync(String resourceGroupName, String serverName, String backupName);
@@ -106,7 +166,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 properties of a backup.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupAutomaticAndOnDemandInner create(String resourceGroupName, String serverName, String backupName);
@@ -121,7 +181,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 properties of a backup.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupAutomaticAndOnDemandInner create(String resourceGroupName, String serverName, String backupName,
@@ -227,66 +287,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String serverName, String backupName, Context context);
- /**
- * Gets information of an on demand backup, given its name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName 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 information of an on demand backup, given its name along with {@link Response} on successful completion
- * of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- String backupName);
-
- /**
- * Gets information of an on demand backup, given its name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName 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 information of an on demand backup, given its name on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName, String backupName);
-
- /**
- * Gets information of an on demand backup, given its name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName 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 information of an on demand backup, given its name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName,
- String backupName, Context context);
-
- /**
- * Gets information of an on demand backup, given its name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName 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 information of an on demand backup, given its name.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupAutomaticAndOnDemandInner get(String resourceGroupName, String serverName, String backupName);
-
/**
* Lists all available backups of a server.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsLongTermRetentionsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsLongTermRetentionsClient.java
index 833054e90b88..5d5f41cbfaae 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsLongTermRetentionsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/BackupsLongTermRetentionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByLocationsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByLocationsClient.java
index 26556c4a4f4d..7400ae9c2e94 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByLocationsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByLocationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByServersClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByServersClient.java
index 41f25319c501..e9fd75363f88 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByServersClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapabilitiesByServersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapturedLogsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapturedLogsClient.java
index 9409af6f811d..86568a690828 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapturedLogsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/CapturedLogsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ConfigurationsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ConfigurationsClient.java
index 23b24be2082e..f2dc3cb886d2 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ConfigurationsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ConfigurationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -23,48 +23,6 @@
* An instance of this class provides access to all the operations defined in ConfigurationsClient.
*/
public interface ConfigurationsClient {
- /**
- * Lists all configurations (also known as server parameters) of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 list of configurations (also known as server parameters) as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByServerAsync(String resourceGroupName, String serverName);
-
- /**
- * Lists all configurations (also known as server parameters) of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 list of configurations (also known as server parameters) as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * Lists all configurations (also known as server parameters) of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 list of configurations (also known as server parameters) as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-
/**
* Gets information about a specific configuration (also known as server parameter) of a server.
*
@@ -128,7 +86,8 @@ Response getWithResponse(String resourceGroupName, String se
ConfigurationInner get(String resourceGroupName, String serverName, String configurationName);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -138,15 +97,15 @@ Response getWithResponse(String resourceGroupName, String se
* @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 configuration (also known as server parameter) along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
+ Mono>> putWithResponseAsync(String resourceGroupName, String serverName,
String configurationName, ConfigurationForUpdate parameters);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -156,14 +115,15 @@ Mono>> updateWithResponseAsync(String resourceGroupNam
* @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 configuration (also known as server parameter).
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- PollerFlux, ConfigurationInner> beginUpdateAsync(String resourceGroupName,
+ PollerFlux, ConfigurationInner> beginPutAsync(String resourceGroupName,
String serverName, String configurationName, ConfigurationForUpdate parameters);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -173,14 +133,15 @@ PollerFlux, ConfigurationInner> beginUpdateAsync(
* @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 configuration (also known as server parameter).
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationInner> beginUpdate(String resourceGroupName,
- String serverName, String configurationName, ConfigurationForUpdate parameters);
+ SyncPoller, ConfigurationInner> beginPut(String resourceGroupName, String serverName,
+ String configurationName, ConfigurationForUpdate parameters);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -191,14 +152,15 @@ SyncPoller, ConfigurationInner> beginUpdate(Strin
* @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 configuration (also known as server parameter).
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationInner> beginUpdate(String resourceGroupName,
- String serverName, String configurationName, ConfigurationForUpdate parameters, Context context);
+ SyncPoller, ConfigurationInner> beginPut(String resourceGroupName, String serverName,
+ String configurationName, ConfigurationForUpdate parameters, Context context);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -208,14 +170,15 @@ SyncPoller, ConfigurationInner> beginUpdate(Strin
* @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 configuration (also known as server parameter) on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String serverName, String configurationName,
+ Mono putAsync(String resourceGroupName, String serverName, String configurationName,
ConfigurationForUpdate parameters);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -225,14 +188,15 @@ Mono updateAsync(String resourceGroupName, String serverName
* @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 configuration (also known as server parameter).
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner update(String resourceGroupName, String serverName, String configurationName,
+ ConfigurationInner put(String resourceGroupName, String serverName, String configurationName,
ConfigurationForUpdate parameters);
/**
- * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
+ * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
+ * parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -243,15 +207,14 @@ ConfigurationInner update(String resourceGroupName, String serverName, String co
* @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 configuration (also known as server parameter).
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner update(String resourceGroupName, String serverName, String configurationName,
+ ConfigurationInner put(String resourceGroupName, String serverName, String configurationName,
ConfigurationForUpdate parameters, Context context);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -261,16 +224,14 @@ ConfigurationInner update(String resourceGroupName, String serverName, String co
* @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 configuration (also known as server parameter) along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono>> putWithResponseAsync(String resourceGroupName, String serverName,
+ Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
String configurationName, ConfigurationForUpdate parameters);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -280,15 +241,14 @@ Mono>> putWithResponseAsync(String resourceGroupName,
* @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 configuration (also known as server parameter).
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- PollerFlux, ConfigurationInner> beginPutAsync(String resourceGroupName,
+ PollerFlux, ConfigurationInner> beginUpdateAsync(String resourceGroupName,
String serverName, String configurationName, ConfigurationForUpdate parameters);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -298,15 +258,14 @@ PollerFlux, ConfigurationInner> beginPutAsync(Str
* @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 configuration (also known as server parameter).
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationInner> beginPut(String resourceGroupName, String serverName,
- String configurationName, ConfigurationForUpdate parameters);
+ SyncPoller, ConfigurationInner> beginUpdate(String resourceGroupName,
+ String serverName, String configurationName, ConfigurationForUpdate parameters);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -317,15 +276,14 @@ SyncPoller, ConfigurationInner> beginPut(String r
* @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 configuration (also known as server parameter).
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationInner> beginPut(String resourceGroupName, String serverName,
- String configurationName, ConfigurationForUpdate parameters, Context context);
+ SyncPoller, ConfigurationInner> beginUpdate(String resourceGroupName,
+ String serverName, String configurationName, ConfigurationForUpdate parameters, Context context);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -335,15 +293,14 @@ SyncPoller, ConfigurationInner> beginPut(String r
* @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 configuration (also known as server parameter) on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono putAsync(String resourceGroupName, String serverName, String configurationName,
+ Mono updateAsync(String resourceGroupName, String serverName, String configurationName,
ConfigurationForUpdate parameters);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -353,15 +310,14 @@ Mono putAsync(String resourceGroupName, String serverName, S
* @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 configuration (also known as server parameter).
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner put(String resourceGroupName, String serverName, String configurationName,
+ ConfigurationInner update(String resourceGroupName, String serverName, String configurationName,
ConfigurationForUpdate parameters);
/**
- * Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server
- * parameter) of a server.
+ * Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -372,9 +328,51 @@ ConfigurationInner put(String resourceGroupName, String serverName, String confi
* @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 configuration (also known as server parameter).
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner put(String resourceGroupName, String serverName, String configurationName,
+ ConfigurationInner update(String resourceGroupName, String serverName, String configurationName,
ConfigurationForUpdate parameters, Context context);
+
+ /**
+ * Lists all configurations (also known as server parameters) of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 list of configurations (also known as server parameters) as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Lists all configurations (also known as server parameters) of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 list of configurations (also known as server parameters) as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
+
+ /**
+ * Lists all configurations (also known as server parameters) of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 list of configurations (also known as server parameters) as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/DatabasesClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/DatabasesClient.java
index d990c89cfd57..8c1375b76d90 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/DatabasesClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/DatabasesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -22,6 +22,70 @@
* An instance of this class provides access to all the operations defined in DatabasesClient.
*/
public interface DatabasesClient {
+ /**
+ * Gets information about an existing database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
+ * list of all existing databases in a server.
+ * @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 information about an existing database along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String databaseName);
+
+ /**
+ * Gets information about an existing database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
+ * list of all existing databases in a server.
+ * @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 information about an existing database on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String databaseName);
+
+ /**
+ * Gets information about an existing database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
+ * list of all existing databases in a server.
+ * @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 information about an existing database along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName, String databaseName,
+ Context context);
+
+ /**
+ * Gets information about an existing database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
+ * list of all existing databases in a server.
+ * @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 information about an existing database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner get(String resourceGroupName, String serverName, String databaseName);
+
/**
* Creates a new database.
*
@@ -33,7 +97,7 @@ public interface DatabasesClient {
* @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 represents a database along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
@@ -50,7 +114,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 represents a database.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, DatabaseInner> beginCreateAsync(String resourceGroupName, String serverName,
@@ -67,7 +131,7 @@ PollerFlux, DatabaseInner> beginCreateAsync(String res
* @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 represents a database.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatabaseInner> beginCreate(String resourceGroupName, String serverName,
@@ -85,7 +149,7 @@ SyncPoller, DatabaseInner> beginCreate(String resource
* @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 represents a database.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatabaseInner> beginCreate(String resourceGroupName, String serverName,
@@ -102,7 +166,7 @@ SyncPoller, DatabaseInner> beginCreate(String resource
* @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 represents a database on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createAsync(String resourceGroupName, String serverName, String databaseName,
@@ -119,7 +183,7 @@ Mono createAsync(String resourceGroupName, String serverName, Str
* @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 represents a database.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters);
@@ -136,7 +200,7 @@ Mono createAsync(String resourceGroupName, String serverName, Str
* @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 represents a database.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters,
@@ -250,70 +314,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String serverName, String databaseName, Context context);
- /**
- * Gets information about an existing database.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
- * list of all existing databases in a server.
- * @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 information about an existing database along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- String databaseName);
-
- /**
- * Gets information about an existing database.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
- * list of all existing databases in a server.
- * @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 information about an existing database on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName, String databaseName);
-
- /**
- * Gets information about an existing database.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
- * list of all existing databases in a server.
- * @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 information about an existing database along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName, String databaseName,
- Context context);
-
- /**
- * Gets information about an existing database.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param databaseName Name of the database (case-sensitive). Exact database names can be retrieved by getting the
- * list of all existing databases in a server.
- * @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 information about an existing database.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DatabaseInner get(String resourceGroupName, String serverName, String databaseName);
-
/**
* Lists all databases in a server.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/FirewallRulesClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/FirewallRulesClient.java
index a8058aa894bc..7f047d855cca 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/FirewallRulesClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/FirewallRulesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -22,6 +22,66 @@
* An instance of this class provides access to all the operations defined in FirewallRulesClient.
*/
public interface FirewallRulesClient {
+ /**
+ * Gets information about a firewall rule in a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName Name of the firewall rule.
+ * @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 information about a firewall rule in a server along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String firewallRuleName);
+
+ /**
+ * Gets information about a firewall rule in a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName Name of the firewall rule.
+ * @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 information about a firewall rule in a server on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String firewallRuleName);
+
+ /**
+ * Gets information about a firewall rule in a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName Name of the firewall rule.
+ * @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 information about a firewall rule in a server along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName, String firewallRuleName,
+ Context context);
+
+ /**
+ * Gets information about a firewall rule in a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName Name of the firewall rule.
+ * @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 information about a firewall rule in a server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FirewallRuleInner get(String resourceGroupName, String serverName, String firewallRuleName);
+
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
@@ -32,7 +92,7 @@ public interface FirewallRulesClient {
* @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 firewall rule along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
@@ -48,7 +108,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 firewall rule.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, FirewallRuleInner> beginCreateOrUpdateAsync(String resourceGroupName,
@@ -64,7 +124,7 @@ PollerFlux, FirewallRuleInner> beginCreateOrUpdate
* @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 firewall rule.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName,
@@ -81,7 +141,7 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
* @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 firewall rule.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName,
@@ -97,7 +157,7 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
* @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 firewall rule on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName,
@@ -113,7 +173,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String ser
* @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 firewall rule.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName,
@@ -130,7 +190,7 @@ FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, St
* @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 firewall rule.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName,
@@ -238,66 +298,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String serverName, String firewallRuleName, Context context);
- /**
- * Gets information about a firewall rule in a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param firewallRuleName Name of the firewall rule.
- * @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 information about a firewall rule in a server along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- String firewallRuleName);
-
- /**
- * Gets information about a firewall rule in a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param firewallRuleName Name of the firewall rule.
- * @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 information about a firewall rule in a server on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName, String firewallRuleName);
-
- /**
- * Gets information about a firewall rule in a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param firewallRuleName Name of the firewall rule.
- * @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 information about a firewall rule in a server along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName, String firewallRuleName,
- Context context);
-
- /**
- * Gets information about a firewall rule in a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param firewallRuleName Name of the firewall rule.
- * @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 information about a firewall rule in a server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner get(String resourceGroupName, String serverName, String firewallRuleName);
-
/**
* Lists information about all firewall rules in a server.
*
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/MigrationsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/MigrationsClient.java
index 86ccc9298f10..6999658f16f7 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/MigrationsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/MigrationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -21,127 +21,127 @@
*/
public interface MigrationsClient {
/**
- * Creates a new migration.
+ * Gets information about a migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
- * @param parameters Parameters required for creating a migration.
* @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 properties of a migration along with {@link Response} on successful completion of {@link Mono}.
+ * @return information about a migration along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createWithResponseAsync(String resourceGroupName, String serverName,
- String migrationName, MigrationInner parameters);
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String migrationName);
/**
- * Creates a new migration.
+ * Gets information about a migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
- * @param parameters Parameters required for creating a migration.
* @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 properties of a migration on successful completion of {@link Mono}.
+ * @return information about a migration on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono createAsync(String resourceGroupName, String serverName, String migrationName,
- MigrationInner parameters);
+ Mono getAsync(String resourceGroupName, String serverName, String migrationName);
/**
- * Creates a new migration.
+ * Gets information about a migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
- * @param parameters Parameters required for creating a migration.
* @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 properties of a migration along with {@link Response}.
+ * @return information about a migration along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName, String serverName, String migrationName,
- MigrationInner parameters, Context context);
+ Response getWithResponse(String resourceGroupName, String serverName, String migrationName,
+ Context context);
/**
- * Creates a new migration.
+ * Gets information about a migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
- * @param parameters Parameters required for creating a migration.
* @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 properties of a migration.
+ * @return information about a migration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MigrationInner create(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters);
+ MigrationInner get(String resourceGroupName, String serverName, String migrationName);
/**
- * Gets information about a migration.
+ * Creates a new migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
+ * @param parameters Parameters required for creating a migration.
* @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 information about a migration along with {@link Response} on successful completion of {@link Mono}.
+ * @return properties of a migration along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- String migrationName);
+ Mono> createWithResponseAsync(String resourceGroupName, String serverName,
+ String migrationName, MigrationInner parameters);
/**
- * Gets information about a migration.
+ * Creates a new migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
+ * @param parameters Parameters required for creating a migration.
* @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 information about a migration on successful completion of {@link Mono}.
+ * @return properties of a migration on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName, String migrationName);
+ Mono createAsync(String resourceGroupName, String serverName, String migrationName,
+ MigrationInner parameters);
/**
- * Gets information about a migration.
+ * Creates a new migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
+ * @param parameters Parameters required for creating a migration.
* @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 information about a migration along with {@link Response}.
+ * @return properties of a migration along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName, String migrationName,
- Context context);
+ Response createWithResponse(String resourceGroupName, String serverName, String migrationName,
+ MigrationInner parameters, Context context);
/**
- * Gets information about a migration.
+ * Creates a new migration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param migrationName Name of migration.
+ * @param parameters Parameters required for creating a migration.
* @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 information about a migration.
+ * @return properties of a migration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MigrationInner get(String resourceGroupName, String serverName, String migrationName);
+ MigrationInner create(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters);
/**
* Updates an existing migration. The request body can contain one to many of the mutable properties present in the
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/NameAvailabilitiesClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/NameAvailabilitiesClient.java
index f1aa16bb08c7..1a38d58227af 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/NameAvailabilitiesClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/NameAvailabilitiesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -20,8 +20,7 @@ public interface NameAvailabilitiesClient {
* Checks the validity and availability of the given name, to assign it to a new server or to use it as the base
* name of a new pair of virtual endpoints.
*
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -34,8 +33,7 @@ public interface NameAvailabilitiesClient {
* Checks the validity and availability of the given name, to assign it to a new server or to use it as the base
* name of a new pair of virtual endpoints.
*
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -48,8 +46,7 @@ public interface NameAvailabilitiesClient {
* Checks the validity and availability of the given name, to assign it to a new server or to use it as the base
* name of a new pair of virtual endpoints.
*
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -64,8 +61,7 @@ Response checkGloballyWithResponse(CheckNameAvailabi
* Checks the validity and availability of the given name, to assign it to a new server or to use it as the base
* name of a new pair of virtual endpoints.
*
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -78,8 +74,7 @@ Response checkGloballyWithResponse(CheckNameAvailabi
* Check the availability of name for resource.
*
* @param locationName The name of the location.
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -93,8 +88,7 @@ Mono> checkWithLocationWithResponseAsync(St
* Check the availability of name for resource.
*
* @param locationName The name of the location.
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -108,8 +102,7 @@ Mono checkWithLocationAsync(String locationName,
* Check the availability of name for resource.
*
* @param locationName The name of the location.
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
@@ -124,8 +117,7 @@ Response checkWithLocationWithResponse(String locati
* Check the availability of name for resource.
*
* @param locationName The name of the location.
- * @param parameters Parameters required to check if a given name is valid and available to assign it to a new
- * server or to use it as the base name of a new pair of virtual endpoints.
+ * @param parameters The request body.
* @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.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/OperationsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/OperationsClient.java
index ed8e41df6e60..6fb9bdc43492 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/OperationsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -20,7 +20,7 @@ public interface OperationsClient {
*
* @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 list of resource provider operations as paginated response with {@link PagedFlux}.
+ * @return paged collection of Operation items as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
@@ -30,7 +30,7 @@ public interface OperationsClient {
*
* @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 list of resource provider operations as paginated response with {@link PagedIterable}.
+ * @return paged collection of Operation items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -42,7 +42,7 @@ public interface OperationsClient {
* @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 list of resource provider operations as paginated response with {@link PagedIterable}.
+ * @return paged collection of Operation items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
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 1d8db32b24eb..528930839c1e 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -12,26 +12,26 @@
*/
public interface PostgreSqlManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -47,158 +47,158 @@ public interface PostgreSqlManagementClient {
Duration getDefaultPollInterval();
/**
- * Gets the AdministratorsMicrosoftEntrasClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the AdministratorsMicrosoftEntrasClient object.
+ * @return the OperationsClient object.
*/
- AdministratorsMicrosoftEntrasClient getAdministratorsMicrosoftEntras();
+ OperationsClient getOperations();
/**
- * Gets the AdvancedThreatProtectionSettingsClient object to access its operations.
+ * Gets the MigrationsClient object to access its operations.
*
- * @return the AdvancedThreatProtectionSettingsClient object.
+ * @return the MigrationsClient object.
*/
- AdvancedThreatProtectionSettingsClient getAdvancedThreatProtectionSettings();
+ MigrationsClient getMigrations();
/**
- * Gets the ServerThreatProtectionSettingsClient object to access its operations.
+ * Gets the ServersClient object to access its operations.
*
- * @return the ServerThreatProtectionSettingsClient object.
+ * @return the ServersClient object.
*/
- ServerThreatProtectionSettingsClient getServerThreatProtectionSettings();
+ ServersClient getServers();
/**
- * Gets the BackupsAutomaticAndOnDemandsClient object to access its operations.
+ * Gets the ConfigurationsClient object to access its operations.
*
- * @return the BackupsAutomaticAndOnDemandsClient object.
+ * @return the ConfigurationsClient object.
*/
- BackupsAutomaticAndOnDemandsClient getBackupsAutomaticAndOnDemands();
+ ConfigurationsClient getConfigurations();
/**
- * Gets the CapabilitiesByLocationsClient object to access its operations.
+ * Gets the DatabasesClient object to access its operations.
*
- * @return the CapabilitiesByLocationsClient object.
+ * @return the DatabasesClient object.
*/
- CapabilitiesByLocationsClient getCapabilitiesByLocations();
+ DatabasesClient getDatabases();
/**
- * Gets the CapabilitiesByServersClient object to access its operations.
+ * Gets the FirewallRulesClient object to access its operations.
*
- * @return the CapabilitiesByServersClient object.
+ * @return the FirewallRulesClient object.
*/
- CapabilitiesByServersClient getCapabilitiesByServers();
+ FirewallRulesClient getFirewallRules();
/**
- * Gets the CapturedLogsClient object to access its operations.
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
*
- * @return the CapturedLogsClient object.
+ * @return the PrivateEndpointConnectionsClient object.
*/
- CapturedLogsClient getCapturedLogs();
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
/**
- * Gets the ConfigurationsClient object to access its operations.
+ * Gets the PrivateLinkResourcesClient object to access its operations.
*
- * @return the ConfigurationsClient object.
+ * @return the PrivateLinkResourcesClient object.
*/
- ConfigurationsClient getConfigurations();
+ PrivateLinkResourcesClient getPrivateLinkResources();
/**
- * Gets the DatabasesClient object to access its operations.
+ * Gets the VirtualEndpointsClient object to access its operations.
*
- * @return the DatabasesClient object.
+ * @return the VirtualEndpointsClient object.
*/
- DatabasesClient getDatabases();
+ VirtualEndpointsClient getVirtualEndpoints();
/**
- * Gets the FirewallRulesClient object to access its operations.
+ * Gets the AdministratorsMicrosoftEntrasClient object to access its operations.
*
- * @return the FirewallRulesClient object.
+ * @return the AdministratorsMicrosoftEntrasClient object.
*/
- FirewallRulesClient getFirewallRules();
+ AdministratorsMicrosoftEntrasClient getAdministratorsMicrosoftEntras();
/**
- * Gets the BackupsLongTermRetentionsClient object to access its operations.
+ * Gets the CapabilitiesByServersClient object to access its operations.
*
- * @return the BackupsLongTermRetentionsClient object.
+ * @return the CapabilitiesByServersClient object.
*/
- BackupsLongTermRetentionsClient getBackupsLongTermRetentions();
+ CapabilitiesByServersClient getCapabilitiesByServers();
/**
- * Gets the MigrationsClient object to access its operations.
+ * Gets the CapturedLogsClient object to access its operations.
*
- * @return the MigrationsClient object.
+ * @return the CapturedLogsClient object.
*/
- MigrationsClient getMigrations();
+ CapturedLogsClient getCapturedLogs();
/**
- * Gets the NameAvailabilitiesClient object to access its operations.
+ * Gets the BackupsLongTermRetentionsClient object to access its operations.
*
- * @return the NameAvailabilitiesClient object.
+ * @return the BackupsLongTermRetentionsClient object.
*/
- NameAvailabilitiesClient getNameAvailabilities();
+ BackupsLongTermRetentionsClient getBackupsLongTermRetentions();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the ReplicasClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the ReplicasClient object.
*/
- OperationsClient getOperations();
+ ReplicasClient getReplicas();
/**
- * Gets the PrivateDnsZoneSuffixesClient object to access its operations.
+ * Gets the AdvancedThreatProtectionSettingsClient object to access its operations.
*
- * @return the PrivateDnsZoneSuffixesClient object.
+ * @return the AdvancedThreatProtectionSettingsClient object.
*/
- PrivateDnsZoneSuffixesClient getPrivateDnsZoneSuffixes();
+ AdvancedThreatProtectionSettingsClient getAdvancedThreatProtectionSettings();
/**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ * Gets the ServerThreatProtectionSettingsClient object to access its operations.
*
- * @return the PrivateEndpointConnectionsClient object.
+ * @return the ServerThreatProtectionSettingsClient object.
*/
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+ ServerThreatProtectionSettingsClient getServerThreatProtectionSettings();
/**
- * Gets the PrivateLinkResourcesClient object to access its operations.
+ * Gets the BackupsAutomaticAndOnDemandsClient object to access its operations.
*
- * @return the PrivateLinkResourcesClient object.
+ * @return the BackupsAutomaticAndOnDemandsClient object.
*/
- PrivateLinkResourcesClient getPrivateLinkResources();
+ BackupsAutomaticAndOnDemandsClient getBackupsAutomaticAndOnDemands();
/**
- * Gets the QuotaUsagesClient object to access its operations.
+ * Gets the TuningOptionsOperationsClient object to access its operations.
*
- * @return the QuotaUsagesClient object.
+ * @return the TuningOptionsOperationsClient object.
*/
- QuotaUsagesClient getQuotaUsages();
+ TuningOptionsOperationsClient getTuningOptionsOperations();
/**
- * Gets the ReplicasClient object to access its operations.
+ * Gets the CapabilitiesByLocationsClient object to access its operations.
*
- * @return the ReplicasClient object.
+ * @return the CapabilitiesByLocationsClient object.
*/
- ReplicasClient getReplicas();
+ CapabilitiesByLocationsClient getCapabilitiesByLocations();
/**
- * Gets the ServersClient object to access its operations.
+ * Gets the NameAvailabilitiesClient object to access its operations.
*
- * @return the ServersClient object.
+ * @return the NameAvailabilitiesClient object.
*/
- ServersClient getServers();
+ NameAvailabilitiesClient getNameAvailabilities();
/**
- * Gets the TuningOptionsOperationsClient object to access its operations.
+ * Gets the PrivateDnsZoneSuffixesClient object to access its operations.
*
- * @return the TuningOptionsOperationsClient object.
+ * @return the PrivateDnsZoneSuffixesClient object.
*/
- TuningOptionsOperationsClient getTuningOptionsOperations();
+ PrivateDnsZoneSuffixesClient getPrivateDnsZoneSuffixes();
/**
- * Gets the VirtualEndpointsClient object to access its operations.
+ * Gets the QuotaUsagesClient object to access its operations.
*
- * @return the VirtualEndpointsClient object.
+ * @return the QuotaUsagesClient object.
*/
- VirtualEndpointsClient getVirtualEndpoints();
+ QuotaUsagesClient getQuotaUsages();
/**
* Gets the VirtualNetworkSubnetUsagesClient object to access its operations.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateDnsZoneSuffixesClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateDnsZoneSuffixesClient.java
index 361e6ae6beaa..e56fb218f171 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateDnsZoneSuffixesClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateDnsZoneSuffixesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateEndpointConnectionsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateEndpointConnectionsClient.java
index c2813a96317d..e56bde7ecad0 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateEndpointConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -27,7 +27,8 @@ public interface PrivateEndpointConnectionsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -42,7 +43,8 @@ Mono> getWithResponseAsync(String resou
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -57,7 +59,8 @@ Mono getAsync(String resourceGroupName, String s
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -73,7 +76,8 @@ Response getWithResponse(String resourceGroupNam
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -88,13 +92,13 @@ PrivateEndpointConnectionInner get(String resourceGroupName, String serverName,
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 private endpoint connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
@@ -105,12 +109,13 @@ Mono>> updateWithResponseAsync(String resourceGroupNam
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 the private endpoint connection resource.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, PrivateEndpointConnectionInner> beginUpdateAsync(
@@ -122,12 +127,13 @@ PollerFlux, PrivateEndpointConnection
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 the private endpoint connection resource.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
@@ -139,13 +145,14 @@ SyncPoller, PrivateEndpointConnection
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 the private endpoint connection resource.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
@@ -157,12 +164,13 @@ SyncPoller, PrivateEndpointConnection
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 private endpoint connection resource on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String serverName,
@@ -173,12 +181,13 @@ Mono updateAsync(String resourceGroupName, Strin
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 private endpoint connection resource.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner update(String resourceGroupName, String serverName,
@@ -189,13 +198,14 @@ PrivateEndpointConnectionInner update(String resourceGroupName, String serverNam
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @param parameters Parameters required to update a private endpoint connection.
* @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 private endpoint connection resource.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner update(String resourceGroupName, String serverName,
@@ -206,7 +216,8 @@ PrivateEndpointConnectionInner update(String resourceGroupName, String serverNam
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -221,7 +232,8 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -236,7 +248,8 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -251,7 +264,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -267,7 +281,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -281,7 +296,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
@@ -294,7 +310,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
* @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.
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateLinkResourcesClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateLinkResourcesClient.java
index dc241be16393..604f1d76ab04 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/PrivateLinkResourcesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -18,44 +18,50 @@
*/
public interface PrivateLinkResourcesClient {
/**
- * Gets the private link resources for PostgreSQL server.
+ * Gets a private link resource for PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param groupName The name of the private link resource.
* @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 private link resources for PostgreSQL server as paginated response with {@link PagedFlux}.
+ * @return a private link resource for PostgreSQL server along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByServerAsync(String resourceGroupName, String serverName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String groupName);
/**
- * Gets the private link resources for PostgreSQL server.
+ * Gets a private link resource for PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param groupName The name of the private link resource.
* @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 private link resources for PostgreSQL server as paginated response with {@link PagedIterable}.
+ * @return a private link resource for PostgreSQL server on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String groupName);
/**
- * Gets the private link resources for PostgreSQL server.
+ * Gets a private link resource for PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param groupName The name of the private link resource.
* @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 private link resources for PostgreSQL server as paginated response with {@link PagedIterable}.
+ * @return a private link resource for PostgreSQL server along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName, String groupName,
+ Context context);
/**
* Gets a private link resource for PostgreSQL server.
@@ -66,54 +72,48 @@ public interface PrivateLinkResourcesClient {
* @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 private link resource for PostgreSQL server along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a private link resource for PostgreSQL server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- String groupName);
+ PrivateLinkResourceInner get(String resourceGroupName, String serverName, String groupName);
/**
- * Gets a private link resource for PostgreSQL server.
+ * Gets the private link resources for PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param groupName The name of the private link resource.
* @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 private link resource for PostgreSQL server on successful completion of {@link Mono}.
+ * @return the private link resources for PostgreSQL server as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String serverName, String groupName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(String resourceGroupName, String serverName);
/**
- * Gets a private link resource for PostgreSQL server.
+ * Gets the private link resources for PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param groupName The name of the private link resource.
- * @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 a private link resource for PostgreSQL server along with {@link Response}.
+ * @return the private link resources for PostgreSQL server as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName, String groupName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
/**
- * Gets a private link resource for PostgreSQL server.
+ * Gets the private link resources for PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param groupName The name of the private link resource.
+ * @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 a private link resource for PostgreSQL server.
+ * @return the private link resources for PostgreSQL server as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String serverName, String groupName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
}
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
index 59ed9de674a3..466d0b1aecda 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ReplicasClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ReplicasClient.java
index abcdb60f96f0..9444e97ec855 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ReplicasClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ReplicasClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServerThreatProtectionSettingsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServerThreatProtectionSettingsClient.java
index 6aef7aace93c..2907b17cd40c 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServerThreatProtectionSettingsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServerThreatProtectionSettingsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -31,8 +31,7 @@ public interface ServerThreatProtectionSettingsClient {
* @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 advanced threat protection settings of the server along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
@@ -48,7 +47,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 advanced threat protection settings of the server.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, AdvancedThreatProtectionSettingsModelInner>
@@ -65,7 +64,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 advanced threat protection settings of the server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AdvancedThreatProtectionSettingsModelInner>
@@ -83,7 +82,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 advanced threat protection settings of the server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AdvancedThreatProtectionSettingsModelInner>
@@ -100,7 +99,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 advanced threat protection settings of the server on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String serverName,
@@ -116,7 +115,7 @@ Mono createOrUpdateAsync(String reso
* @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 advanced threat protection settings of the server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AdvancedThreatProtectionSettingsModelInner createOrUpdate(String resourceGroupName, String serverName,
@@ -133,7 +132,7 @@ AdvancedThreatProtectionSettingsModelInner createOrUpdate(String resourceGroupNa
* @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 advanced threat protection settings of the server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AdvancedThreatProtectionSettingsModelInner createOrUpdate(String resourceGroupName, String serverName,
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServersClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServersClient.java
index 98cddb79c017..780a5d362f74 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServersClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -13,6 +13,7 @@
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.MigrateNetworkStatusInner;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.ServerInner;
import com.azure.resourcemanager.postgresqlflexibleserver.models.RestartParameter;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ServerForPatch;
@@ -24,6 +25,60 @@
* An instance of this class provides access to all the operations defined in ServersClient.
*/
public interface ServersClient {
+ /**
+ * Gets information about an existing server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 information about an existing server along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Gets information about an existing server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 information about an existing server on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getByResourceGroupAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Gets information about an existing server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 information about an existing server along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Gets information about an existing server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 information about an existing server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerInner getByResourceGroup(String resourceGroupName, String serverName);
+
/**
* Creates a new server.
*
@@ -33,7 +88,7 @@ public interface ServersClient {
* @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 properties of a server along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
@@ -48,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource
* @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 properties of a server.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, ServerInner> beginCreateOrUpdateAsync(String resourceGroupName,
@@ -63,7 +118,7 @@ PollerFlux, ServerInner> beginCreateOrUpdateAsync(String
* @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 properties of a server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName,
@@ -79,7 +134,7 @@ SyncPoller, ServerInner> beginCreateOrUpdate(String reso
* @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 properties of a server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName,
@@ -94,7 +149,7 @@ SyncPoller, ServerInner> beginCreateOrUpdate(String reso
* @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 properties of a server on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters);
@@ -108,7 +163,7 @@ SyncPoller, ServerInner> beginCreateOrUpdate(String reso
* @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 properties of a server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters);
@@ -123,7 +178,7 @@ SyncPoller, ServerInner> beginCreateOrUpdate(String reso
* @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 properties of a server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, Context context);
@@ -138,7 +193,7 @@ SyncPoller, ServerInner> beginCreateOrUpdate(String reso
* @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 properties of a server along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
@@ -154,7 +209,7 @@ Mono>> updateWithResponseAsync(String resourceGroupNam
* @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 properties of a server.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, ServerInner> beginUpdateAsync(String resourceGroupName, String serverName,
@@ -170,7 +225,7 @@ PollerFlux, ServerInner> beginUpdateAsync(String resourc
* @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 properties of a server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(String resourceGroupName, String serverName,
@@ -187,7 +242,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @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 properties of a server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(String resourceGroupName, String serverName,
@@ -203,7 +258,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @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 properties of a server on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String serverName, ServerForPatch parameters);
@@ -218,7 +273,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @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 properties of a server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServerInner update(String resourceGroupName, String serverName, ServerForPatch parameters);
@@ -234,7 +289,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @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 properties of a server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServerInner update(String resourceGroupName, String serverName, ServerForPatch parameters, Context context);
@@ -330,60 +385,6 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String serverName, Context context);
- /**
- * Gets information about an existing server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 information about an existing server along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName);
-
- /**
- * Gets information about an existing server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 information about an existing server on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String serverName);
-
- /**
- * Gets information about an existing server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 information about an existing server along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context);
-
- /**
- * Gets information about an existing server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 information about an existing server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner getByResourceGroup(String resourceGroupName, String serverName);
-
/**
* Lists all servers in a resource group.
*
@@ -759,4 +760,115 @@ SyncPoller, Void> beginRestart(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void stop(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 status of a network migration operation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> migrateNetworkModeWithResponseAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 the status of a network migration operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, MigrateNetworkStatusInner>
+ beginMigrateNetworkModeAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 the status of a network migration operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MigrateNetworkStatusInner>
+ beginMigrateNetworkMode(String resourceGroupName, String serverName);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 the status of a network migration operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MigrateNetworkStatusInner>
+ beginMigrateNetworkMode(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 status of a network migration operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono migrateNetworkModeAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 status of a network migration operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrateNetworkStatusInner migrateNetworkMode(String resourceGroupName, String serverName);
+
+ /**
+ * Migrates the network configuration of a PostgreSQL flexible server from customer owned VNET to Microsoft owned
+ * VNET with support for private endpoints, or from Microsoft owned VNET with no support for private endpoints to
+ * Microsoft owned VNET with support for private endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 status of a network migration operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrateNetworkStatusInner migrateNetworkMode(String resourceGroupName, String serverName, Context context);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/TuningOptionsOperationsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/TuningOptionsOperationsClient.java
index c714d3282f2d..382c53d400b8 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/TuningOptionsOperationsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/TuningOptionsOperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -81,50 +81,44 @@ Response getWithResponse(String resourceGroupName, String se
TuningOptionsInner get(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption);
/**
- * Lists available object recommendations.
+ * Lists the tuning options of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param tuningOption The name of the tuning option.
- * @param recommendationType Recommendations list filter. Retrieves recommendations based on type.
* @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 list of available object recommendations as paginated response with {@link PagedFlux}.
+ * @return list of server tuning options as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listRecommendationsAsync(String resourceGroupName, String serverName,
- TuningOptionParameterEnum tuningOption, RecommendationTypeParameterEnum recommendationType);
+ PagedFlux listByServerAsync(String resourceGroupName, String serverName);
/**
- * Lists available object recommendations.
+ * Lists the tuning options of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param tuningOption The name of the tuning option.
* @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 list of available object recommendations as paginated response with {@link PagedFlux}.
+ * @return list of server tuning options as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listRecommendationsAsync(String resourceGroupName, String serverName,
- TuningOptionParameterEnum tuningOption);
+ PagedIterable listByServer(String resourceGroupName, String serverName);
/**
- * Lists available object recommendations.
+ * Lists the tuning options of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param tuningOption The name of the tuning option.
+ * @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 list of available object recommendations as paginated response with {@link PagedIterable}.
+ * @return list of server tuning options as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listRecommendations(String resourceGroupName, String serverName,
- TuningOptionParameterEnum tuningOption);
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
/**
* Lists available object recommendations.
@@ -133,53 +127,59 @@ PagedIterable listRecommendations(String resourceGrou
* @param serverName The name of the server.
* @param tuningOption The name of the tuning option.
* @param recommendationType Recommendations list filter. Retrieves recommendations based on type.
- * @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 list of available object recommendations as paginated response with {@link PagedIterable}.
+ * @return list of available object recommendations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listRecommendations(String resourceGroupName, String serverName,
- TuningOptionParameterEnum tuningOption, RecommendationTypeParameterEnum recommendationType, Context context);
+ PagedFlux listRecommendationsAsync(String resourceGroupName, String serverName,
+ TuningOptionParameterEnum tuningOption, RecommendationTypeParameterEnum recommendationType);
/**
- * Lists the tuning options of a server.
+ * Lists available object recommendations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param tuningOption The name of the tuning option.
* @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 list of server tuning options as paginated response with {@link PagedFlux}.
+ * @return list of available object recommendations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByServerAsync(String resourceGroupName, String serverName);
+ PagedFlux listRecommendationsAsync(String resourceGroupName, String serverName,
+ TuningOptionParameterEnum tuningOption);
/**
- * Lists the tuning options of a server.
+ * Lists available object recommendations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param tuningOption The name of the tuning option.
* @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 list of server tuning options as paginated response with {@link PagedIterable}.
+ * @return list of available object recommendations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
+ PagedIterable listRecommendations(String resourceGroupName, String serverName,
+ TuningOptionParameterEnum tuningOption);
/**
- * Lists the tuning options of a server.
+ * Lists available object recommendations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param tuningOption The name of the tuning option.
+ * @param recommendationType Recommendations list filter. Retrieves recommendations based on type.
* @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 list of server tuning options as paginated response with {@link PagedIterable}.
+ * @return list of available object recommendations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
+ PagedIterable listRecommendations(String resourceGroupName, String serverName,
+ TuningOptionParameterEnum tuningOption, RecommendationTypeParameterEnum recommendationType, Context context);
}
diff --git a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/VirtualEndpointsClient.java b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/VirtualEndpointsClient.java
index 26f31f8654a1..35d7320ac3aa 100644
--- a/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/VirtualEndpointsClient.java
+++ b/sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/VirtualEndpointsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.postgresqlflexibleserver.fluent;
@@ -23,6 +23,66 @@
* An instance of this class provides access to all the operations defined in VirtualEndpointsClient.
*/
public interface VirtualEndpointsClient {
+ /**
+ * Gets information about a pair of virtual endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param virtualEndpointName Base name of the virtual endpoints.
+ * @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 information about a pair of virtual endpoints along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String virtualEndpointName);
+
+ /**
+ * Gets information about a pair of virtual endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param virtualEndpointName Base name of the virtual endpoints.
+ * @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 information about a pair of virtual endpoints on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String virtualEndpointName);
+
+ /**
+ * Gets information about a pair of virtual endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param virtualEndpointName Base name of the virtual endpoints.
+ * @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 information about a pair of virtual endpoints along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String serverName,
+ String virtualEndpointName, Context context);
+
+ /**
+ * Gets information about a pair of virtual endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param virtualEndpointName Base name of the virtual endpoints.
+ * @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 information about a pair of virtual endpoints.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualEndpointInner get(String resourceGroupName, String serverName, String virtualEndpointName);
+
/**
* Creates a pair of virtual endpoints for a server.
*
@@ -33,8 +93,7 @@ public interface VirtualEndpointsClient {
* @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 pair of virtual endpoints for a server along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
@@ -50,7 +109,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam
* @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 pair of virtual endpoints for a server.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, VirtualEndpointInner> beginCreateAsync(String resourceGroupName,
@@ -66,7 +125,7 @@ PollerFlux, VirtualEndpointInner> beginCreateAs
* @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 pair of virtual endpoints for a server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualEndpointInner> beginCreate(String resourceGroupName,
@@ -83,7 +142,7 @@ SyncPoller, VirtualEndpointInner> beginCreate(S
* @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 pair of virtual endpoints for a server.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualEndpointInner> beginCreate(String resourceGroupName,
@@ -99,7 +158,7 @@ SyncPoller, VirtualEndpointInner> beginCreate(S
* @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 pair of virtual endpoints for a server on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createAsync(String resourceGroupName, String serverName, String virtualEndpointName,
@@ -115,7 +174,7 @@ Mono createAsync(String resourceGroupName, String serverNa
* @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 pair of virtual endpoints for a server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualEndpointInner create(String resourceGroupName, String serverName, String virtualEndpointName,
@@ -132,7 +191,7 @@ VirtualEndpointInner create(String resourceGroupName, String serverName, String
* @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 pair of virtual endpoints for a server.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualEndpointInner create(String resourceGroupName, String serverName, String virtualEndpointName,
@@ -148,8 +207,7 @@ VirtualEndpointInner create(String resourceGroupName, String serverName, String
* @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 pair of virtual endpoints for a server along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
@@ -165,7 +223,7 @@ Mono>> updateWithResponseAsync(String resourceGroupNam
* @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 pair of virtual endpoints for a server.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, VirtualEndpointInner> beginUpdateAsync(String resourceGroupName,
@@ -181,7 +239,7 @@ PollerFlux