Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
447 changes: 15 additions & 432 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

105 changes: 105 additions & 0 deletions sdk/postgresql/arm-postgresql-flexible/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,110 @@
# Release History

## 10.0.0-beta.1 (2026-03-12)
Compared with version 9.0.0

### Features Added
- Added operation AdministratorsMicrosoftEntraOperations.createOrUpdate
- Added operation AdministratorsMicrosoftEntraOperations.delete
- Added operation BackupsAutomaticAndOnDemandOperations.create
- Added operation BackupsAutomaticAndOnDemandOperations.delete
- Added operation BackupsLongTermRetentionOperations.start
- Added operation ConfigurationsOperations.put
- Added operation ConfigurationsOperations.update
- Added operation DatabasesOperations.create
- Added operation DatabasesOperations.delete
- Added operation FirewallRulesOperations.createOrUpdate
- Added operation FirewallRulesOperations.delete
- Added operation PrivateEndpointConnectionsOperations.delete
- Added operation PrivateEndpointConnectionsOperations.update
- Added operation ServersOperations.beginMigrateNetworkMode
- Added operation ServersOperations.beginMigrateNetworkModeAndWait
- Added operation ServersOperations.createOrUpdate
- Added operation ServersOperations.delete
- Added operation ServersOperations.migrateNetworkMode
- Added operation ServersOperations.restart
- Added operation ServersOperations.start
- Added operation ServersOperations.stop
- Added operation ServersOperations.update
- Added operation ServerThreatProtectionSettingsOperations.createOrUpdate
- Added operation VirtualEndpointsOperations.create
- Added operation VirtualEndpointsOperations.delete
- Added operation VirtualEndpointsOperations.update
- Added Interface AdministratorMicrosoftEntraProperties
- Added Interface AdministratorMicrosoftEntraPropertiesForAdd
- Added Interface AdvancedThreatProtectionSettingsProperties
- Added Interface BackupAutomaticAndOnDemandProperties
- Added Interface BackupsLongTermRetentionResponseProperties
- Added Interface CapturedLogProperties
- Added Interface ConfigurationProperties
- Added Interface DatabaseProperties
- Added Interface FirewallRuleProperties
- Added Interface LogSpecification
- Added Interface LtrBackupOperationResponseProperties
- Added Interface MetricSpecification
- Added Interface MigrateNetworkStatus
- Added Interface MigrationProperties
- Added Interface MigrationPropertiesForPatch
- Added Interface ObjectRecommendationProperties
- Added Interface OperationProperties
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface PrivateEndpointConnectionProperties
- Added Interface PrivateLinkResourceProperties
- Added Interface RestorePollerOptions
- Added Interface ServerProperties
- Added Interface ServerPropertiesForPatch
- Added Interface ServersMigrateNetworkModeOptionalParams
- Added Interface ServiceSpecification
- Added Interface SimplePollerLike
- Added Interface TuningOptionsProperties
- Added Interface VirtualEndpointResourceProperties
- Interface TuningOptions has a new optional parameter properties
- Added Type Alias AzureSupportedClouds
- Added Type Alias NetworkMigrationState
- Added Type Alias PostgreSqlFlexibleServerHighAvailabilityMode
- Added Enum AzureClouds
- Added Enum KnownNetworkMigrationState
- Added Enum KnownPostgreSqlFlexibleServerHighAvailabilityMode
- Added Enum KnownVersions
- Enum KnownRecommendationTypeEnum has a new value VacuumTable
- Enum KnownRecommendationTypeParameterEnum has a new value VacuumTable

