@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +7 -10
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +689 -90
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/src/models/index.d.ts +233 -2
  9. package/dist-esm/src/models/index.d.ts.map +1 -1
  10. package/dist-esm/src/models/index.js +45 -0
  11. package/dist-esm/src/models/index.js.map +1 -1
  12. package/dist-esm/src/models/mappers.d.ts +7 -0
  13. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  14. package/dist-esm/src/models/mappers.js +333 -3
  15. package/dist-esm/src/models/mappers.js.map +1 -1
  16. package/dist-esm/src/models/parameters.d.ts +1 -1
  17. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  18. package/dist-esm/src/models/parameters.js +10 -10
  19. package/dist-esm/src/models/parameters.js.map +1 -1
  20. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
  21. package/dist-esm/src/operations/availabilityGroupListeners.js +7 -3
  22. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
  23. package/dist-esm/src/operations/operations.d.ts +2 -2
  24. package/dist-esm/src/operations/operations.js +2 -2
  25. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
  26. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
  27. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
  28. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +33 -1
  29. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  30. package/dist-esm/src/operations/sqlVirtualMachines.js +142 -4
  31. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  32. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  33. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +33 -1
  34. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  35. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  36. package/dist-esm/src/sqlVirtualMachineManagementClient.js +21 -3
  37. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  38. package/package.json +31 -13
  39. package/review/arm-sqlvirtualmachine.api.md +171 -1
  40. package/rollup.config.js +6 -72
  41. package/src/models/index.ts +258 -3
  42. package/src/models/mappers.ts +343 -1
  43. package/src/models/parameters.ts +11 -11
  44. package/src/operations/availabilityGroupListeners.ts +7 -3
  45. package/src/operations/operations.ts +2 -2
  46. package/src/operations/sqlVirtualMachineGroups.ts +9 -3
  47. package/src/operations/sqlVirtualMachines.ts +208 -4
  48. package/src/operationsInterfaces/operations.ts +1 -1
  49. package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
  50. package/src/sqlVirtualMachineManagementClient.ts +28 -3
  51. package/tsconfig.json +12 -4
  52. package/types/arm-sqlvirtualmachine.d.ts +287 -3
  53. package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
- ## 5.0.0-beta.1 (2021-12-01)
1
+ # Release History
2
+
3
+ ## 5.0.0-beta.4 (2022-05-01)
2
4
 
3
- This is the first preview for the new version of the `@azure/arm-sqlvirtualmachine` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
5
+ The package of @azure/arm-sqlvirtualmachine is using our next generation design principles since version 5.0.0-beta.4, which contains breaking changes.
4
6
 
5
- 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/).
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- 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.
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
- **Noteworthy changes and features**
10
- - 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.
11
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
12
- - 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.
13
- - 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`.
14
- - 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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Microsoft
3
+ Copyright (c) 2022 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -16,6 +16,8 @@ The SQL virtual machine management API provides a RESTful set of web APIs that i
16
16
  - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20
+
19
21
  ### Prerequisites
20
22
 
21
23
  - An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { SqlVirtualMachineManagementClient } = require("@azure/arm-sqlvirtualmachine");
51
53
  const { DefaultAzureCredential } = require("@azure/identity");
54
+ // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55
+
52
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
57
  const client = new SqlVirtualMachineManagementClient(new DefaultAzureCredential(), subscriptionId);
58
+
59
+ // For client-side applications running in the browser, use this code instead:
60
+ // const credential = new InteractiveBrowserCredential({
61
+ // tenantId: "<YOUR_TENANT_ID>",
62
+ // clientId: "<YOUR_CLIENT_ID>"
63
+ // });
64
+ // const client = new SqlVirtualMachineManagementClient(credential, subscriptionId);
54
65
  ```
55
66
 
56
67