@azure/arm-mysql 5.0.0-beta.1 → 5.0.1-alpha.20220119.1

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 (133) hide show
  1. package/CHANGELOG.md +17 -10
  2. package/README.md +4 -0
  3. package/dist/index.js +33 -53
  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/mySQLManagementClient.d.ts +4 -2
  18. package/dist-esm/src/mySQLManagementClient.d.ts.map +1 -1
  19. package/dist-esm/src/mySQLManagementClient.js +30 -3
  20. package/dist-esm/src/mySQLManagementClient.js.map +1 -1
  21. package/dist-esm/src/operations/advisors.d.ts +2 -2
  22. package/dist-esm/src/operations/advisors.d.ts.map +1 -1
  23. package/dist-esm/src/operations/advisors.js.map +1 -1
  24. package/dist-esm/src/operations/checkNameAvailability.d.ts +2 -2
  25. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
  26. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
  27. package/dist-esm/src/operations/configurations.d.ts +2 -2
  28. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  29. package/dist-esm/src/operations/configurations.js.map +1 -1
  30. package/dist-esm/src/operations/databases.d.ts +2 -2
  31. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  32. package/dist-esm/src/operations/databases.js.map +1 -1
  33. package/dist-esm/src/operations/firewallRules.d.ts +2 -2
  34. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  35. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  36. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts +2 -2
  37. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
  38. package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
  39. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.d.ts +2 -2
  40. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.d.ts.map +1 -1
  41. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -1
  42. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts +2 -2
  43. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts.map +1 -1
  44. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
  45. package/dist-esm/src/operations/logFiles.d.ts +2 -2
  46. package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
  47. package/dist-esm/src/operations/logFiles.js.map +1 -1
  48. package/dist-esm/src/operations/operations.d.ts +2 -2
  49. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  50. package/dist-esm/src/operations/operations.js.map +1 -1
  51. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  52. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  53. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  54. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  55. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  56. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  57. package/dist-esm/src/operations/queryTexts.d.ts +2 -2
  58. package/dist-esm/src/operations/queryTexts.d.ts.map +1 -1
  59. package/dist-esm/src/operations/queryTexts.js.map +1 -1
  60. package/dist-esm/src/operations/recommendedActions.d.ts +2 -2
  61. package/dist-esm/src/operations/recommendedActions.d.ts.map +1 -1
  62. package/dist-esm/src/operations/recommendedActions.js.map +1 -1
  63. package/dist-esm/src/operations/recoverableServers.d.ts +2 -2
  64. package/dist-esm/src/operations/recoverableServers.d.ts.map +1 -1
  65. package/dist-esm/src/operations/recoverableServers.js.map +1 -1
  66. package/dist-esm/src/operations/replicas.d.ts +2 -2
  67. package/dist-esm/src/operations/replicas.d.ts.map +1 -1
  68. package/dist-esm/src/operations/replicas.js.map +1 -1
  69. package/dist-esm/src/operations/serverAdministrators.d.ts +2 -2
  70. package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
  71. package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
  72. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts +2 -2
  73. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
  74. package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
  75. package/dist-esm/src/operations/serverKeys.d.ts +2 -2
  76. package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
  77. package/dist-esm/src/operations/serverKeys.js.map +1 -1
  78. package/dist-esm/src/operations/serverParameters.d.ts +2 -2
  79. package/dist-esm/src/operations/serverParameters.d.ts.map +1 -1
  80. package/dist-esm/src/operations/serverParameters.js.map +1 -1
  81. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts +2 -2
  82. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
  83. package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
  84. package/dist-esm/src/operations/servers.d.ts +2 -2
  85. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  86. package/dist-esm/src/operations/servers.js.map +1 -1
  87. package/dist-esm/src/operations/topQueryStatistics.d.ts +2 -2
  88. package/dist-esm/src/operations/topQueryStatistics.d.ts.map +1 -1
  89. package/dist-esm/src/operations/topQueryStatistics.js.map +1 -1
  90. package/dist-esm/src/operations/virtualNetworkRules.d.ts +2 -2
  91. package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
  92. package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
  93. package/dist-esm/src/operations/waitStatistics.d.ts +2 -2
  94. package/dist-esm/src/operations/waitStatistics.d.ts.map +1 -1
  95. package/dist-esm/src/operations/waitStatistics.js.map +1 -1
  96. package/package.json +18 -7
  97. package/review/arm-mysql.api.md +5 -10
  98. package/src/index.ts +0 -1
  99. package/src/models/index.ts +19 -19
  100. package/src/models/mappers.ts +30 -30
  101. package/src/mySQLManagementClient.ts +43 -3
  102. package/src/operations/advisors.ts +3 -3
  103. package/src/operations/checkNameAvailability.ts +3 -3
  104. package/src/operations/configurations.ts +3 -3
  105. package/src/operations/databases.ts +3 -3
  106. package/src/operations/firewallRules.ts +3 -3
  107. package/src/operations/locationBasedPerformanceTier.ts +3 -3
  108. package/src/operations/locationBasedRecommendedActionSessionsOperationStatus.ts +3 -3
  109. package/src/operations/locationBasedRecommendedActionSessionsResult.ts +3 -3
  110. package/src/operations/logFiles.ts +3 -3
  111. package/src/operations/operations.ts +3 -3
  112. package/src/operations/privateEndpointConnections.ts +3 -3
  113. package/src/operations/privateLinkResources.ts +3 -3
  114. package/src/operations/queryTexts.ts +3 -3
  115. package/src/operations/recommendedActions.ts +3 -3
  116. package/src/operations/recoverableServers.ts +3 -3
  117. package/src/operations/replicas.ts +3 -3
  118. package/src/operations/serverAdministrators.ts +3 -3
  119. package/src/operations/serverBasedPerformanceTier.ts +3 -3
  120. package/src/operations/serverKeys.ts +3 -3
  121. package/src/operations/serverParameters.ts +3 -3
  122. package/src/operations/serverSecurityAlertPolicies.ts +3 -3
  123. package/src/operations/servers.ts +3 -3
  124. package/src/operations/topQueryStatistics.ts +3 -3
  125. package/src/operations/virtualNetworkRules.ts +3 -3
  126. package/src/operations/waitStatistics.ts +3 -3
  127. package/types/arm-mysql.d.ts +3 -13
  128. package/types/tsdoc-metadata.json +1 -1
  129. package/dist-esm/src/mySQLManagementClientContext.d.ts +0 -15
  130. package/dist-esm/src/mySQLManagementClientContext.d.ts.map +0 -1
  131. package/dist-esm/src/mySQLManagementClientContext.js +0 -48
  132. package/dist-esm/src/mySQLManagementClientContext.js.map +0 -1
  133. package/src/mySQLManagementClientContext.ts +0 -68
