@azure/arm-postgresql 6.0.0-alpha.20211103.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +7 -22
  2. package/README.md +4 -0
  3. package/dist/index.js +34 -54
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +0 -1
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/models/index.d.ts +18 -18
  12. package/dist-esm/src/models/index.d.ts.map +1 -1
  13. package/dist-esm/src/models/mappers.d.ts +1 -1
  14. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  15. package/dist-esm/src/models/mappers.js +29 -29
  16. package/dist-esm/src/models/mappers.js.map +1 -1
  17. package/dist-esm/src/operations/checkNameAvailability.d.ts +2 -2
  18. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
  19. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
  20. package/dist-esm/src/operations/configurations.d.ts +2 -2
  21. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  22. package/dist-esm/src/operations/configurations.js.map +1 -1
  23. package/dist-esm/src/operations/databases.d.ts +2 -2
  24. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  25. package/dist-esm/src/operations/databases.js.map +1 -1
  26. package/dist-esm/src/operations/firewallRules.d.ts +2 -2
  27. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  28. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  29. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts +2 -2
  30. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
  31. package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
  32. package/dist-esm/src/operations/logFiles.d.ts +2 -2
  33. package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
  34. package/dist-esm/src/operations/logFiles.js.map +1 -1
  35. package/dist-esm/src/operations/operations.d.ts +2 -2
  36. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  37. package/dist-esm/src/operations/operations.js.map +1 -1
  38. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  39. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  40. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  41. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  42. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  43. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  44. package/dist-esm/src/operations/recoverableServers.d.ts +2 -2
  45. package/dist-esm/src/operations/recoverableServers.d.ts.map +1 -1
  46. package/dist-esm/src/operations/recoverableServers.js.map +1 -1
  47. package/dist-esm/src/operations/replicas.d.ts +2 -2
  48. package/dist-esm/src/operations/replicas.d.ts.map +1 -1
  49. package/dist-esm/src/operations/replicas.js.map +1 -1
  50. package/dist-esm/src/operations/serverAdministrators.d.ts +2 -2
  51. package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
  52. package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
  53. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts +2 -2
  54. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
  55. package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
  56. package/dist-esm/src/operations/serverKeys.d.ts +2 -2
  57. package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
  58. package/dist-esm/src/operations/serverKeys.js.map +1 -1
  59. package/dist-esm/src/operations/serverParameters.d.ts +2 -2
  60. package/dist-esm/src/operations/serverParameters.d.ts.map +1 -1
  61. package/dist-esm/src/operations/serverParameters.js.map +1 -1
  62. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts +2 -2
  63. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
  64. package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
  65. package/dist-esm/src/operations/servers.d.ts +2 -2
  66. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  67. package/dist-esm/src/operations/servers.js.map +1 -1
  68. package/dist-esm/src/operations/virtualNetworkRules.d.ts +2 -2
  69. package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
  70. package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
  71. package/dist-esm/src/postgreSQLManagementClient.d.ts +4 -2
  72. package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -1
  73. package/dist-esm/src/postgreSQLManagementClient.js +31 -3
  74. package/dist-esm/src/postgreSQLManagementClient.js.map +1 -1
  75. package/package.json +10 -20
  76. package/review/arm-postgresql.api.md +5 -11
  77. package/src/index.ts +0 -1
  78. package/src/models/index.ts +19 -19
  79. package/src/models/mappers.ts +30 -30
  80. package/src/operations/checkNameAvailability.ts +3 -3
  81. package/src/operations/configurations.ts +3 -3
  82. package/src/operations/databases.ts +3 -3
  83. package/src/operations/firewallRules.ts +3 -3
  84. package/src/operations/locationBasedPerformanceTier.ts +3 -3
  85. package/src/operations/logFiles.ts +3 -3
  86. package/src/operations/operations.ts +3 -3
  87. package/src/operations/privateEndpointConnections.ts +3 -3
  88. package/src/operations/privateLinkResources.ts +3 -3
  89. package/src/operations/recoverableServers.ts +3 -3
  90. package/src/operations/replicas.ts +3 -3
  91. package/src/operations/serverAdministrators.ts +3 -3
  92. package/src/operations/serverBasedPerformanceTier.ts +3 -3
  93. package/src/operations/serverKeys.ts +3 -3
  94. package/src/operations/serverParameters.ts +3 -3
  95. package/src/operations/serverSecurityAlertPolicies.ts +3 -3
  96. package/src/operations/servers.ts +3 -3
  97. package/src/operations/virtualNetworkRules.ts +3 -3
  98. package/src/postgreSQLManagementClient.ts +44 -3
  99. package/types/arm-postgresql.d.ts +3 -13
  100. package/types/tsdoc-metadata.json +1 -1
  101. package/dist-esm/src/postgreSQLManagementClientContext.d.ts +0 -15
  102. package/dist-esm/src/postgreSQLManagementClientContext.d.ts.map +0 -1
  103. package/dist-esm/src/postgreSQLManagementClientContext.js +0 -48
  104. package/dist-esm/src/postgreSQLManagementClientContext.js.map +0 -1
  105. package/src/postgreSQLManagementClientContext.ts +0 -68
