@azure/arm-postgresql 6.0.0-beta.1 → 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.
- package/CHANGELOG.md +7 -10
- package/README.md +4 -0
- package/dist/index.js +34 -54
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +18 -18
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +29 -29
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.d.ts +2 -2
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts +2 -2
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +2 -2
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts +2 -2
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts +2 -2
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/logFiles.d.ts +2 -2
- package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
- package/dist-esm/src/operations/logFiles.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/recoverableServers.d.ts +2 -2
- package/dist-esm/src/operations/recoverableServers.d.ts.map +1 -1
- package/dist-esm/src/operations/recoverableServers.js.map +1 -1
- package/dist-esm/src/operations/replicas.d.ts +2 -2
- package/dist-esm/src/operations/replicas.d.ts.map +1 -1
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.d.ts +2 -2
- package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts +2 -2
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/serverKeys.d.ts +2 -2
- package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
- package/dist-esm/src/operations/serverKeys.js.map +1 -1
- package/dist-esm/src/operations/serverParameters.d.ts +2 -2
- package/dist-esm/src/operations/serverParameters.d.ts.map +1 -1
- package/dist-esm/src/operations/serverParameters.js.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts +2 -2
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts +2 -2
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.d.ts +2 -2
- package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
- package/dist-esm/src/postgreSQLManagementClient.d.ts +4 -2
- package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -1
- package/dist-esm/src/postgreSQLManagementClient.js +31 -3
- package/dist-esm/src/postgreSQLManagementClient.js.map +1 -1
- package/package.json +8 -8
- package/review/arm-postgresql.api.md +5 -11
- package/src/index.ts +0 -1
- package/src/models/index.ts +19 -19
- package/src/models/mappers.ts +30 -30
- package/src/operations/checkNameAvailability.ts +3 -3
- package/src/operations/configurations.ts +3 -3
- package/src/operations/databases.ts +3 -3
- package/src/operations/firewallRules.ts +3 -3
- package/src/operations/locationBasedPerformanceTier.ts +3 -3
- package/src/operations/logFiles.ts +3 -3
- package/src/operations/operations.ts +3 -3
- package/src/operations/privateEndpointConnections.ts +3 -3
- package/src/operations/privateLinkResources.ts +3 -3
- package/src/operations/recoverableServers.ts +3 -3
- package/src/operations/replicas.ts +3 -3
- package/src/operations/serverAdministrators.ts +3 -3
- package/src/operations/serverBasedPerformanceTier.ts +3 -3
- package/src/operations/serverKeys.ts +3 -3
- package/src/operations/serverParameters.ts +3 -3
- package/src/operations/serverSecurityAlertPolicies.ts +3 -3
- package/src/operations/servers.ts +3 -3
- package/src/operations/virtualNetworkRules.ts +3 -3
- package/src/postgreSQLManagementClient.ts +44 -3
- package/types/arm-postgresql.d.ts +3 -13
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/postgreSQLManagementClientContext.d.ts +0 -15
- package/dist-esm/src/postgreSQLManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/postgreSQLManagementClientContext.js +0 -48
- package/dist-esm/src/postgreSQLManagementClientContext.js.map +0 -1
- package/src/postgreSQLManagementClientContext.ts +0 -68
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 6.0.0 (2021-12-14)
|
|
2
4
|
|
|
3
|
-
|
|
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
|
-
|
|
7
|
+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
6
8
|
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
- 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.
|
|
11
|
-
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
|
|
12
|
-
- 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.
|
|
13
|
-
- 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`.
|
|
14
|
-
- 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
|
|
5781
|
+
class PostgreSQLManagementClient extends coreClient.ServiceClient {
|
|
5782
5782
|
/**
|
|
5783
|
-
* Initializes a new instance of the
|
|
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
|
|
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
|