Skip to content

Commit e1078aa

Browse files
authored
[Automation] Generate Fluent Lite from Swagger postgresql#package-2020-01-01 (#43545)
1 parent 31d8ff6 commit e1078aa

File tree

333 files changed

+15119
-4752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+15119
-4752
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ com.azure.resourcemanager:azure-resourcemanager-trafficmanager;2.45.0;2.46.0
292292
com.azure.resourcemanager:azure-resourcemanager-test;2.0.0-beta.1;2.0.0-beta.1
293293
com.azure.resourcemanager:azure-resourcemanager-mediaservices;2.3.0;2.4.0-beta.3
294294
com.azure.resourcemanager:azure-resourcemanager-mysql;1.0.2;1.1.0-beta.1
295-
com.azure.resourcemanager:azure-resourcemanager-postgresql;1.0.2;1.1.0-beta.1
295+
com.azure.resourcemanager:azure-resourcemanager-postgresql;1.0.2;1.1.0
296296
com.azure.resourcemanager:azure-resourcemanager-hdinsight;1.0.0;1.1.0-beta.3
297297
com.azure.resourcemanager:azure-resourcemanager-sqlvirtualmachine;1.0.0-beta.5;1.0.0-beta.6
298298
com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0-beta.3;1.1.0-beta.1

sdk/postgresql/azure-resourcemanager-postgresql/CHANGELOG.md

Lines changed: 73 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,83 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0 (2024-12-23)
44

5-
### Features Added
5+
- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2020-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### Serialization/Deserialization change
10+
11+
- `Jackson` is removed from dependency and no longer supported.
12+
13+
##### Migration Guide
14+
15+
If you are using `Jackson`/`ObjectMapper` for manual serialization/deserialization, configure your `ObjectMapper` for backward compatibility:
16+
```java
17+
objectMapper.registerModule(com.azure.core.serializer.json.jackson.JacksonJsonProvider.getJsonSerializableDatabindModule());
18+
```
19+
20+
### Features Added
21+
22+
#### `models.ServerPropertiesForRestore` was modified
23+
24+
* `createMode()` was added
25+
26+
#### `models.FirewallRule` was modified
27+
28+
* `resourceGroupName()` was added
29+
30+
#### `models.VirtualNetworkRule` was modified
31+
32+
* `resourceGroupName()` was added
33+
34+
#### `models.ServerPropertiesForReplica` was modified
35+
36+
* `createMode()` was added
37+
38+
#### `models.Database` was modified
39+
40+
* `resourceGroupName()` was added
41+
42+
#### `models.ServerPropertiesForCreate` was modified
43+
44+
* `createMode()` was added
45+
46+
#### `models.PrivateEndpointConnection` was modified
47+
48+
* `resourceGroupName()` was added
49+
50+
#### `PostgreSqlManager` was modified
51+
52+
* `authenticate(com.azure.core.http.HttpPipeline,com.azure.core.management.profile.AzureProfile)` was added
53+
54+
#### `models.ServerKey` was modified
55+
56+
* `resourceGroupName()` was added
57+
58+
#### `PostgreSqlManager$Configurable` was modified
59+
60+
* `withRetryOptions(com.azure.core.http.policy.RetryOptions)` was added
61+
62+
#### `models.Server` was modified
63+
64+
* `resourceGroupName()` was added
65+
66+
#### `models.Configuration` was modified
67+
68+
* `resourceGroupName()` was added
69+
70+
#### `models.ServerSecurityAlertPolicy` was modified
71+
72+
* `resourceGroupName()` was added
73+
74+
#### `models.ServerPropertiesForDefaultCreate` was modified
75+
76+
* `createMode()` was added
77+
78+
#### `models.ServerPropertiesForGeoRestore` was modified
1079

11-
### Other Changes
80+
* `createMode()` was added
1281

1382
## 1.0.2 (2022-01-24)
1483

sdk/postgresql/azure-resourcemanager-postgresql/README.md

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-postgresql</artifactId>
35-
<version>1.0.2</version>
35+
<version>1.1.0</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -41,19 +41,15 @@ Various documentation is available to help you get started
4141

4242
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
4343

44-
[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
44+
[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
4545

4646
### Authentication
4747

48-
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
48+
Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
4949

50-
- `AZURE_CLIENT_ID` for Azure client ID.
51-
- `AZURE_TENANT_ID` for Azure tenant ID.
52-
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
50+
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
5351

54-
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
55-
56-
With above configuration, `azure` client can be authenticated by following code:
52+
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5753

5854
```java
5955
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -74,6 +70,28 @@ See [API design][design] for general introduction on design and key concepts on
7470

7571
## Examples
7672

73+
```java
74+
server = postgreSqlManager.servers()
75+
.define(serverName)
76+
.withRegion(REGION)
77+
.withExistingResourceGroup(resourceGroupName)
78+
.withProperties(new ServerPropertiesForDefaultCreate().withAdministratorLogin(adminName)
79+
.withAdministratorLoginPassword(adminPwd)
80+
.withStorageProfile(new StorageProfile().withBackupRetentionDays(7)
81+
.withGeoRedundantBackup(GeoRedundantBackup.DISABLED)
82+
.withStorageMB(102400)
83+
.withStorageAutogrow(StorageAutogrow.ENABLED))
84+
.withSslEnforcement(SslEnforcementEnum.ENABLED)
85+
.withPublicNetworkAccess(PublicNetworkAccessEnum.ENABLED)
86+
.withInfrastructureEncryption(InfrastructureEncryption.DISABLED)
87+
.withVersion(ServerVersion.ONE_ONE))
88+
.withIdentity(new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED))
89+
.withSku(new Sku().withName("GP_Gen5_4")
90+
.withTier(SkuTier.GENERAL_PURPOSE)
91+
.withCapacity(4)
92+
.withFamily("Gen5"))
93+
.create();
94+
```
7795
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/postgresql/azure-resourcemanager-postgresql/SAMPLE.md)
7896

7997

@@ -83,20 +101,26 @@ See [API design][design] for general introduction on design and key concepts on
83101

84102
## Contributing
85103

86-
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
104+
For details on contributing to this repository, see the [contributing guide][cg].
87105

88-
1. Fork it
89-
1. Create your feature branch (`git checkout -b my-new-feature`)
90-
1. Commit your changes (`git commit -am 'Add some feature'`)
91-
1. Push to the branch (`git push origin my-new-feature`)
92-
1. Create new Pull Request
106+
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.microsoft.com>.
107+
108+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
109+
110+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact <[email protected]> with any additional questions or comments.
93111

94112
<!-- LINKS -->
95113
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
96114
[docs]: https://azure.github.io/azure-sdk-for-java/
97-
[jdk]: https://docs.microsoft.com/java/azure/jdk/
115+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
98116
[azure_subscription]: https://azure.microsoft.com/free/
99117
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
118+
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
100119
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
101120
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
102121
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
122+
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
123+
[coc]: https://opensource.microsoft.com/codeofconduct/
124+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
125+
126+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fpostgresql%2Fazure-resourcemanager-postgresql%2FREADME.png)

0 commit comments

Comments
 (0)