package/CHANGELOG.md CHANGED
@@ -1,26 +1,11 @@
1
- ## Release History
1
+ # Release History
2
+
3
+ ## 6.0.0 (2021-12-14)
2
4
 
3
- ### 6.0.0-beta.2 (Unreleased)
5
+ The package of @azure/arm-postgresql is using our next generation design principles since version 6.0.0, which contains breaking changes.
4
6
 
5
- #### Features Added
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- #### Breaking Changes
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- #### Bugs Fixed
10
-
11
- #### Other Changes
12
-
13
- ### 6.0.0-beta.1 (2021-10-19)
14
-
15
- This is the first preview for the new version of the `@azure/arm-postgresql` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
16
-
17
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
18
-
19
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
20
-
21
- **Noteworthy changes and features**
22
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
23
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
24
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
25
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
26
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
53
  const client = new PostgreSQLManagementClient(new DefaultAzureCredential(), subscriptionId);
54
54
  ```
55
55
 
56
+
57
+ ### JavaScript Bundle
58
+ 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).
59
+
56
60
  ## Key concepts
57
61
 
58
62
  ### PostgreSQLManagementClient
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
7
  var coreLro = require('@azure/core-lro');
8
8
 
9
9
  /*
@@ -310,35 +310,6 @@ const StorageProfile = {
310
310
  }
311
311
  }
312
312
  };
313
- const Resource = {
314
- type: {
315
- name: "Composite",
316
- className: "Resource",
317
- modelProperties: {
318
- id: {
319
- serializedName: "id",
320
- readOnly: true,
321
- type: {
322
- name: "String"
323
- }
324
- },
325
- name: {
326
- serializedName: "name",
327
- readOnly: true,
328
- type: {
329
- name: "String"
330
- }
331
- },
332
- type: {
333
- serializedName: "type",
334
- readOnly: true,
335
- type: {
336
- name: "String"
337
- }
338
- }
339
- }
340
- }
341
- };
342
313
  const ServerPrivateEndpointConnection = {
343
314
  type: {
344
315
  name: "Composite",
@@ -433,6 +404,35 @@ const ServerPrivateLinkServiceConnectionStateProperty = {
433
404
  }
434
405
  }
435
406
  };
407
+ const Resource = {
408
+ type: {
409
+ name: "Composite",
410
+ className: "Resource",
411
+ modelProperties: {
412
+ id: {
413
+ serializedName: "id",
414
+ readOnly: true,
415
+ type: {
416
+ name: "String"
417
+ }
418
+ },
419
+ name: {
420
+ serializedName: "name",
421
+ readOnly: true,
422
+ type: {
423
+ name: "String"
424
+ }
425
+ },
426
+ type: {
427
+ serializedName: "type",
428
+ readOnly: true,
429
+ type: {
430
+ name: "String"
431
+ }
432
+ }
433
+ }
434
+ }
435
+ };
436
436
  const CloudError = {
437
437
  type: {
438
438
  name: "Composite",
@@ -1766,11 +1766,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
1766
1766
  Sku: Sku,
1767
1767
  ServerPropertiesForCreate: ServerPropertiesForCreate,
1768
1768
  StorageProfile: StorageProfile,
1769
- Resource: Resource,
1770
1769
  ServerPrivateEndpointConnection: ServerPrivateEndpointConnection,
1771
1770
  ServerPrivateEndpointConnectionProperties: ServerPrivateEndpointConnectionProperties,
1772
1771
  PrivateEndpointProperty: PrivateEndpointProperty,
1773
1772
  ServerPrivateLinkServiceConnectionStateProperty: ServerPrivateLinkServiceConnectionStateProperty,
1773
+ Resource: Resource,
1774
1774
  CloudError: CloudError,
1775
1775
  ErrorResponse: ErrorResponse,
1776
1776
  ErrorAdditionalInfo: ErrorAdditionalInfo,
@@ -5778,9 +5778,9 @@ const listNextOperationSpec = {
5778
5778
  * Code generated by Microsoft (R) AutoRest Code Generator.
5779
5779
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5780
5780
  */
5781
- class PostgreSQLManagementClientContext extends coreClient.ServiceClient {
5781
+ class PostgreSQLManagementClient extends coreClient.ServiceClient {
5782
5782
  /**
5783
- * Initializes a new instance of the PostgreSQLManagementClientContext class.
5783
+ * Initializes a new instance of the PostgreSQLManagementClient class.
5784
5784
  * @param credentials Subscription credentials which uniquely identify client subscription.
5785
5785
  * @param subscriptionId The ID of the target subscription.
5786
5786
  * @param options The parameter options
@@ -5800,7 +5800,7 @@ class PostgreSQLManagementClientContext extends coreClient.ServiceClient {
5800
5800
  requestContentType: "application/json; charset=utf-8",
5801
5801
  credential: credentials
5802
5802
  };
5803
- const packageDetails = `azsdk-js-arm-postgresql/6.0.0-beta.1`;
5803
+ const packageDetails = `azsdk-js-arm-postgresql/6.0.0`;
5804
5804
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5805
5805
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
5806
5806
  : `${packageDetails}`;
@@ -5815,25 +5815,6 @@ class PostgreSQLManagementClientContext extends coreClient.ServiceClient {
5815
5815
  this.subscriptionId = subscriptionId;
5816
5816
  // Assigning values to Constant parameters
5817
5817
  this.$host = options.$host || "https://management.azure.com";
5818
- }
5819
- }
5820
-
5821
- /*
5822
- * Copyright (c) Microsoft Corporation.
5823
- * Licensed under the MIT License.
5824
- *
5825
- * Code generated by Microsoft (R) AutoRest Code Generator.
5826
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5827
- */
5828
- class PostgreSQLManagementClient extends PostgreSQLManagementClientContext {
5829
- /**
5830
- * Initializes a new instance of the PostgreSQLManagementClient class.
5831
- * @param credentials Subscription credentials which uniquely identify client subscription.
5832
- * @param subscriptionId The ID of the target subscription.
5833
- * @param options The parameter options
5834
- */
5835
- constructor(credentials, subscriptionId, options) {
5836
- super(credentials, subscriptionId, options);
5837
5818
  this.servers = new ServersImpl(this);
5838
5819
  this.replicas = new ReplicasImpl(this);
5839
5820
  this.firewallRules = new FirewallRulesImpl(this);
@@ -5856,5 +5837,4 @@ class PostgreSQLManagementClient extends PostgreSQLManagementClientContext {
5856
5837
  }
5857
5838
 
5858
5839
  exports.PostgreSQLManagementClient = PostgreSQLManagementClient;
5859
- exports.PostgreSQLManagementClientContext = PostgreSQLManagementClientContext;
5860
5840
  //# sourceMappingURL=index.js.map