@@ -1,6 +1,6 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
2
  import { WaitStatistics } from "../operationsInterfaces";
3
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
3
+ import { MySQLManagementClient } from "../mySQLManagementClient";
4
4
  import { WaitStatistic, WaitStatisticsInput, WaitStatisticsListByServerOptionalParams, WaitStatisticsGetOptionalParams, WaitStatisticsGetResponse } from "../models";
5
5
  /** Class containing WaitStatistics operations. */
6
6
  export declare class WaitStatisticsImpl implements WaitStatistics {
@@ -9,7 +9,7 @@ export declare class WaitStatisticsImpl implements WaitStatistics {
9
9
  * Initialize a new instance of the class WaitStatistics class.
10
10
  * @param client Reference to the service client
11
11
  */
12
- constructor(client: MySQLManagementClientContext);
12
+ constructor(client: MySQLManagementClient);
13
13
  /**
14
14
  * Retrieve wait statistics for specified aggregation window.
15
15
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1 +1 @@
1
- {"version":3,"file":"waitStatistics.d.ts","sourceRoot":"","sources":["../../../src/operations/waitStatistics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,aAAa,EACb,mBAAmB,EAEnB,wCAAwC,EACxC,+BAA+B,EAC/B,yBAAyB,EAG1B,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;;OAM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AClB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAYrB;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB;CAY1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"waitStatistics.js","sourceRoot":"","sources":["../../../src/operations/waitStatistics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,iBAAyB,EACzB,UAAkB,EAClB,UAA+B,EAC/B,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,sBAAsB,CAChC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,sBAAsB,CACnC,iBAAyB,EACzB,UAAkB,EAClB,UAA+B,EAC/B,OAAkD;;YAElD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,aAAa,CACnC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OA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E,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"waitStatistics.js","sourceRoot":"","sources":["../../../src/operations/waitStatistics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,iBAAyB,EACzB,UAAkB,EAClB,UAA+B,EAC/B,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBAC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AAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,uIAAuI;IACzI,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
package/package.json CHANGED
@@ -3,8 +3,10 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MySQLManagementClient.",
6
- "version": "5.0.0-beta.1",
7
- "engines": { "node": ">=12.0.0" },
6
+ "version": "5.0.1-alpha.20220119.1",
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",
@@ -14,7 +16,13 @@
14
16
  "@azure/core-rest-pipeline": "^1.1.0",
15
17
  "tslib": "^2.2.0"
16
18
  },
17
- "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
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",
@@ -30,7 +38,8 @@
30
38
  "rollup-plugin-sourcemaps": "^0.4.2",
31
39
  "typescript": "~4.2.0",
32
40
  "uglify-js": "^3.4.9",
33
- "@azure/identity": "2.0.0-beta.6",
41
+ "rimraf": "^3.0.0",
42
+ "@azure/identity": "^2.0.1",
34
43
  "@azure-tools/test-recorder": "^1.0.0",
35
44
  "mocha": "^7.1.1",
36
45
  "cross-env": "^7.0.2"
@@ -40,7 +49,9 @@
40
49
  "type": "git",
41
50
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
42
51
  },
43
- "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
52
+ "bugs": {
53
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
54
+ },
44
55
  "files": [
45
56
  "dist/**/*.js",
46
57
  "dist/**/*.js.map",
@@ -67,7 +78,7 @@
67
78
  "extract-api": "api-extractor run --local",
68
79
  "lint": "echo skipped",
69
80
  "audit": "echo skipped",
70
- "clean": "echo skipped",
81
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
71
82
  "build:node": "echo skipped",
72
83
  "build:browser": "echo skipped",
73
84
  "build:test": "echo skipped",
@@ -82,7 +93,7 @@
82
93
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
83
94
  "unit-test:browser": "echo skipped",
84
95
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
85
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts",
96
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
86
97
  "integration-test:browser": "echo skipped",
87
98
  "docs": "echo skipped"
88
99
  },
@@ -490,7 +490,9 @@ export type LogFilesListByServerResponse = LogFileListResult;
490
490
  export type MinimalTlsVersionEnum = string;
491
491
 
492
492
  // @public (undocumented)
493
- export class MySQLManagementClient extends MySQLManagementClientContext {
493
+ export class MySQLManagementClient extends coreClient.ServiceClient {
494
+ // (undocumented)
495
+ $host: string;
494
496
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MySQLManagementClientOptionalParams);
495
497
  // (undocumented)
496
498
  advisors: Advisors;
@@ -540,6 +542,8 @@ export class MySQLManagementClient extends MySQLManagementClientContext {
540
542
  // (undocumented)
541
543
  serverSecurityAlertPolicies: ServerSecurityAlertPolicies;
542
544
  // (undocumented)
545
+ subscriptionId: string;
546
+ // (undocumented)
543
547
  topQueryStatistics: TopQueryStatistics;
544
548
  // (undocumented)
545
549
  virtualNetworkRules: VirtualNetworkRules;
@@ -547,15 +551,6 @@ export class MySQLManagementClient extends MySQLManagementClientContext {
547
551
  waitStatistics: WaitStatistics;
548
552
  }
549
553
 
550
- // @public (undocumented)
551
- export class MySQLManagementClientContext extends coreClient.ServiceClient {
552
- // (undocumented)
553
- $host: string;
554
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MySQLManagementClientOptionalParams);
555
- // (undocumented)
556
- subscriptionId: string;
557
- }
558
-
559
554
  // @public
560
555
  export interface MySQLManagementClientOptionalParams extends coreClient.ServiceClientOptions {
561
556
  $host?: string;
package/src/index.ts CHANGED
@@ -9,5 +9,4 @@
9
9
  /// <reference lib="esnext.asynciterable" />
10
10
  export * from "./models";
11
11
  export { MySQLManagementClient } from "./mySQLManagementClient";
12
- export { MySQLManagementClientContext } from "./mySQLManagementClientContext";
13
12
  export * from "./operationsInterfaces";
@@ -89,25 +89,6 @@ export interface StorageProfile {
89
89
  storageAutogrow?: StorageAutogrow;
90
90
  }
91
91
 
92
- /** Common fields that are returned in the response for all Azure Resource Manager resources */
93
- export interface Resource {
94
- /**
95
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
96
- * NOTE: This property will not be serialized. It can only be populated by the server.
97
- */
98
- readonly id?: string;
99
- /**
100
- * The name of the resource
101
- * NOTE: This property will not be serialized. It can only be populated by the server.
102
- */
103
- readonly name?: string;
104
- /**
105
- * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
106
- * NOTE: This property will not be serialized. It can only be populated by the server.
107
- */
108
- readonly type?: string;
109
- }
110
-
111
92
  /** A private endpoint connection under a server */
112
93
  export interface ServerPrivateEndpointConnection {
113
94
  /**
@@ -152,6 +133,25 @@ export interface ServerPrivateLinkServiceConnectionStateProperty {
152
133
  readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire;
153
134
  }
154
135
 
136
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
137
+ export interface Resource {
138
+ /**
139
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
140
+ * NOTE: This property will not be serialized. It can only be populated by the server.
141
+ */
142
+ readonly id?: string;
143
+ /**
144
+ * The name of the resource
145
+ * NOTE: This property will not be serialized. It can only be populated by the server.
146
+ */
147
+ readonly name?: string;
148
+ /**
149
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
150
+ * NOTE: This property will not be serialized. It can only be populated by the server.
151
+ */
152
+ readonly type?: string;
153
+ }
154
+
155
155
  /** An error response from the Batch service. */
156
156
  export interface CloudError {
157
157
  /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
@@ -216,36 +216,6 @@ export const StorageProfile: coreClient.CompositeMapper = {
216
216
  }
217
217
  };
218
218
 
219
- export const Resource: coreClient.CompositeMapper = {
220
- type: {
221
- name: "Composite",
222
- className: "Resource",
223
- modelProperties: {
224
- id: {
225
- serializedName: "id",
226
- readOnly: true,
227
- type: {
228
- name: "String"
229
- }
230
- },
231
- name: {
232
- serializedName: "name",
233
- readOnly: true,
234
- type: {
235
- name: "String"
236
- }
237
- },
238
- type: {
239
- serializedName: "type",
240
- readOnly: true,
241
- type: {
242
- name: "String"
243
- }
244
- }
245
- }
246
- }
247
- };
248
-
249
219
  export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = {
250
220
  type: {
251
221
  name: "Composite",
@@ -344,6 +314,36 @@ export const ServerPrivateLinkServiceConnectionStateProperty: coreClient.Composi
344
314
  }
345
315
  };
346
316
 
317
+ export const Resource: coreClient.CompositeMapper = {
318
+ type: {
319
+ name: "Composite",
320
+ className: "Resource",
321
+ modelProperties: {
322
+ id: {
323
+ serializedName: "id",
324
+ readOnly: true,
325
+ type: {
326
+ name: "String"
327
+ }
328
+ },
329
+ name: {
330
+ serializedName: "name",
331
+ readOnly: true,
332
+ type: {
333
+ name: "String"
334
+ }
335
+ },
336
+ type: {
337
+ serializedName: "type",
338
+ readOnly: true,
339
+ type: {
340
+ name: "String"
341
+ }
342
+ }
343
+ }
344
+ }
345
+ };
346
+
347
347
  export const CloudError: coreClient.CompositeMapper = {
348
348
  type: {
349
349
  name: "Composite",
@@ -66,7 +66,6 @@ import {
66
66
  } from "./operationsInterfaces";
67
67
  import * as Parameters from "./models/parameters";
68
68
  import * as Mappers from "./models/mappers";
69
- import { MySQLManagementClientContext } from "./mySQLManagementClientContext";
70
69
  import {
71
70
  MySQLManagementClientOptionalParams,
72
71
  ResetQueryPerformanceInsightDataOptionalParams,
@@ -74,7 +73,10 @@ import {
74
73
  CreateRecommendedActionSessionOptionalParams
75
74
  } from "./models";
76
75
 
77
- export class MySQLManagementClient extends MySQLManagementClientContext {
76
+ export class MySQLManagementClient extends coreClient.ServiceClient {
77
+ $host: string;
78
+ subscriptionId: string;
79
+
78
80
  /**
79
81
  * Initializes a new instance of the MySQLManagementClient class.
80
82
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -86,7 +88,45 @@ export class MySQLManagementClient extends MySQLManagementClientContext {
86
88
  subscriptionId: string,
87
89
  options?: MySQLManagementClientOptionalParams
88
90
  ) {
89
- super(credentials, subscriptionId, options);
91
+ if (credentials === undefined) {
92
+ throw new Error("'credentials' cannot be null");
93
+ }
94
+ if (subscriptionId === undefined) {
95
+ throw new Error("'subscriptionId' cannot be null");
96
+ }
97
+
98
+ // Initializing default values for options
99
+ if (!options) {
100
+ options = {};
101
+ }
102
+ const defaults: MySQLManagementClientOptionalParams = {
103
+ requestContentType: "application/json; charset=utf-8",
104
+ credential: credentials
105
+ };
106
+
107
+ const packageDetails = `azsdk-js-arm-mysql/5.0.0`;
108
+ const userAgentPrefix =
109
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
110
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
111
+ : `${packageDetails}`;
112
+
113
+ if (!options.credentialScopes) {
114
+ options.credentialScopes = ["https://management.azure.com/.default"];
115
+ }
116
+ const optionsWithDefaults = {
117
+ ...defaults,
118
+ ...options,
119
+ userAgentOptions: {
120
+ userAgentPrefix
121
+ },
122
+ baseUri: options.endpoint || "https://management.azure.com"
123
+ };
124
+ super(optionsWithDefaults);
125
+ // Parameter assignments
126
+ this.subscriptionId = subscriptionId;
127
+
128
+ // Assigning values to Constant parameters
129
+ this.$host = options.$host || "https://management.azure.com";
90
130
  this.servers = new ServersImpl(this);
91
131
  this.replicas = new ReplicasImpl(this);
92
132
  this.firewallRules = new FirewallRulesImpl(this);
@@ -11,7 +11,7 @@ import { Advisors } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import {
16
16
  Advisor,
17
17
  AdvisorsListByServerNextOptionalParams,
@@ -25,13 +25,13 @@ import {
25
25
  /// <reference lib="esnext.asynciterable" />
26
26
  /** Class containing Advisors operations. */
27
27
  export class AdvisorsImpl implements Advisors {
28
- private readonly client: MySQLManagementClientContext;
28
+ private readonly client: MySQLManagementClient;
29
29
 
30
30
  /**
31
31
  * Initialize a new instance of the class Advisors class.
32
32
  * @param client Reference to the service client
33
33
  */
34
- constructor(client: MySQLManagementClientContext) {
34
+ constructor(client: MySQLManagementClient) {
35
35
  this.client = client;
36
36
  }
37
37
 
@@ -10,7 +10,7 @@ import { CheckNameAvailability } from "../operationsInterfaces";
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
13
+ import { MySQLManagementClient } from "../mySQLManagementClient";
14
14
  import {
15
15
  NameAvailabilityRequest,
16
16
  CheckNameAvailabilityExecuteOptionalParams,
@@ -19,13 +19,13 @@ import {
19
19
 
20
20
  /** Class containing CheckNameAvailability operations. */
21
21
  export class CheckNameAvailabilityImpl implements CheckNameAvailability {
22
- private readonly client: MySQLManagementClientContext;
22
+ private readonly client: MySQLManagementClient;
23
23
 
24
24
  /**
25
25
  * Initialize a new instance of the class CheckNameAvailability class.
26
26
  * @param client Reference to the service client
27
27
  */
28
- constructor(client: MySQLManagementClientContext) {
28
+ constructor(client: MySQLManagementClient) {
29
29
  this.client = client;
30
30
  }
31
31
 
@@ -11,7 +11,7 @@ import { Configurations } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
16
  import { LroImpl } from "../lroImpl";
17
17
  import {
@@ -27,13 +27,13 @@ import {
27
27
  /// <reference lib="esnext.asynciterable" />
28
28
  /** Class containing Configurations operations. */
29
29
  export class ConfigurationsImpl implements Configurations {
30
- private readonly client: MySQLManagementClientContext;
30
+ private readonly client: MySQLManagementClient;
31
31
 
32
32
  /**
33
33
  * Initialize a new instance of the class Configurations class.
34
34
  * @param client Reference to the service client
35
35
  */
36
- constructor(client: MySQLManagementClientContext) {
36
+ constructor(client: MySQLManagementClient) {
37
37
  this.client = client;
38
38
  }
39
39
 
@@ -11,7 +11,7 @@ import { Databases } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
16
  import { LroImpl } from "../lroImpl";
17
17
  import {
@@ -28,13 +28,13 @@ import {
28
28
  /// <reference lib="esnext.asynciterable" />
29
29
  /** Class containing Databases operations. */
30
30
  export class DatabasesImpl implements Databases {
31
- private readonly client: MySQLManagementClientContext;
31
+ private readonly client: MySQLManagementClient;
32
32
 
33
33
  /**
34
34
  * Initialize a new instance of the class Databases class.
35
35
  * @param client Reference to the service client
36
36
  */
37
- constructor(client: MySQLManagementClientContext) {
37
+ constructor(client: MySQLManagementClient) {
38
38
  this.client = client;
39
39
  }
40
40
 
@@ -11,7 +11,7 @@ import { FirewallRules } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
16
  import { LroImpl } from "../lroImpl";
17
17
  import {
@@ -28,13 +28,13 @@ import {
28
28
  /// <reference lib="esnext.asynciterable" />
29
29
  /** Class containing FirewallRules operations. */
30
30
  export class FirewallRulesImpl implements FirewallRules {
31
- private readonly client: MySQLManagementClientContext;
31
+ private readonly client: MySQLManagementClient;
32
32
 
33
33
  /**
34
34
  * Initialize a new instance of the class FirewallRules class.
35
35
  * @param client Reference to the service client
36
36
  */
37
- constructor(client: MySQLManagementClientContext) {
37
+ constructor(client: MySQLManagementClient) {
38
38
  this.client = client;
39
39
  }
40
40
 
@@ -11,7 +11,7 @@ import { LocationBasedPerformanceTier } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import {
16
16
  PerformanceTierProperties,
17
17
  LocationBasedPerformanceTierListOptionalParams,
@@ -22,13 +22,13 @@ import {
22
22
  /** Class containing LocationBasedPerformanceTier operations. */
23
23
  export class LocationBasedPerformanceTierImpl
24
24
  implements LocationBasedPerformanceTier {
25
- private readonly client: MySQLManagementClientContext;
25
+ private readonly client: MySQLManagementClient;
26
26
 
27
27
  /**
28
28
  * Initialize a new instance of the class LocationBasedPerformanceTier class.
29
29
  * @param client Reference to the service client
30
30
  */
31
- constructor(client: MySQLManagementClientContext) {
31
+ constructor(client: MySQLManagementClient) {
32
32
  this.client = client;
33
33
  }
34
34
 
@@ -10,7 +10,7 @@ import { LocationBasedRecommendedActionSessionsOperationStatus } from "../operat
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
13
+ import { MySQLManagementClient } from "../mySQLManagementClient";
14
14
  import {
15
15
  LocationBasedRecommendedActionSessionsOperationStatusGetOptionalParams,
16
16
  LocationBasedRecommendedActionSessionsOperationStatusGetResponse
@@ -19,13 +19,13 @@ import {
19
19
  /** Class containing LocationBasedRecommendedActionSessionsOperationStatus operations. */
20
20
  export class LocationBasedRecommendedActionSessionsOperationStatusImpl
21
21
  implements LocationBasedRecommendedActionSessionsOperationStatus {
22
- private readonly client: MySQLManagementClientContext;
22
+ private readonly client: MySQLManagementClient;
23
23
 
24
24
  /**
25
25
  * Initialize a new instance of the class LocationBasedRecommendedActionSessionsOperationStatus class.
26
26
  * @param client Reference to the service client
27
27
  */
28
- constructor(client: MySQLManagementClientContext) {
28
+ constructor(client: MySQLManagementClient) {
29
29
  this.client = client;
30
30
  }
31
31
 
@@ -11,7 +11,7 @@ import { LocationBasedRecommendedActionSessionsResult } from "../operationsInter
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import {
16
16
  RecommendationAction,
17
17
  LocationBasedRecommendedActionSessionsResultListNextOptionalParams,
@@ -24,13 +24,13 @@ import {
24
24
  /** Class containing LocationBasedRecommendedActionSessionsResult operations. */
25
25
  export class LocationBasedRecommendedActionSessionsResultImpl
26
26
  implements LocationBasedRecommendedActionSessionsResult {
27
- private readonly client: MySQLManagementClientContext;
27
+ private readonly client: MySQLManagementClient;
28
28
 
29
29
  /**
30
30
  * Initialize a new instance of the class LocationBasedRecommendedActionSessionsResult class.
31
31
  * @param client Reference to the service client
32
32
  */
33
- constructor(client: MySQLManagementClientContext) {
33
+ constructor(client: MySQLManagementClient) {
34
34
  this.client = client;
35
35
  }
36
36
 
@@ -11,7 +11,7 @@ import { LogFiles } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import {
16
16
  LogFile,
17
17
  LogFilesListByServerOptionalParams,
@@ -21,13 +21,13 @@ import {
21
21
  /// <reference lib="esnext.asynciterable" />
22
22
  /** Class containing LogFiles operations. */
23
23
  export class LogFilesImpl implements LogFiles {
24
- private readonly client: MySQLManagementClientContext;
24
+ private readonly client: MySQLManagementClient;
25
25
 
26
26
  /**
27
27
  * Initialize a new instance of the class LogFiles class.
28
28
  * @param client Reference to the service client
29
29
  */
30
- constructor(client: MySQLManagementClientContext) {
30
+ constructor(client: MySQLManagementClient) {
31
31
  this.client = client;
32
32
  }
33
33
 
@@ -10,7 +10,7 @@ import { Operations } from "../operationsInterfaces";
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
13
+ import { MySQLManagementClient } from "../mySQLManagementClient";
14
14
  import {
15
15
  OperationsListOptionalParams,
16
16
  OperationsListResponse
@@ -18,13 +18,13 @@ import {
18
18
 
19
19
  /** Class containing Operations operations. */
20
20
  export class OperationsImpl implements Operations {
21
- private readonly client: MySQLManagementClientContext;
21
+ private readonly client: MySQLManagementClient;
22
22
 
23
23
  /**
24
24
  * Initialize a new instance of the class Operations class.
25
25
  * @param client Reference to the service client
26
26
  */
27
- constructor(client: MySQLManagementClientContext) {
27
+ constructor(client: MySQLManagementClient) {
28
28
  this.client = client;
29
29
  }
30
30
 
@@ -11,7 +11,7 @@ import { PrivateEndpointConnections } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
16
  import { LroImpl } from "../lroImpl";
17
17
  import {
@@ -34,13 +34,13 @@ import {
34
34
  /** Class containing PrivateEndpointConnections operations. */
35
35
  export class PrivateEndpointConnectionsImpl
36
36
  implements PrivateEndpointConnections {
37
- private readonly client: MySQLManagementClientContext;
37
+ private readonly client: MySQLManagementClient;
38
38
 
39
39
  /**
40
40
  * Initialize a new instance of the class PrivateEndpointConnections class.
41
41
  * @param client Reference to the service client
42
42
  */
43
- constructor(client: MySQLManagementClientContext) {
43
+ constructor(client: MySQLManagementClient) {
44
44
  this.client = client;
45
45
  }
46
46
 
@@ -11,7 +11,7 @@ import { PrivateLinkResources } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
14
+ import { MySQLManagementClient } from "../mySQLManagementClient";
15
15
  import {
16
16
  PrivateLinkResource,
17
17
  PrivateLinkResourcesListByServerNextOptionalParams,
@@ -25,13 +25,13 @@ import {
25
25
  /// <reference lib="esnext.asynciterable" />
26
26
  /** Class containing PrivateLinkResources operations. */
27
27
  export class PrivateLinkResourcesImpl implements PrivateLinkResources {
28
- private readonly client: MySQLManagementClientContext;
28
+ private readonly client: MySQLManagementClient;
29
29
 
30
30
  /**
31
31
  * Initialize a new instance of the class PrivateLinkResources class.
32
32
  * @param client Reference to the service client
33
33
  */
34
- constructor(client: MySQLManagementClientContext) {
34
+ constructor(client: MySQLManagementClient) {
35
35
  this.client = client;
36
36
  }
37
37