### Breaking Changes
- Operation AdministratorsMicrosoftEntra.beginDeleteAndWait has a new signature
- Operation BackupsAutomaticAndOnDemand.beginDeleteAndWait has a new signature
- Operation Databases.beginDeleteAndWait has a new signature
- Operation FirewallRules.beginDeleteAndWait has a new signature
- Operation PrivateEndpointConnections.beginDeleteAndWait has a new signature
- Operation Servers.beginDeleteAndWait has a new signature
- Operation Servers.beginRestartAndWait has a new signature
- Operation Servers.beginStartAndWait has a new signature
- Operation Servers.beginStopAndWait has a new signature
- Operation VirtualEndpoints.beginDeleteAndWait has a new signature
- Removed Interface AdministratorMicrosoftEntraList
- Removed Interface AdvancedThreatProtectionSettingsList
- Removed Interface BackupAutomaticAndOnDemandList
- Removed Interface CapabilityList
- Removed Interface CapturedLogList
- Removed Interface ConfigurationList
- Removed Interface DatabaseList
- Removed Interface FirewallRuleList
- Removed Interface LtrServerBackupOperationList
- Removed Interface MigrationList
- Removed Interface ObjectRecommendationList
- Removed Interface OperationList
- Removed Interface PrivateEndpointConnectionList
- Removed Interface PrivateLinkResourceList
- Removed Interface QuotaUsageList
- Removed Interface ServerList
- Removed Interface TuningOptionsList
- Removed Interface VirtualEndpointsList
- Type of parameter properties of interface Operation is changed from {
[propertyName: string]: Record<string, unknown>;
} to OperationProperties
- Removed Type Alias MigrationDetailsLevel
- Removed Enum KnownMigrationDetailsLevel

## 9.0.0 (2025-11-25)

### Features Added
Expand Down
34 changes: 17 additions & 17 deletions sdk/postgresql/arm-postgresql-flexible/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Azure PostgreSQLManagementFlexibleServer client library for JavaScript
# Azure PostgreSQLManagement client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PostgreSQLManagementFlexibleServer client.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PostgreSQLManagement client.

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.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/postgresql/arm-postgresql-flexible) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-postgresql-flexible) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-postgresql-flexible) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/postgresql/arm-postgresql-flexible)
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-postgresql-flexible)
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-postgresql-flexible?view=azure-node-preview)
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/postgresql/arm-postgresql-flexible/samples)

## Getting started

Expand All @@ -24,26 +26,26 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP

### Install the `@azure/arm-postgresql-flexible` package

Install the Azure PostgreSQLManagementFlexibleServer client library for JavaScript with `npm`:
Install the Azure PostgreSQLManagement client library for JavaScript with `npm`:

```bash
npm install @azure/arm-postgresql-flexible
```

### Create and authenticate a `PostgreSQLManagementFlexibleServerClient`

To create a client object to access the Azure PostgreSQLManagementFlexibleServer API, you will need the `endpoint` of your Azure PostgreSQLManagementFlexibleServer resource and a `credential`. The Azure PostgreSQLManagementFlexibleServer client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure PostgreSQLManagementFlexibleServer resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure PostgreSQLManagement API, you will need the `endpoint` of your Azure PostgreSQLManagement resource and a `credential`. The Azure PostgreSQLManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure PostgreSQLManagement resource in the [Azure Portal][azure_portal].

You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).

To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:

```bash
npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure PostgreSQLManagementFlexibleServer** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
You will also need to **register a new AAD application and grant access to Azure PostgreSQLManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand All @@ -66,22 +68,23 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
```


### JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts

### PostgreSQLManagementFlexibleServerClient

`PostgreSQLManagementFlexibleServerClient` is the primary interface for developers using the Azure PostgreSQLManagementFlexibleServer client library. Explore the methods on this client object to understand the different features of the Azure PostgreSQLManagementFlexibleServer service that you can access.
`PostgreSQLManagementFlexibleServerClient` is the primary interface for developers using the Azure PostgreSQLManagement client library. Explore the methods on this client object to understand the different features of the Azure PostgreSQLManagement service that you can access.

## Troubleshooting

Expand All @@ -99,7 +102,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/postgresql/arm-postgresql-flexible/samples) directory for detailed examples on how to use this library.

## Contributing

Expand All @@ -109,9 +112,6 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)


[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 0 additions & 8 deletions sdk/postgresql/arm-postgresql-flexible/_meta.json

This file was deleted.

4 changes: 1 addition & 3 deletions sdk/postgresql/arm-postgresql-flexible/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"extends": "../../../api-extractor-base.json"
}
{ "extends": "../../../api-extractor-base.json" }
14 changes: 14 additions & 0 deletions sdk/postgresql/arm-postgresql-flexible/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
},
]);
Comment thread
nasc17 marked this conversation as resolved.
Loading