@azure/arm-mysql 5.0.0-alpha.20211215.1 → 5.0.0-alpha.20211221.3

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 +7 -22
  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 +4 -3
  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
package/CHANGELOG.md CHANGED
@@ -1,26 +1,11 @@
1
- ## Release History
1
+ # Release History
2
+
3
+ ## 5.0.0 (2021-12-21)
2
4
 
3
- ### 5.0.0-beta.2 (Unreleased)
5
+ The package of @azure/arm-mysql is using our next generation design principles since version 5.0.0, which contains breaking changes.
4
6
 
5
- #### Features Added
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- #### Breaking Changes
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- #### Bugs Fixed
10
-
11
- #### Other Changes
12
-
13
- ### 5.0.0-beta.1 (2021-11-08)
14
-
15
- This is the first preview for the new version of the `@azure/arm-mysql` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
16
-
17
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
18
-
19
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
20
-
21
- **Noteworthy changes and features**
22
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
23
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
24
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
25
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
26
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
53
  const client = new MySQLManagementClient(new DefaultAzureCredential(), subscriptionId);
54
54
  ```
55
55
 
56
+
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
59
+
56
60
  ## Key concepts
57
61
 
58
62
  ### MySQLManagementClient
package/dist/index.js CHANGED
@@ -339,35 +339,6 @@ const StorageProfile = {
339
339
  }
340
340
  }
341
341
  };
342
- const Resource = {
343
- type: {
344
- name: "Composite",
345
- className: "Resource",
346
- modelProperties: {
347
- id: {
348
- serializedName: "id",
349
- readOnly: true,
350
- type: {
351
- name: "String"
352
- }
353
- },
354
- name: {
355
- serializedName: "name",
356
- readOnly: true,
357
- type: {
358
- name: "String"
359
- }
360
- },
361
- type: {
362
- serializedName: "type",
363
- readOnly: true,
364
- type: {
365
- name: "String"
366
- }
367
- }
368
- }
369
- }
370
- };
371
342
  const ServerPrivateEndpointConnection = {
372
343
  type: {
373
344
  name: "Composite",
@@ -462,6 +433,35 @@ const ServerPrivateLinkServiceConnectionStateProperty = {
462
433
  }
463
434
  }
464
435
  };
436
+ const Resource = {
437
+ type: {
438
+ name: "Composite",
439
+ className: "Resource",
440
+ modelProperties: {
441
+ id: {
442
+ serializedName: "id",
443
+ readOnly: true,
444
+ type: {
445
+ name: "String"
446
+ }
447
+ },
448
+ name: {
449
+ serializedName: "name",
450
+ readOnly: true,
451
+ type: {
452
+ name: "String"
453
+ }
454
+ },
455
+ type: {
456
+ serializedName: "type",
457
+ readOnly: true,
458
+ type: {
459
+ name: "String"
460
+ }
461
+ }
462
+ }
463
+ }
464
+ };
465
465
  const CloudError = {
466
466
  type: {
467
467
  name: "Composite",
@@ -2281,11 +2281,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
2281
2281
  Sku: Sku,
2282
2282
  ServerPropertiesForCreate: ServerPropertiesForCreate,
2283
2283
  StorageProfile: StorageProfile,
2284
- Resource: Resource,
2285
2284
  ServerPrivateEndpointConnection: ServerPrivateEndpointConnection,
2286
2285
  ServerPrivateEndpointConnectionProperties: ServerPrivateEndpointConnectionProperties,
2287
2286
  PrivateEndpointProperty: PrivateEndpointProperty,
2288
2287
  ServerPrivateLinkServiceConnectionStateProperty: ServerPrivateLinkServiceConnectionStateProperty,
2288
+ Resource: Resource,
2289
2289
  CloudError: CloudError,
2290
2290
  ErrorResponse: ErrorResponse,
2291
2291
  ErrorAdditionalInfo: ErrorAdditionalInfo,
@@ -7612,9 +7612,9 @@ const listNextOperationSpec$1 = {
7612
7612
  * Code generated by Microsoft (R) AutoRest Code Generator.
7613
7613
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7614
7614
  */
7615
- class MySQLManagementClientContext extends coreClient.ServiceClient {
7615
+ class MySQLManagementClient extends coreClient.ServiceClient {
7616
7616
  /**
7617
- * Initializes a new instance of the MySQLManagementClientContext class.
7617
+ * Initializes a new instance of the MySQLManagementClient class.
7618
7618
  * @param credentials Subscription credentials which uniquely identify client subscription.
7619
7619
  * @param subscriptionId The ID of the target subscription.
7620
7620
  * @param options The parameter options
@@ -7634,7 +7634,7 @@ class MySQLManagementClientContext extends coreClient.ServiceClient {
7634
7634
  requestContentType: "application/json; charset=utf-8",
7635
7635
  credential: credentials
7636
7636
  };
7637
- const packageDetails = `azsdk-js-arm-mysql/5.0.0-beta.1`;
7637
+ const packageDetails = `azsdk-js-arm-mysql/5.0.0`;
7638
7638
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7639
7639
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7640
7640
  : `${packageDetails}`;
@@ -7649,25 +7649,6 @@ class MySQLManagementClientContext extends coreClient.ServiceClient {
7649
7649
  this.subscriptionId = subscriptionId;
7650
7650
  // Assigning values to Constant parameters
7651
7651
  this.$host = options.$host || "https://management.azure.com";
7652
- }
7653
- }
7654
-
7655
- /*
7656
- * Copyright (c) Microsoft Corporation.
7657
- * Licensed under the MIT License.
7658
- *
7659
- * Code generated by Microsoft (R) AutoRest Code Generator.
7660
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7661
- */
7662
- class MySQLManagementClient extends MySQLManagementClientContext {
7663
- /**
7664
- * Initializes a new instance of the MySQLManagementClient class.
7665
- * @param credentials Subscription credentials which uniquely identify client subscription.
7666
- * @param subscriptionId The ID of the target subscription.
7667
- * @param options The parameter options
7668
- */
7669
- constructor(credentials, subscriptionId, options) {
7670
- super(credentials, subscriptionId, options);
7671
7652
  this.servers = new ServersImpl(this);
7672
7653
  this.replicas = new ReplicasImpl(this);
7673
7654
  this.firewallRules = new FirewallRulesImpl(this);
@@ -7796,5 +7777,4 @@ const createRecommendedActionSessionOperationSpec = {
7796
7777
  };
7797
7778
 
7798
7779
  exports.MySQLManagementClient = MySQLManagementClient;
7799
- exports.MySQLManagementClientContext = MySQLManagementClientContext;
7800
7780
  //# sourceMappingURL=index.js.map