Skip to content

Commit bf096e8

Browse files
authored
release-sqlvirtualmachine-4.0.0 (Azure#11252)
1 parent a442db6 commit bf096e8

File tree

12 files changed

+302
-17
lines changed

12 files changed

+302
-17
lines changed

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ npm install @azure/arm-sqlvirtualmachine
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2223
```bash
23-
npm install @azure/ms-rest-nodeauth
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
@@ -101,4 +102,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
101102

102103
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
103104

104-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fsqlvirtualmachine%2Farm-sqlvirtualmachine%2FREADME.png)
105+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/README.png)

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "@azure/arm-sqlvirtualmachine",
33
"author": "Microsoft Corporation",
44
"description": "SqlVirtualMachineManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "3.1.0",
5+
"version": "4.0.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.3.2",
8-
"@azure/ms-rest-js": "^1.8.1",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,11 +20,11 @@
2020
"module": "./esm/sqlVirtualMachineManagementClient.js",
2121
"types": "./esm/sqlVirtualMachineManagementClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
2929
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/sqlvirtualmachine/arm-sqlvirtualmachine",
3030
"repository": {

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const config = {
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/models/availabilityGroupListenersMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ export {
2222
ResourceIdentity,
2323
ServerConfigurationsManagementSettings,
2424
SqlConnectivityUpdateSettings,
25+
SQLStorageSettings,
2526
SqlStorageUpdateSettings,
2627
SqlVirtualMachine,
2728
SqlVirtualMachineGroup,
2829
SqlWorkloadTypeUpdateSettings,
30+
StorageConfigurationSettings,
2931
TrackedResource,
3032
WsfcDomainCredentials,
3133
WsfcDomainProfile

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/models/index.ts

Lines changed: 95 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,46 @@ export interface ServerConfigurationsManagementSettings {
488488
additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
489489
}
490490

491+
/**
492+
* Set disk storage settings for SQL Server.
493+
*/
494+
export interface SQLStorageSettings {
495+
/**
496+
* Logical Unit Numbers for the disks.
497+
*/
498+
luns?: number[];
499+
/**
500+
* SQL Server default file path
501+
*/
502+
defaultFilePath?: string;
503+
}
504+
505+
/**
506+
* Storage Configurations for SQL Data, Log and TempDb.
507+
*/
508+
export interface StorageConfigurationSettings {
509+
/**
510+
* SQL Server Data Storage Settings.
511+
*/
512+
sqlDataSettings?: SQLStorageSettings;
513+
/**
514+
* SQL Server Log Storage Settings.
515+
*/
516+
sqlLogSettings?: SQLStorageSettings;
517+
/**
518+
* SQL Server TempDb Storage Settings.
519+
*/
520+
sqlTempDbSettings?: SQLStorageSettings;
521+
/**
522+
* Disk configuration to apply to SQL Server. Possible values include: 'NEW', 'EXTEND', 'ADD'
523+
*/
524+
diskConfigurationType?: DiskConfigurationType;
525+
/**
526+
* Storage workload type. Possible values include: 'GENERAL', 'OLTP', 'DW'
527+
*/
528+
storageWorkloadType?: StorageWorkloadType;
529+
}
530+
491531
/**
492532
* A SQL virtual machine.
493533
*/
@@ -510,7 +550,7 @@ export interface SqlVirtualMachine extends TrackedResource {
510550
*/
511551
sqlImageOffer?: string;
512552
/**
513-
* SQL Server license type. Possible values include: 'PAYG', 'AHUB'
553+
* SQL Server license type. Possible values include: 'PAYG', 'AHUB', 'DR'
514554
*/
515555
sqlServerLicenseType?: SqlServerLicenseType;
516556
/**
@@ -547,6 +587,10 @@ export interface SqlVirtualMachine extends TrackedResource {
547587
* SQL Server configuration management settings.
548588
*/
549589
serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
590+
/**
591+
* Storage Configuration Settings.
592+
*/
593+
storageConfigurationSettings?: StorageConfigurationSettings;
550594
}
551595

552596
/**
@@ -678,11 +722,11 @@ export type IdentityType = 'SystemAssigned';
678722

679723
/**
680724
* Defines values for SqlServerLicenseType.
681-
* Possible values include: 'PAYG', 'AHUB'
725+
* Possible values include: 'PAYG', 'AHUB', 'DR'
682726
* @readonly
683727
* @enum {string}
684728
*/
685-
export type SqlServerLicenseType = 'PAYG' | 'AHUB';
729+
export type SqlServerLicenseType = 'PAYG' | 'AHUB' | 'DR';
686730

687731
/**
688732
* Defines values for SqlManagementMode.
@@ -749,6 +793,14 @@ export type SqlWorkloadType = 'GENERAL' | 'OLTP' | 'DW';
749793
*/
750794
export type DiskConfigurationType = 'NEW' | 'EXTEND' | 'ADD';
751795

796+
/**
797+
* Defines values for StorageWorkloadType.
798+
* Possible values include: 'GENERAL', 'OLTP', 'DW'
799+
* @readonly
800+
* @enum {string}
801+
*/
802+
export type StorageWorkloadType = 'GENERAL' | 'OLTP' | 'DW';
803+
752804
/**
753805
* Contains response data for the get operation.
754806
*/
@@ -1069,6 +1121,26 @@ export type SqlVirtualMachineGroupsListNextResponse = SqlVirtualMachineGroupList
10691121
};
10701122
};
10711123

1124+
/**
1125+
* Contains response data for the listBySqlVmGroup operation.
1126+
*/
1127+
export type SqlVirtualMachinesListBySqlVmGroupResponse = SqlVirtualMachineListResult & {
1128+
/**
1129+
* The underlying HTTP response.
1130+
*/
1131+
_response: msRest.HttpResponse & {
1132+
/**
1133+
* The response body as text (string format)
1134+
*/
1135+
bodyAsText: string;
1136+
1137+
/**
1138+
* The response body as parsed JSON or XML
1139+
*/
1140+
parsedBody: SqlVirtualMachineListResult;
1141+
};
1142+
};
1143+
10721144
/**
10731145
* Contains response data for the list operation.
10741146
*/
@@ -1209,6 +1281,26 @@ export type SqlVirtualMachinesBeginUpdateResponse = SqlVirtualMachine & {
12091281
};
12101282
};
12111283

1284+
/**
1285+
* Contains response data for the listBySqlVmGroupNext operation.
1286+
*/
1287+
export type SqlVirtualMachinesListBySqlVmGroupNextResponse = SqlVirtualMachineListResult & {
1288+
/**
1289+
* The underlying HTTP response.
1290+
*/
1291+
_response: msRest.HttpResponse & {
1292+
/**
1293+
* The response body as text (string format)
1294+
*/
1295+
bodyAsText: string;
1296+
1297+
/**
1298+
* The response body as parsed JSON or XML
1299+
*/
1300+
parsedBody: SqlVirtualMachineListResult;
1301+
};
1302+
};
1303+
12121304
/**
12131305
* Contains response data for the listNext operation.
12141306
*/

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/models/mappers.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,76 @@ export const ServerConfigurationsManagementSettings: msRest.CompositeMapper = {
773773
}
774774
};
775775

776+
export const SQLStorageSettings: msRest.CompositeMapper = {
777+
serializedName: "SQLStorageSettings",
778+
type: {
779+
name: "Composite",
780+
className: "SQLStorageSettings",
781+
modelProperties: {
782+
luns: {
783+
serializedName: "luns",
784+
type: {
785+
name: "Sequence",
786+
element: {
787+
type: {
788+
name: "Number"
789+
}
790+
}
791+
}
792+
},
793+
defaultFilePath: {
794+
serializedName: "defaultFilePath",
795+
type: {
796+
name: "String"
797+
}
798+
}
799+
}
800+
}
801+
};
802+
803+
export const StorageConfigurationSettings: msRest.CompositeMapper = {
804+
serializedName: "StorageConfigurationSettings",
805+
type: {
806+
name: "Composite",
807+
className: "StorageConfigurationSettings",
808+
modelProperties: {
809+
sqlDataSettings: {
810+
serializedName: "sqlDataSettings",
811+
type: {
812+
name: "Composite",
813+
className: "SQLStorageSettings"
814+
}
815+
},
816+
sqlLogSettings: {
817+
serializedName: "sqlLogSettings",
818+
type: {
819+
name: "Composite",
820+
className: "SQLStorageSettings"
821+
}
822+
},
823+
sqlTempDbSettings: {
824+
serializedName: "sqlTempDbSettings",
825+
type: {
826+
name: "Composite",
827+
className: "SQLStorageSettings"
828+
}
829+
},
830+
diskConfigurationType: {
831+
serializedName: "diskConfigurationType",
832+
type: {
833+
name: "String"
834+
}
835+
},
836+
storageWorkloadType: {
837+
serializedName: "storageWorkloadType",
838+
type: {
839+
name: "String"
840+
}
841+
}
842+
}
843+
}
844+
};
845+
776846
export const SqlVirtualMachine: msRest.CompositeMapper = {
777847
serializedName: "SqlVirtualMachine",
778848
type: {
@@ -864,6 +934,13 @@ export const SqlVirtualMachine: msRest.CompositeMapper = {
864934
name: "Composite",
865935
className: "ServerConfigurationsManagementSettings"
866936
}
937+
},
938+
storageConfigurationSettings: {
939+
serializedName: "properties.storageConfigurationSettings",
940+
type: {
941+
name: "Composite",
942+
className: "StorageConfigurationSettings"
943+
}
867944
}
868945
}
869946
}

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/models/sqlVirtualMachineGroupsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ export {
2121
ResourceIdentity,
2222
ServerConfigurationsManagementSettings,
2323
SqlConnectivityUpdateSettings,
24+
SQLStorageSettings,
2425
SqlStorageUpdateSettings,
2526
SqlVirtualMachine,
2627
SqlVirtualMachineGroup,
2728
SqlVirtualMachineGroupListResult,
2829
SqlVirtualMachineGroupUpdate,
2930
SqlWorkloadTypeUpdateSettings,
31+
StorageConfigurationSettings,
3032
TrackedResource,
3133
WsfcDomainCredentials,
3234
WsfcDomainProfile

sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/models/sqlVirtualMachinesMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ export {
2121
ResourceIdentity,
2222
ServerConfigurationsManagementSettings,
2323
SqlConnectivityUpdateSettings,
24+
SQLStorageSettings,
2425
SqlStorageUpdateSettings,
2526
SqlVirtualMachine,
2627
SqlVirtualMachineGroup,
2728
SqlVirtualMachineListResult,
2829
SqlVirtualMachineUpdate,
2930
SqlWorkloadTypeUpdateSettings,
31+
StorageConfigurationSettings,
3032
TrackedResource,
3133
WsfcDomainCredentials,
3234
WsfcDomainProfile

0 commit comments

Comments
 (0)