@azure/arm-postgresql 6.0.2-alpha.20221102.1 → 6.1.0-alpha.20221202.2
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 +24 -11
- package/dist/index.js +271 -93
- 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 +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +84 -35
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +48 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +8 -4
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +8 -4
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +8 -4
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.js +8 -4
- package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
- package/dist-esm/src/operations/logFiles.js +8 -4
- package/dist-esm/src/operations/logFiles.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +19 -7
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/replicas.d.ts.map +1 -1
- package/dist-esm/src/operations/replicas.js +8 -4
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.js +8 -4
- package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.js +8 -4
- package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
- package/dist-esm/src/operations/serverKeys.js +19 -7
- package/dist-esm/src/operations/serverKeys.js.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js +19 -7
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +16 -8
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.js +19 -7
- package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -1
- package/dist-esm/src/postgreSQLManagementClient.js +20 -18
- package/dist-esm/src/postgreSQLManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-postgresql.api.md +68 -112
- package/src/index.ts +1 -0
- package/src/models/index.ts +85 -35
- package/src/operations/configurations.ts +13 -11
- package/src/operations/databases.ts +13 -11
- package/src/operations/firewallRules.ts +13 -11
- package/src/operations/locationBasedPerformanceTier.ts +10 -5
- package/src/operations/logFiles.ts +11 -9
- package/src/operations/privateEndpointConnections.ts +23 -13
- package/src/operations/privateLinkResources.ts +22 -12
- package/src/operations/replicas.ts +11 -9
- package/src/operations/serverAdministrators.ts +17 -7
- package/src/operations/serverBasedPerformanceTier.ts +15 -5
- package/src/operations/serverKeys.ts +26 -8
- package/src/operations/serverSecurityAlertPolicies.ts +23 -13
- package/src/operations/servers.ts +25 -11
- package/src/operations/virtualNetworkRules.ts +23 -13
- package/src/pagingHelper.ts +39 -0
- package/src/postgreSQLManagementClient.ts +26 -20
- package/types/arm-postgresql.d.ts +93 -35
- package/types/tsdoc-metadata.json +1 -1
|
@@ -16,7 +16,7 @@ export class PostgreSQLManagementClient extends coreClient.ServiceClient {
|
|
|
16
16
|
* @param options The parameter options
|
|
17
17
|
*/
|
|
18
18
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b;
|
|
19
|
+
var _a, _b, _c;
|
|
20
20
|
if (credentials === undefined) {
|
|
21
21
|
throw new Error("'credentials' cannot be null");
|
|
22
22
|
}
|
|
@@ -31,32 +31,34 @@ export class PostgreSQLManagementClient extends coreClient.ServiceClient {
|
|
|
31
31
|
requestContentType: "application/json; charset=utf-8",
|
|
32
32
|
credential: credentials
|
|
33
33
|
};
|
|
34
|
-
const packageDetails = `azsdk-js-arm-postgresql/6.0
|
|
34
|
+
const packageDetails = `azsdk-js-arm-postgresql/6.1.0`;
|
|
35
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
37
|
: `${packageDetails}`;
|
|
38
|
-
if (!options.credentialScopes) {
|
|
39
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
40
|
-
}
|
|
41
38
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
42
39
|
userAgentPrefix
|
|
43
|
-
},
|
|
40
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
44
41
|
super(optionsWithDefaults);
|
|
42
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
45
43
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
46
44
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
47
|
-
|
|
45
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
48
46
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
}
|
|
48
|
+
if (!options ||
|
|
49
|
+
!options.pipeline ||
|
|
50
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
51
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
52
|
+
this.pipeline.removePolicy({
|
|
53
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
54
|
+
});
|
|
55
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
|
+
credential: credentials,
|
|
57
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
58
|
+
challengeCallbacks: {
|
|
59
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
60
62
|
}
|
|
61
63
|
// Parameter assignments
|
|
62
64
|
this.subscriptionId = subscriptionId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgreSQLManagementClient.js","sourceRoot":"","sources":["../../src/postgreSQLManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,cAAc,EACd,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,cAAc,EACf,MAAM,cAAc,CAAC;AAuBtB,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;IAItE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAkD;;QAElD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA6C;YACzD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,+BAA+B,CAAC;QACvD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,
|
|
1
|
+
{"version":3,"file":"postgreSQLManagementClient.js","sourceRoot":"","sources":["../../src/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BF"}
|
|
@@ -6,24 +6,22 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
-
],
|
|
20
|
-
queryParametersToSkip: []
|
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
+
const replaceableVariables = {
|
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
+
};
|
|
16
|
+
const recorderOptions = {
|
|
17
|
+
envSetupForPlayback: replaceableVariables
|
|
21
18
|
};
|
|
22
19
|
describe("My test", () => {
|
|
23
20
|
let recorder;
|
|
24
21
|
beforeEach(function () {
|
|
25
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
recorder =
|
|
23
|
+
recorder = new Recorder(this.currentTest);
|
|
24
|
+
yield recorder.start(recorderOptions);
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
27
|
afterEach(function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for PostgreSQLManagementClient.",
|
|
6
|
-
"version": "6.0
|
|
6
|
+
"version": "6.1.0-alpha.20221202.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.6.1",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -36,13 +36,18 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~4.
|
|
39
|
+
"typescript": "~4.8.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"@azure/identity": "^2.0.1",
|
|
43
|
-
"@azure-tools/test-recorder": "^
|
|
43
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
44
|
+
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
|
|
44
45
|
"mocha": "^7.1.1",
|
|
45
|
-
"
|
|
46
|
+
"@types/chai": "^4.2.8",
|
|
47
|
+
"chai": "^4.2.0",
|
|
48
|
+
"cross-env": "^7.0.2",
|
|
49
|
+
"@types/node": "^14.0.0",
|
|
50
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
46
51
|
},
|
|
47
52
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/postgresql/arm-postgresql",
|
|
48
53
|
"repository": {
|
|
@@ -93,9 +98,8 @@
|
|
|
93
98
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
99
|
"unit-test:browser": "echo skipped",
|
|
95
100
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
-
"integration-test:node": "
|
|
97
|
-
"integration-test:browser": "echo skipped"
|
|
98
|
-
"docs": "echo skipped"
|
|
101
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
102
|
+
"integration-test:browser": "echo skipped"
|
|
99
103
|
},
|
|
100
104
|
"sideEffects": false,
|
|
101
105
|
"//metadata": {
|
|
@@ -28,14 +28,14 @@ export interface CloudError {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// @public
|
|
31
|
-
export
|
|
32
|
-
value?: string;
|
|
33
|
-
readonly description?: string;
|
|
34
|
-
readonly defaultValue?: string;
|
|
35
|
-
readonly dataType?: string;
|
|
31
|
+
export interface Configuration extends ProxyResource {
|
|
36
32
|
readonly allowedValues?: string;
|
|
33
|
+
readonly dataType?: string;
|
|
34
|
+
readonly defaultValue?: string;
|
|
35
|
+
readonly description?: string;
|
|
37
36
|
source?: string;
|
|
38
|
-
|
|
37
|
+
value?: string;
|
|
38
|
+
}
|
|
39
39
|
|
|
40
40
|
// @public
|
|
41
41
|
export interface ConfigurationListResult {
|
|
@@ -77,10 +77,10 @@ export type ConfigurationsListByServerResponse = ConfigurationListResult;
|
|
|
77
77
|
export type CreateMode = string;
|
|
78
78
|
|
|
79
79
|
// @public
|
|
80
|
-
export
|
|
80
|
+
export interface Database extends ProxyResource {
|
|
81
81
|
charset?: string;
|
|
82
82
|
collation?: string;
|
|
83
|
-
}
|
|
83
|
+
}
|
|
84
84
|
|
|
85
85
|
// @public
|
|
86
86
|
export interface DatabaseListResult {
|
|
@@ -142,10 +142,10 @@ export interface ErrorResponse {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
// @public
|
|
145
|
-
export
|
|
146
|
-
startIpAddress: string;
|
|
145
|
+
export interface FirewallRule extends ProxyResource {
|
|
147
146
|
endIpAddress: string;
|
|
148
|
-
|
|
147
|
+
startIpAddress: string;
|
|
148
|
+
}
|
|
149
149
|
|
|
150
150
|
// @public
|
|
151
151
|
export interface FirewallRuleListResult {
|
|
@@ -194,6 +194,9 @@ export type FirewallRulesListByServerResponse = FirewallRuleListResult;
|
|
|
194
194
|
// @public
|
|
195
195
|
export type GeoRedundantBackup = string;
|
|
196
196
|
|
|
197
|
+
// @public
|
|
198
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
199
|
+
|
|
197
200
|
// @public
|
|
198
201
|
export type IdentityType = string;
|
|
199
202
|
|
|
@@ -202,27 +205,20 @@ export type InfrastructureEncryption = string;
|
|
|
202
205
|
|
|
203
206
|
// @public
|
|
204
207
|
export enum KnownCreateMode {
|
|
205
|
-
// (undocumented)
|
|
206
208
|
Default = "Default",
|
|
207
|
-
// (undocumented)
|
|
208
209
|
GeoRestore = "GeoRestore",
|
|
209
|
-
// (undocumented)
|
|
210
210
|
PointInTimeRestore = "PointInTimeRestore",
|
|
211
|
-
// (undocumented)
|
|
212
211
|
Replica = "Replica"
|
|
213
212
|
}
|
|
214
213
|
|
|
215
214
|
// @public
|
|
216
215
|
export enum KnownGeoRedundantBackup {
|
|
217
|
-
// (undocumented)
|
|
218
216
|
Disabled = "Disabled",
|
|
219
|
-
// (undocumented)
|
|
220
217
|
Enabled = "Enabled"
|
|
221
218
|
}
|
|
222
219
|
|
|
223
220
|
// @public
|
|
224
221
|
export enum KnownIdentityType {
|
|
225
|
-
// (undocumented)
|
|
226
222
|
SystemAssigned = "SystemAssigned"
|
|
227
223
|
}
|
|
228
224
|
|
|
@@ -234,135 +230,94 @@ export enum KnownInfrastructureEncryption {
|
|
|
234
230
|
|
|
235
231
|
// @public
|
|
236
232
|
export enum KnownMinimalTlsVersionEnum {
|
|
237
|
-
// (undocumented)
|
|
238
233
|
TLS10 = "TLS1_0",
|
|
239
|
-
// (undocumented)
|
|
240
234
|
TLS11 = "TLS1_1",
|
|
241
|
-
// (undocumented)
|
|
242
235
|
TLS12 = "TLS1_2",
|
|
243
|
-
// (undocumented)
|
|
244
236
|
TLSEnforcementDisabled = "TLSEnforcementDisabled"
|
|
245
237
|
}
|
|
246
238
|
|
|
247
239
|
// @public
|
|
248
240
|
export enum KnownOperationOrigin {
|
|
249
|
-
// (undocumented)
|
|
250
241
|
NotSpecified = "NotSpecified",
|
|
251
|
-
// (undocumented)
|
|
252
242
|
System = "system",
|
|
253
|
-
// (undocumented)
|
|
254
243
|
User = "user"
|
|
255
244
|
}
|
|
256
245
|
|
|
257
246
|
// @public
|
|
258
247
|
export enum KnownPrivateEndpointProvisioningState {
|
|
259
|
-
// (undocumented)
|
|
260
248
|
Approving = "Approving",
|
|
261
|
-
// (undocumented)
|
|
262
249
|
Dropping = "Dropping",
|
|
263
|
-
// (undocumented)
|
|
264
250
|
Failed = "Failed",
|
|
265
|
-
// (undocumented)
|
|
266
251
|
Ready = "Ready",
|
|
267
|
-
// (undocumented)
|
|
268
252
|
Rejecting = "Rejecting"
|
|
269
253
|
}
|
|
270
254
|
|
|
271
255
|
// @public
|
|
272
256
|
export enum KnownPrivateLinkServiceConnectionStateActionsRequire {
|
|
273
|
-
// (undocumented)
|
|
274
257
|
None = "None"
|
|
275
258
|
}
|
|
276
259
|
|
|
277
260
|
// @public
|
|
278
261
|
export enum KnownPrivateLinkServiceConnectionStateStatus {
|
|
279
|
-
// (undocumented)
|
|
280
262
|
Approved = "Approved",
|
|
281
|
-
// (undocumented)
|
|
282
263
|
Disconnected = "Disconnected",
|
|
283
|
-
// (undocumented)
|
|
284
264
|
Pending = "Pending",
|
|
285
|
-
// (undocumented)
|
|
286
265
|
Rejected = "Rejected"
|
|
287
266
|
}
|
|
288
267
|
|
|
289
268
|
// @public
|
|
290
269
|
export enum KnownPublicNetworkAccessEnum {
|
|
291
|
-
// (undocumented)
|
|
292
270
|
Disabled = "Disabled",
|
|
293
|
-
// (undocumented)
|
|
294
271
|
Enabled = "Enabled"
|
|
295
272
|
}
|
|
296
273
|
|
|
297
274
|
// @public
|
|
298
275
|
export enum KnownSecurityAlertPolicyName {
|
|
299
|
-
// (undocumented)
|
|
300
276
|
Default = "Default"
|
|
301
277
|
}
|
|
302
278
|
|
|
303
279
|
// @public
|
|
304
280
|
export enum KnownServerKeyType {
|
|
305
|
-
// (undocumented)
|
|
306
281
|
AzureKeyVault = "AzureKeyVault"
|
|
307
282
|
}
|
|
308
283
|
|
|
309
284
|
// @public
|
|
310
285
|
export enum KnownServerState {
|
|
311
|
-
// (undocumented)
|
|
312
286
|
Disabled = "Disabled",
|
|
313
|
-
// (undocumented)
|
|
314
287
|
Dropping = "Dropping",
|
|
315
|
-
// (undocumented)
|
|
316
288
|
Inaccessible = "Inaccessible",
|
|
317
|
-
// (undocumented)
|
|
318
289
|
Ready = "Ready"
|
|
319
290
|
}
|
|
320
291
|
|
|
321
292
|
// @public
|
|
322
293
|
export enum KnownServerVersion {
|
|
323
|
-
// (undocumented)
|
|
324
294
|
Eleven = "11",
|
|
325
|
-
// (undocumented)
|
|
326
295
|
Nine5 = "9.5",
|
|
327
|
-
// (undocumented)
|
|
328
296
|
Nine6 = "9.6",
|
|
329
|
-
// (undocumented)
|
|
330
297
|
Ten = "10",
|
|
331
|
-
// (undocumented)
|
|
332
298
|
Ten0 = "10.0",
|
|
333
|
-
// (undocumented)
|
|
334
299
|
Ten2 = "10.2"
|
|
335
300
|
}
|
|
336
301
|
|
|
337
302
|
// @public
|
|
338
303
|
export enum KnownSkuTier {
|
|
339
|
-
// (undocumented)
|
|
340
304
|
Basic = "Basic",
|
|
341
|
-
// (undocumented)
|
|
342
305
|
GeneralPurpose = "GeneralPurpose",
|
|
343
|
-
// (undocumented)
|
|
344
306
|
MemoryOptimized = "MemoryOptimized"
|
|
345
307
|
}
|
|
346
308
|
|
|
347
309
|
// @public
|
|
348
310
|
export enum KnownStorageAutogrow {
|
|
349
|
-
// (undocumented)
|
|
350
311
|
Disabled = "Disabled",
|
|
351
|
-
// (undocumented)
|
|
352
312
|
Enabled = "Enabled"
|
|
353
313
|
}
|
|
354
314
|
|
|
355
315
|
// @public
|
|
356
316
|
export enum KnownVirtualNetworkRuleState {
|
|
357
|
-
// (undocumented)
|
|
358
317
|
Deleting = "Deleting",
|
|
359
|
-
// (undocumented)
|
|
360
318
|
Initializing = "Initializing",
|
|
361
|
-
// (undocumented)
|
|
362
319
|
InProgress = "InProgress",
|
|
363
|
-
// (undocumented)
|
|
364
320
|
Ready = "Ready",
|
|
365
|
-
// (undocumented)
|
|
366
321
|
Unknown = "Unknown"
|
|
367
322
|
}
|
|
368
323
|
|
|
@@ -379,13 +334,13 @@ export interface LocationBasedPerformanceTierListOptionalParams extends coreClie
|
|
|
379
334
|
export type LocationBasedPerformanceTierListResponse = PerformanceTierListResult;
|
|
380
335
|
|
|
381
336
|
// @public
|
|
382
|
-
export
|
|
383
|
-
sizeInKB?: number;
|
|
337
|
+
export interface LogFile extends ProxyResource {
|
|
384
338
|
readonly createdTime?: Date;
|
|
385
339
|
readonly lastModifiedTime?: Date;
|
|
340
|
+
sizeInKB?: number;
|
|
386
341
|
typePropertiesType?: string;
|
|
387
342
|
url?: string;
|
|
388
|
-
}
|
|
343
|
+
}
|
|
389
344
|
|
|
390
345
|
// @public
|
|
391
346
|
export interface LogFileListResult {
|
|
@@ -539,11 +494,11 @@ export interface PostgreSQLManagementClientOptionalParams extends coreClient.Ser
|
|
|
539
494
|
}
|
|
540
495
|
|
|
541
496
|
// @public
|
|
542
|
-
export
|
|
497
|
+
export interface PrivateEndpointConnection extends ProxyResource {
|
|
543
498
|
privateEndpoint?: PrivateEndpointProperty;
|
|
544
499
|
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty;
|
|
545
500
|
readonly provisioningState?: string;
|
|
546
|
-
}
|
|
501
|
+
}
|
|
547
502
|
|
|
548
503
|
// @public
|
|
549
504
|
export interface PrivateEndpointConnectionListResult {
|
|
@@ -617,9 +572,9 @@ export interface PrivateEndpointProperty {
|
|
|
617
572
|
export type PrivateEndpointProvisioningState = string;
|
|
618
573
|
|
|
619
574
|
// @public
|
|
620
|
-
export
|
|
575
|
+
export interface PrivateLinkResource extends ProxyResource {
|
|
621
576
|
readonly properties?: PrivateLinkResourceProperties;
|
|
622
|
-
}
|
|
577
|
+
}
|
|
623
578
|
|
|
624
579
|
// @public
|
|
625
580
|
export interface PrivateLinkResourceListResult {
|
|
@@ -674,20 +629,21 @@ export interface PrivateLinkServiceConnectionStateProperty {
|
|
|
674
629
|
export type PrivateLinkServiceConnectionStateStatus = string;
|
|
675
630
|
|
|
676
631
|
// @public
|
|
677
|
-
export
|
|
632
|
+
export interface ProxyResource extends Resource {
|
|
633
|
+
}
|
|
678
634
|
|
|
679
635
|
// @public
|
|
680
636
|
export type PublicNetworkAccessEnum = string;
|
|
681
637
|
|
|
682
638
|
// @public
|
|
683
|
-
export
|
|
639
|
+
export interface RecoverableServerResource extends ProxyResource {
|
|
640
|
+
readonly edition?: string;
|
|
641
|
+
readonly hardwareGeneration?: string;
|
|
684
642
|
readonly lastAvailableBackupDateTime?: string;
|
|
685
643
|
readonly serviceLevelObjective?: string;
|
|
686
|
-
readonly edition?: string;
|
|
687
644
|
readonly vCore?: number;
|
|
688
|
-
readonly hardwareGeneration?: string;
|
|
689
645
|
readonly version?: string;
|
|
690
|
-
}
|
|
646
|
+
}
|
|
691
647
|
|
|
692
648
|
// @public
|
|
693
649
|
export interface RecoverableServers {
|
|
@@ -731,33 +687,33 @@ export interface ResourceIdentity {
|
|
|
731
687
|
export type SecurityAlertPolicyName = string;
|
|
732
688
|
|
|
733
689
|
// @public
|
|
734
|
-
export
|
|
735
|
-
identity?: ResourceIdentity;
|
|
736
|
-
sku?: Sku;
|
|
690
|
+
export interface Server extends TrackedResource {
|
|
737
691
|
administratorLogin?: string;
|
|
738
|
-
version?: ServerVersion;
|
|
739
|
-
sslEnforcement?: SslEnforcementEnum;
|
|
740
|
-
minimalTlsVersion?: MinimalTlsVersionEnum;
|
|
741
692
|
readonly byokEnforcement?: string;
|
|
742
|
-
infrastructureEncryption?: InfrastructureEncryption;
|
|
743
|
-
userVisibleState?: ServerState;
|
|
744
|
-
fullyQualifiedDomainName?: string;
|
|
745
693
|
earliestRestoreDate?: Date;
|
|
746
|
-
|
|
747
|
-
|
|
694
|
+
fullyQualifiedDomainName?: string;
|
|
695
|
+
identity?: ResourceIdentity;
|
|
696
|
+
infrastructureEncryption?: InfrastructureEncryption;
|
|
748
697
|
masterServerId?: string;
|
|
749
|
-
|
|
750
|
-
publicNetworkAccess?: PublicNetworkAccessEnum;
|
|
698
|
+
minimalTlsVersion?: MinimalTlsVersionEnum;
|
|
751
699
|
readonly privateEndpointConnections?: ServerPrivateEndpointConnection[];
|
|
752
|
-
|
|
700
|
+
publicNetworkAccess?: PublicNetworkAccessEnum;
|
|
701
|
+
replicaCapacity?: number;
|
|
702
|
+
replicationRole?: string;
|
|
703
|
+
sku?: Sku;
|
|
704
|
+
sslEnforcement?: SslEnforcementEnum;
|
|
705
|
+
storageProfile?: StorageProfile;
|
|
706
|
+
userVisibleState?: ServerState;
|
|
707
|
+
version?: ServerVersion;
|
|
708
|
+
}
|
|
753
709
|
|
|
754
710
|
// @public
|
|
755
|
-
export
|
|
711
|
+
export interface ServerAdministratorResource extends ProxyResource {
|
|
756
712
|
administratorType?: "ActiveDirectory";
|
|
757
713
|
login?: string;
|
|
758
714
|
sid?: string;
|
|
759
715
|
tenantId?: string;
|
|
760
|
-
}
|
|
716
|
+
}
|
|
761
717
|
|
|
762
718
|
// @public
|
|
763
719
|
export interface ServerAdministratorResourceListResult {
|
|
@@ -827,12 +783,12 @@ export interface ServerForCreate {
|
|
|
827
783
|
}
|
|
828
784
|
|
|
829
785
|
// @public
|
|
830
|
-
export
|
|
786
|
+
export interface ServerKey extends ProxyResource {
|
|
787
|
+
readonly creationDate?: Date;
|
|
831
788
|
readonly kind?: string;
|
|
832
789
|
serverKeyType?: ServerKeyType;
|
|
833
790
|
uri?: string;
|
|
834
|
-
|
|
835
|
-
};
|
|
791
|
+
}
|
|
836
792
|
|
|
837
793
|
// @public
|
|
838
794
|
export interface ServerKeyListResult {
|
|
@@ -944,30 +900,30 @@ export interface ServerPropertiesForCreate {
|
|
|
944
900
|
export type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore | ServerPropertiesForReplica;
|
|
945
901
|
|
|
946
902
|
// @public
|
|
947
|
-
export
|
|
948
|
-
createMode: "Default";
|
|
903
|
+
export interface ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate {
|
|
949
904
|
administratorLogin: string;
|
|
950
905
|
administratorLoginPassword: string;
|
|
951
|
-
|
|
906
|
+
createMode: "Default";
|
|
907
|
+
}
|
|
952
908
|
|
|
953
909
|
// @public
|
|
954
|
-
export
|
|
910
|
+
export interface ServerPropertiesForGeoRestore extends ServerPropertiesForCreate {
|
|
955
911
|
createMode: "GeoRestore";
|
|
956
912
|
sourceServerId: string;
|
|
957
|
-
}
|
|
913
|
+
}
|
|
958
914
|
|
|
959
915
|
// @public
|
|
960
|
-
export
|
|
916
|
+
export interface ServerPropertiesForReplica extends ServerPropertiesForCreate {
|
|
961
917
|
createMode: "Replica";
|
|
962
918
|
sourceServerId: string;
|
|
963
|
-
}
|
|
919
|
+
}
|
|
964
920
|
|
|
965
921
|
// @public
|
|
966
|
-
export
|
|
922
|
+
export interface ServerPropertiesForRestore extends ServerPropertiesForCreate {
|
|
967
923
|
createMode: "PointInTimeRestore";
|
|
968
|
-
sourceServerId: string;
|
|
969
924
|
restorePointInTime: Date;
|
|
970
|
-
|
|
925
|
+
sourceServerId: string;
|
|
926
|
+
}
|
|
971
927
|
|
|
972
928
|
// @public
|
|
973
929
|
export interface Servers {
|
|
@@ -1038,15 +994,15 @@ export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends c
|
|
|
1038
994
|
export type ServerSecurityAlertPoliciesListByServerResponse = ServerSecurityAlertPolicyListResult;
|
|
1039
995
|
|
|
1040
996
|
// @public
|
|
1041
|
-
export
|
|
1042
|
-
state?: ServerSecurityAlertPolicyState;
|
|
997
|
+
export interface ServerSecurityAlertPolicy extends ProxyResource {
|
|
1043
998
|
disabledAlerts?: string[];
|
|
1044
|
-
emailAddresses?: string[];
|
|
1045
999
|
emailAccountAdmins?: boolean;
|
|
1046
|
-
|
|
1047
|
-
storageAccountAccessKey?: string;
|
|
1000
|
+
emailAddresses?: string[];
|
|
1048
1001
|
retentionDays?: number;
|
|
1049
|
-
|
|
1002
|
+
state?: ServerSecurityAlertPolicyState;
|
|
1003
|
+
storageAccountAccessKey?: string;
|
|
1004
|
+
storageEndpoint?: string;
|
|
1005
|
+
}
|
|
1050
1006
|
|
|
1051
1007
|
// @public
|
|
1052
1008
|
export interface ServerSecurityAlertPolicyListResult {
|
|
@@ -1149,19 +1105,19 @@ export interface TagsObject {
|
|
|
1149
1105
|
}
|
|
1150
1106
|
|
|
1151
1107
|
// @public
|
|
1152
|
-
export
|
|
1108
|
+
export interface TrackedResource extends Resource {
|
|
1109
|
+
location: string;
|
|
1153
1110
|
tags?: {
|
|
1154
1111
|
[propertyName: string]: string;
|
|
1155
1112
|
};
|
|
1156
|
-
|
|
1157
|
-
};
|
|
1113
|
+
}
|
|
1158
1114
|
|
|
1159
1115
|
// @public
|
|
1160
|
-
export
|
|
1161
|
-
virtualNetworkSubnetId?: string;
|
|
1116
|
+
export interface VirtualNetworkRule extends ProxyResource {
|
|
1162
1117
|
ignoreMissingVnetServiceEndpoint?: boolean;
|
|
1163
1118
|
readonly state?: VirtualNetworkRuleState;
|
|
1164
|
-
|
|
1119
|
+
virtualNetworkSubnetId?: string;
|
|
1120
|
+
}
|
|
1165
1121
|
|
|
1166
1122
|
// @public
|
|
1167
1123
|
export interface VirtualNetworkRuleListResult {
|
package/src/index.ts
CHANGED