@azure/arm-sqlvirtualmachine 5.0.0-beta.1 → 5.0.0-beta.4
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/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +689 -90
- 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/models/index.d.ts +233 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +45 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +333 -3
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -10
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js +7 -3
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +2 -2
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +33 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +142 -4
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +33 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +21 -3
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/package.json +31 -13
- package/review/arm-sqlvirtualmachine.api.md +171 -1
- package/rollup.config.js +6 -72
- package/src/models/index.ts +258 -3
- package/src/models/mappers.ts +343 -1
- package/src/models/parameters.ts +11 -11
- package/src/operations/availabilityGroupListeners.ts +7 -3
- package/src/operations/operations.ts +2 -2
- package/src/operations/sqlVirtualMachineGroups.ts +9 -3
- package/src/operations/sqlVirtualMachines.ts +208 -4
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
- package/src/sqlVirtualMachineManagementClient.ts +28 -3
- package/tsconfig.json +12 -4
- package/types/arm-sqlvirtualmachine.d.ts +287 -3
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
9
10
|
import { AvailabilityGroupListenersImpl, OperationsImpl, SqlVirtualMachineGroupsImpl, SqlVirtualMachinesImpl } from "./operations";
|
|
10
11
|
export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
11
12
|
/**
|
|
@@ -15,6 +16,7 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
15
16
|
* @param options The parameter options
|
|
16
17
|
*/
|
|
17
18
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
var _a, _b;
|
|
18
20
|
if (credentials === undefined) {
|
|
19
21
|
throw new Error("'credentials' cannot be null");
|
|
20
22
|
}
|
|
@@ -29,7 +31,7 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
29
31
|
requestContentType: "application/json; charset=utf-8",
|
|
30
32
|
credential: credentials
|
|
31
33
|
};
|
|
32
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/
|
|
34
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.4`;
|
|
33
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
37
|
: `${packageDetails}`;
|
|
@@ -38,13 +40,29 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
38
40
|
}
|
|
39
41
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
42
|
userAgentPrefix
|
|
41
|
-
}, baseUri: options.endpoint
|
|
43
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
44
|
super(optionsWithDefaults);
|
|
45
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
46
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
47
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
48
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
49
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
50
|
+
this.pipeline.removePolicy({
|
|
51
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
52
|
+
});
|
|
53
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
55
|
+
challengeCallbacks: {
|
|
56
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
43
61
|
// Parameter assignments
|
|
44
62
|
this.subscriptionId = subscriptionId;
|
|
45
63
|
// Assigning values to Constant parameters
|
|
46
64
|
this.$host = options.$host || "https://management.azure.com";
|
|
47
|
-
this.apiVersion = options.apiVersion || "
|
|
65
|
+
this.apiVersion = options.apiVersion || "2021-11-01-preview";
|
|
48
66
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
49
67
|
this.operations = new OperationsImpl(this);
|
|
50
68
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlVirtualMachineManagementClient.js","sourceRoot":"","sources":["../../src/sqlVirtualMachineManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"sqlVirtualMachineManagementClient.js","sourceRoot":"","sources":["../../src/sqlVirtualMachineManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,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,GAAoD;YAChE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6CAA6C,CAAC;QACrE,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,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EACL,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,GACxE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;YACzE,MAAM,gBAAgB,GAAsC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;YAClG,MAAM,oCAAoC,GAAG,gBAAgB,CAAC,IAAI,CAChE,CAAC,cAAc,EAAE,EAAE,CACjB,cAAc,CAAC,IAAI;gBACnB,gBAAgB,CAAC,mCAAmC,CACvD,CAAC;YACF,IAAI,CAAC,oCAAoC,EAAE;gBACzC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;oBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;iBAC3D,CAAC,CAAC;gBACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;oBAC/C,MAAM,EAAE,GAAG,mBAAmB,CAAC,OAAO,WAAW;oBACjD,kBAAkB,EAAE;wBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;qBAC9C;iBACF,CAAC,CACH,CAAC;aACH;SACF;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CAMF"}
|
package/package.json
CHANGED
|
@@ -3,31 +3,39 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for SqlVirtualMachineManagementClient.",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
7
|
-
"engines": {
|
|
6
|
+
"version": "5.0.0-beta.4",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
8
10
|
"dependencies": {
|
|
9
11
|
"@azure/core-lro": "^2.2.0",
|
|
10
12
|
"@azure/abort-controller": "^1.0.0",
|
|
11
13
|
"@azure/core-paging": "^1.2.0",
|
|
12
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.5.0",
|
|
13
15
|
"@azure/core-auth": "^1.3.0",
|
|
14
|
-
"@azure/core-rest-pipeline": "^1.
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
15
17
|
"tslib": "^2.2.0"
|
|
16
18
|
},
|
|
17
|
-
"keywords": [
|
|
19
|
+
"keywords": [
|
|
20
|
+
"node",
|
|
21
|
+
"azure",
|
|
22
|
+
"typescript",
|
|
23
|
+
"browser",
|
|
24
|
+
"isomorphic"
|
|
25
|
+
],
|
|
18
26
|
"license": "MIT",
|
|
19
27
|
"main": "./dist/index.js",
|
|
20
28
|
"module": "./dist-esm/src/index.js",
|
|
21
29
|
"types": "./types/arm-sqlvirtualmachine.d.ts",
|
|
22
30
|
"devDependencies": {
|
|
23
|
-
"@microsoft/api-extractor": "
|
|
24
|
-
"@rollup/plugin-commonjs": "
|
|
25
|
-
"@rollup/plugin-json": "^4.
|
|
26
|
-
"@rollup/plugin-multi-entry": "^
|
|
27
|
-
"@rollup/plugin-node-resolve": "^
|
|
31
|
+
"@microsoft/api-extractor": "7.18.11",
|
|
32
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
33
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
28
36
|
"mkdirp": "^1.0.4",
|
|
29
|
-
"rollup": "^
|
|
30
|
-
"rollup-plugin-sourcemaps": "^0.
|
|
37
|
+
"rollup": "^2.66.1",
|
|
38
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
31
39
|
"typescript": "~4.2.0",
|
|
32
40
|
"uglify-js": "^3.4.9",
|
|
33
41
|
"rimraf": "^3.0.0",
|
|
@@ -41,7 +49,9 @@
|
|
|
41
49
|
"type": "git",
|
|
42
50
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
43
51
|
},
|
|
44
|
-
"bugs": {
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
54
|
+
},
|
|
45
55
|
"files": [
|
|
46
56
|
"dist/**/*.js",
|
|
47
57
|
"dist/**/*.js.map",
|
|
@@ -88,5 +98,13 @@
|
|
|
88
98
|
"docs": "echo skipped"
|
|
89
99
|
},
|
|
90
100
|
"sideEffects": false,
|
|
101
|
+
"//metadata": {
|
|
102
|
+
"constantPaths": [
|
|
103
|
+
{
|
|
104
|
+
"path": "src/sqlVirtualMachineManagementClient.ts",
|
|
105
|
+
"prefix": "packageDetails"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
91
109
|
"autoPublish": true
|
|
92
110
|
}
|
|
@@ -15,10 +15,32 @@ export interface AdditionalFeaturesServerConfigurations {
|
|
|
15
15
|
isRServicesEnabled?: boolean;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
// @public
|
|
19
|
+
export interface AgConfiguration {
|
|
20
|
+
readonly replicas?: AgReplica[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// @public
|
|
24
|
+
export interface AgReplica {
|
|
25
|
+
commit?: Commit;
|
|
26
|
+
failover?: Failover;
|
|
27
|
+
readableSecondary?: ReadableSecondary;
|
|
28
|
+
role?: Role;
|
|
29
|
+
sqlVirtualMachineInstanceId?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// @public
|
|
33
|
+
export interface AssessmentSettings {
|
|
34
|
+
enable?: boolean;
|
|
35
|
+
runImmediately?: boolean;
|
|
36
|
+
schedule?: Schedule;
|
|
37
|
+
}
|
|
38
|
+
|
|
18
39
|
// @public
|
|
19
40
|
export interface AutoBackupSettings {
|
|
20
41
|
backupScheduleType?: BackupScheduleType;
|
|
21
42
|
backupSystemDbs?: boolean;
|
|
43
|
+
daysOfWeek?: DaysOfWeek[];
|
|
22
44
|
enable?: boolean;
|
|
23
45
|
enableEncryption?: boolean;
|
|
24
46
|
fullBackupFrequency?: FullBackupFrequencyType;
|
|
@@ -29,6 +51,7 @@ export interface AutoBackupSettings {
|
|
|
29
51
|
retentionPeriod?: number;
|
|
30
52
|
storageAccessKey?: string;
|
|
31
53
|
storageAccountUrl?: string;
|
|
54
|
+
storageContainerName?: string;
|
|
32
55
|
}
|
|
33
56
|
|
|
34
57
|
// @public
|
|
@@ -41,11 +64,13 @@ export interface AutoPatchingSettings {
|
|
|
41
64
|
|
|
42
65
|
// @public
|
|
43
66
|
export type AvailabilityGroupListener = ProxyResource & {
|
|
67
|
+
readonly systemData?: SystemData;
|
|
44
68
|
readonly provisioningState?: string;
|
|
45
69
|
availabilityGroupName?: string;
|
|
46
70
|
loadBalancerConfigurations?: LoadBalancerConfiguration[];
|
|
47
71
|
createDefaultAvailabilityGroupIfNotExist?: boolean;
|
|
48
72
|
port?: number;
|
|
73
|
+
availabilityGroupConfiguration?: AgConfiguration;
|
|
49
74
|
};
|
|
50
75
|
|
|
51
76
|
// @public
|
|
@@ -81,6 +106,7 @@ export interface AvailabilityGroupListenersDeleteOptionalParams extends coreClie
|
|
|
81
106
|
|
|
82
107
|
// @public
|
|
83
108
|
export interface AvailabilityGroupListenersGetOptionalParams extends coreClient.OperationOptions {
|
|
109
|
+
expand?: string;
|
|
84
110
|
}
|
|
85
111
|
|
|
86
112
|
// @public
|
|
@@ -109,15 +135,27 @@ export type ClusterConfiguration = string;
|
|
|
109
135
|
// @public
|
|
110
136
|
export type ClusterManagerType = string;
|
|
111
137
|
|
|
138
|
+
// @public
|
|
139
|
+
export type Commit = string;
|
|
140
|
+
|
|
112
141
|
// @public
|
|
113
142
|
export type ConnectivityType = string;
|
|
114
143
|
|
|
144
|
+
// @public
|
|
145
|
+
export type CreatedByType = string;
|
|
146
|
+
|
|
115
147
|
// @public
|
|
116
148
|
export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
|
|
117
149
|
|
|
150
|
+
// @public
|
|
151
|
+
export type DaysOfWeek = string;
|
|
152
|
+
|
|
118
153
|
// @public
|
|
119
154
|
export type DiskConfigurationType = string;
|
|
120
155
|
|
|
156
|
+
// @public
|
|
157
|
+
export type Failover = string;
|
|
158
|
+
|
|
121
159
|
// @public
|
|
122
160
|
export type FullBackupFrequencyType = string;
|
|
123
161
|
|
|
@@ -153,6 +191,14 @@ export enum KnownClusterManagerType {
|
|
|
153
191
|
Wsfc = "WSFC"
|
|
154
192
|
}
|
|
155
193
|
|
|
194
|
+
// @public
|
|
195
|
+
export enum KnownCommit {
|
|
196
|
+
// (undocumented)
|
|
197
|
+
AsynchronousCommit = "ASYNCHRONOUS_COMMIT",
|
|
198
|
+
// (undocumented)
|
|
199
|
+
SynchronousCommit = "SYNCHRONOUS_COMMIT"
|
|
200
|
+
}
|
|
201
|
+
|
|
156
202
|
// @public
|
|
157
203
|
export enum KnownConnectivityType {
|
|
158
204
|
// (undocumented)
|
|
@@ -163,6 +209,36 @@ export enum KnownConnectivityType {
|
|
|
163
209
|
Public = "PUBLIC"
|
|
164
210
|
}
|
|
165
211
|
|
|
212
|
+
// @public
|
|
213
|
+
export enum KnownCreatedByType {
|
|
214
|
+
// (undocumented)
|
|
215
|
+
Application = "Application",
|
|
216
|
+
// (undocumented)
|
|
217
|
+
Key = "Key",
|
|
218
|
+
// (undocumented)
|
|
219
|
+
ManagedIdentity = "ManagedIdentity",
|
|
220
|
+
// (undocumented)
|
|
221
|
+
User = "User"
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// @public
|
|
225
|
+
export enum KnownDaysOfWeek {
|
|
226
|
+
// (undocumented)
|
|
227
|
+
Friday = "Friday",
|
|
228
|
+
// (undocumented)
|
|
229
|
+
Monday = "Monday",
|
|
230
|
+
// (undocumented)
|
|
231
|
+
Saturday = "Saturday",
|
|
232
|
+
// (undocumented)
|
|
233
|
+
Sunday = "Sunday",
|
|
234
|
+
// (undocumented)
|
|
235
|
+
Thursday = "Thursday",
|
|
236
|
+
// (undocumented)
|
|
237
|
+
Tuesday = "Tuesday",
|
|
238
|
+
// (undocumented)
|
|
239
|
+
Wednesday = "Wednesday"
|
|
240
|
+
}
|
|
241
|
+
|
|
166
242
|
// @public
|
|
167
243
|
export enum KnownDiskConfigurationType {
|
|
168
244
|
// (undocumented)
|
|
@@ -173,6 +249,14 @@ export enum KnownDiskConfigurationType {
|
|
|
173
249
|
NEW = "NEW"
|
|
174
250
|
}
|
|
175
251
|
|
|
252
|
+
// @public
|
|
253
|
+
export enum KnownFailover {
|
|
254
|
+
// (undocumented)
|
|
255
|
+
Automatic = "AUTOMATIC",
|
|
256
|
+
// (undocumented)
|
|
257
|
+
Manual = "MANUAL"
|
|
258
|
+
}
|
|
259
|
+
|
|
176
260
|
// @public
|
|
177
261
|
export enum KnownFullBackupFrequencyType {
|
|
178
262
|
// (undocumented)
|
|
@@ -183,6 +267,8 @@ export enum KnownFullBackupFrequencyType {
|
|
|
183
267
|
|
|
184
268
|
// @public
|
|
185
269
|
export enum KnownIdentityType {
|
|
270
|
+
// (undocumented)
|
|
271
|
+
None = "None",
|
|
186
272
|
// (undocumented)
|
|
187
273
|
SystemAssigned = "SystemAssigned"
|
|
188
274
|
}
|
|
@@ -195,6 +281,24 @@ export enum KnownOperationOrigin {
|
|
|
195
281
|
User = "user"
|
|
196
282
|
}
|
|
197
283
|
|
|
284
|
+
// @public
|
|
285
|
+
export enum KnownReadableSecondary {
|
|
286
|
+
// (undocumented)
|
|
287
|
+
ALL = "ALL",
|
|
288
|
+
// (undocumented)
|
|
289
|
+
NO = "NO",
|
|
290
|
+
// (undocumented)
|
|
291
|
+
ReadOnly = "READ_ONLY"
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// @public
|
|
295
|
+
export enum KnownRole {
|
|
296
|
+
// (undocumented)
|
|
297
|
+
Primary = "PRIMARY",
|
|
298
|
+
// (undocumented)
|
|
299
|
+
Secondary = "SECONDARY"
|
|
300
|
+
}
|
|
301
|
+
|
|
198
302
|
// @public
|
|
199
303
|
export enum KnownScaleType {
|
|
200
304
|
// (undocumented)
|
|
@@ -327,6 +431,9 @@ export interface PrivateIPAddress {
|
|
|
327
431
|
// @public
|
|
328
432
|
export type ProxyResource = Resource & {};
|
|
329
433
|
|
|
434
|
+
// @public
|
|
435
|
+
export type ReadableSecondary = string;
|
|
436
|
+
|
|
330
437
|
// @public
|
|
331
438
|
export interface Resource {
|
|
332
439
|
readonly id?: string;
|
|
@@ -341,13 +448,26 @@ export interface ResourceIdentity {
|
|
|
341
448
|
type?: IdentityType;
|
|
342
449
|
}
|
|
343
450
|
|
|
451
|
+
// @public
|
|
452
|
+
export type Role = string;
|
|
453
|
+
|
|
344
454
|
// @public
|
|
345
455
|
export type ScaleType = string;
|
|
346
456
|
|
|
457
|
+
// @public (undocumented)
|
|
458
|
+
export interface Schedule {
|
|
459
|
+
dayOfWeek?: DayOfWeek;
|
|
460
|
+
enable?: boolean;
|
|
461
|
+
monthlyOccurrence?: number;
|
|
462
|
+
startTime?: string;
|
|
463
|
+
weeklyInterval?: number;
|
|
464
|
+
}
|
|
465
|
+
|
|
347
466
|
// @public
|
|
348
467
|
export interface ServerConfigurationsManagementSettings {
|
|
349
468
|
additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
|
|
350
469
|
sqlConnectivityUpdateSettings?: SqlConnectivityUpdateSettings;
|
|
470
|
+
sqlInstanceSettings?: SQLInstanceSettings;
|
|
351
471
|
sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
|
|
352
472
|
sqlWorkloadTypeUpdateSettings?: SqlWorkloadTypeUpdateSettings;
|
|
353
473
|
}
|
|
@@ -363,6 +483,15 @@ export interface SqlConnectivityUpdateSettings {
|
|
|
363
483
|
// @public
|
|
364
484
|
export type SqlImageSku = string;
|
|
365
485
|
|
|
486
|
+
// @public
|
|
487
|
+
export interface SQLInstanceSettings {
|
|
488
|
+
collation?: string;
|
|
489
|
+
isOptimizeForAdHocWorkloadsEnabled?: boolean;
|
|
490
|
+
maxDop?: number;
|
|
491
|
+
maxServerMemoryMB?: number;
|
|
492
|
+
minServerMemoryMB?: number;
|
|
493
|
+
}
|
|
494
|
+
|
|
366
495
|
// @public
|
|
367
496
|
export type SqlManagementMode = string;
|
|
368
497
|
|
|
@@ -382,9 +511,21 @@ export interface SqlStorageUpdateSettings {
|
|
|
382
511
|
startingDeviceId?: number;
|
|
383
512
|
}
|
|
384
513
|
|
|
514
|
+
// @public (undocumented)
|
|
515
|
+
export interface SQLTempDbSettings {
|
|
516
|
+
dataFileCount?: number;
|
|
517
|
+
dataFileSize?: number;
|
|
518
|
+
dataGrowth?: number;
|
|
519
|
+
defaultFilePath?: string;
|
|
520
|
+
logFileSize?: number;
|
|
521
|
+
logGrowth?: number;
|
|
522
|
+
luns?: number[];
|
|
523
|
+
}
|
|
524
|
+
|
|
385
525
|
// @public
|
|
386
526
|
export type SqlVirtualMachine = TrackedResource & {
|
|
387
527
|
identity?: ResourceIdentity;
|
|
528
|
+
readonly systemData?: SystemData;
|
|
388
529
|
virtualMachineResourceId?: string;
|
|
389
530
|
readonly provisioningState?: string;
|
|
390
531
|
sqlImageOffer?: string;
|
|
@@ -398,10 +539,12 @@ export type SqlVirtualMachine = TrackedResource & {
|
|
|
398
539
|
keyVaultCredentialSettings?: KeyVaultCredentialSettings;
|
|
399
540
|
serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
|
|
400
541
|
storageConfigurationSettings?: StorageConfigurationSettings;
|
|
542
|
+
assessmentSettings?: AssessmentSettings;
|
|
401
543
|
};
|
|
402
544
|
|
|
403
545
|
// @public
|
|
404
546
|
export type SqlVirtualMachineGroup = TrackedResource & {
|
|
547
|
+
readonly systemData?: SystemData;
|
|
405
548
|
readonly provisioningState?: string;
|
|
406
549
|
sqlImageOffer?: string;
|
|
407
550
|
sqlImageSku?: SqlVmGroupImageSku;
|
|
@@ -534,6 +677,10 @@ export interface SqlVirtualMachines {
|
|
|
534
677
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SqlVirtualMachinesCreateOrUpdateResponse>;
|
|
535
678
|
beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
536
679
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<void>;
|
|
680
|
+
beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
681
|
+
beginRedeployAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<void>;
|
|
682
|
+
beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
683
|
+
beginStartAssessmentAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<void>;
|
|
537
684
|
beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<PollerLike<PollOperationState<SqlVirtualMachinesUpdateResponse>, SqlVirtualMachinesUpdateResponse>>;
|
|
538
685
|
beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SqlVirtualMachinesUpdateResponse>;
|
|
539
686
|
get(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesGetOptionalParams): Promise<SqlVirtualMachinesGetResponse>;
|
|
@@ -607,6 +754,18 @@ export interface SqlVirtualMachinesListOptionalParams extends coreClient.Operati
|
|
|
607
754
|
// @public
|
|
608
755
|
export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
|
|
609
756
|
|
|
757
|
+
// @public
|
|
758
|
+
export interface SqlVirtualMachinesRedeployOptionalParams extends coreClient.OperationOptions {
|
|
759
|
+
resumeFrom?: string;
|
|
760
|
+
updateIntervalInMs?: number;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
// @public
|
|
764
|
+
export interface SqlVirtualMachinesStartAssessmentOptionalParams extends coreClient.OperationOptions {
|
|
765
|
+
resumeFrom?: string;
|
|
766
|
+
updateIntervalInMs?: number;
|
|
767
|
+
}
|
|
768
|
+
|
|
610
769
|
// @public
|
|
611
770
|
export interface SqlVirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions {
|
|
612
771
|
resumeFrom?: string;
|
|
@@ -639,13 +798,24 @@ export interface StorageConfigurationSettings {
|
|
|
639
798
|
diskConfigurationType?: DiskConfigurationType;
|
|
640
799
|
sqlDataSettings?: SQLStorageSettings;
|
|
641
800
|
sqlLogSettings?: SQLStorageSettings;
|
|
642
|
-
|
|
801
|
+
sqlSystemDbOnDataDisk?: boolean;
|
|
802
|
+
sqlTempDbSettings?: SQLTempDbSettings;
|
|
643
803
|
storageWorkloadType?: StorageWorkloadType;
|
|
644
804
|
}
|
|
645
805
|
|
|
646
806
|
// @public
|
|
647
807
|
export type StorageWorkloadType = string;
|
|
648
808
|
|
|
809
|
+
// @public
|
|
810
|
+
export interface SystemData {
|
|
811
|
+
createdAt?: Date;
|
|
812
|
+
createdBy?: string;
|
|
813
|
+
createdByType?: CreatedByType;
|
|
814
|
+
lastModifiedAt?: Date;
|
|
815
|
+
lastModifiedBy?: string;
|
|
816
|
+
lastModifiedByType?: CreatedByType;
|
|
817
|
+
}
|
|
818
|
+
|
|
649
819
|
// @public
|
|
650
820
|
export type TrackedResource = Resource & {
|
|
651
821
|
location: string;
|
package/rollup.config.js
CHANGED
|
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|
|
14
14
|
|
|
15
15
|
import nodeBuiltins from "builtin-modules";
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
-
*
|
|
20
|
-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
-
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
-
* rollup's automatic discovery mechanism.
|
|
23
|
-
*
|
|
24
|
-
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
-
*/
|
|
26
|
-
export function openTelemetryCommonJs() {
|
|
27
|
-
const namedExports = {};
|
|
28
|
-
|
|
29
|
-
for (const key of [
|
|
30
|
-
"@opentelemetry/api",
|
|
31
|
-
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
-
]) {
|
|
33
|
-
namedExports[key] = [
|
|
34
|
-
"SpanKind",
|
|
35
|
-
"TraceFlags",
|
|
36
|
-
"getSpan",
|
|
37
|
-
"setSpan",
|
|
38
|
-
"SpanStatusCode",
|
|
39
|
-
"getSpanContext",
|
|
40
|
-
"setSpanContext"
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
-
|
|
46
|
-
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
-
namedExports[
|
|
48
|
-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
-
] = [
|
|
51
|
-
"SpanKind",
|
|
52
|
-
"TraceFlags",
|
|
53
|
-
"getSpan",
|
|
54
|
-
"setSpan",
|
|
55
|
-
"StatusCode",
|
|
56
|
-
"CanonicalCode",
|
|
57
|
-
"getSpanContext",
|
|
58
|
-
"setSpanContext"
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return namedExports;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
17
|
// #region Warning Handler
|
|
66
18
|
|
|
67
19
|
/**
|
|
68
|
-
* A function that can determine whether a
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
69
21
|
* the function returns `true`, then the warning will not be displayed.
|
|
70
22
|
*/
|
|
71
23
|
|
|
72
|
-
function
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
73
25
|
return (
|
|
74
26
|
warning.code === "EVAL" &&
|
|
75
27
|
warning.id &&
|
|
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|
|
78
30
|
);
|
|
79
31
|
}
|
|
80
32
|
|
|
81
|
-
function
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
82
34
|
return (
|
|
83
35
|
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
36
|
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
37
|
);
|
|
86
38
|
}
|
|
87
39
|
|
|
88
|
-
const warningInhibitors = [
|
|
89
|
-
ignoreChaiCircularDependencyWarnings,
|
|
90
|
-
ignoreNiseSinonEvalWarnings
|
|
91
|
-
];
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
92
41
|
|
|
93
42
|
/**
|
|
94
43
|
* Construct a warning handler for the shared rollup configuration
|
|
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|
|
122
71
|
nodeResolve({
|
|
123
72
|
mainFields: ["module", "browser"]
|
|
124
73
|
}),
|
|
125
|
-
cjs(
|
|
126
|
-
namedExports: {
|
|
127
|
-
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
-
// analyze its exports.
|
|
129
|
-
chai: [
|
|
130
|
-
"version",
|
|
131
|
-
"use",
|
|
132
|
-
"util",
|
|
133
|
-
"config",
|
|
134
|
-
"expect",
|
|
135
|
-
"should",
|
|
136
|
-
"assert"
|
|
137
|
-
],
|
|
138
|
-
...openTelemetryCommonJs()
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
74
|
+
cjs(),
|
|
141
75
|
json(),
|
|
142
76
|
sourcemaps()
|
|
143
77
|
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|
|
173
107
|
],
|
|
174
108
|
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
109
|
preserveSymlinks: false,
|
|
176
|
-
plugins: [sourcemaps(), nodeResolve()
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
177
111
|
};
|
|
178
112
|
|
|
179
113
|
const config = [baseConfig];
|