@azure/arm-managedapplications 2.0.0-alpha.20211015.3 → 2.0.1-alpha.20211207.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 (154) hide show
  1. package/CHANGELOG.md +6 -11
  2. package/README.md +15 -9
  3. package/dist/index.js +145 -929
  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/{esm → dist-esm/src}/applicationClient.d.ts +7 -19
  8. package/dist-esm/src/applicationClient.d.ts.map +1 -0
  9. package/{esm → dist-esm/src}/applicationClient.js +31 -74
  10. package/dist-esm/src/applicationClient.js.map +1 -0
  11. package/dist-esm/src/index.d.ts +5 -0
  12. package/dist-esm/src/index.d.ts.map +1 -0
  13. package/{esm → dist-esm/src}/index.js +0 -1
  14. package/dist-esm/src/index.js.map +1 -0
  15. package/dist-esm/src/lroImpl.d.ts +16 -0
  16. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  17. package/dist-esm/src/lroImpl.js +29 -0
  18. package/dist-esm/src/lroImpl.js.map +1 -0
  19. package/{esm → dist-esm/src}/models/index.d.ts +39 -59
  20. package/dist-esm/src/models/index.d.ts.map +1 -0
  21. package/{esm → dist-esm/src}/models/index.js +0 -0
  22. package/dist-esm/src/models/index.js.map +1 -0
  23. package/{esm → dist-esm/src}/models/mappers.d.ts +2 -2
  24. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  25. package/{esm → dist-esm/src}/models/mappers.js +34 -34
  26. package/dist-esm/src/models/mappers.js.map +1 -0
  27. package/{esm → dist-esm/src}/models/parameters.d.ts +0 -0
  28. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  29. package/{esm → dist-esm/src}/models/parameters.js +0 -0
  30. package/dist-esm/src/models/parameters.js.map +1 -0
  31. package/{esm → dist-esm/src}/operations/applicationDefinitions.d.ts +4 -22
  32. package/dist-esm/src/operations/applicationDefinitions.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/applicationDefinitions.js +23 -93
  34. package/dist-esm/src/operations/applicationDefinitions.js.map +1 -0
  35. package/{esm → dist-esm/src}/operations/applications.d.ts +4 -36
  36. package/dist-esm/src/operations/applications.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/applications.js +23 -170
  38. package/dist-esm/src/operations/applications.js.map +1 -0
  39. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  40. package/dist-esm/src/operations/index.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operations/index.js +0 -0
  42. package/dist-esm/src/operations/index.js.map +1 -0
  43. package/{esm → dist-esm/src}/operationsInterfaces/applicationDefinitions.d.ts +1 -9
  44. package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  45. package/{esm → dist-esm/src}/operationsInterfaces/applicationDefinitions.js +1 -1
  46. package/dist-esm/src/operationsInterfaces/applicationDefinitions.js.map +1 -0
  47. package/{esm → dist-esm/src}/operationsInterfaces/applications.d.ts +1 -15
  48. package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operationsInterfaces/applications.js +1 -1
  50. package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
  51. package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  53. package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
  54. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  55. package/dist-esm/test/sampleTest.d.ts +2 -0
  56. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  57. package/dist-esm/test/sampleTest.js +40 -0
  58. package/dist-esm/test/sampleTest.js.map +1 -0
  59. package/package.json +24 -20
  60. package/review/arm-managedapplications.api.md +20 -58
  61. package/src/applicationClient.ts +56 -94
  62. package/src/index.ts +0 -1
  63. package/src/lroImpl.ts +34 -0
  64. package/src/models/index.ts +37 -65
  65. package/src/models/mappers.ts +34 -34
  66. package/src/operations/applicationDefinitions.ts +27 -128
  67. package/src/operations/applications.ts +27 -217
  68. package/src/operationsInterfaces/applicationDefinitions.ts +0 -13
  69. package/src/operationsInterfaces/applications.ts +0 -23
  70. package/tsconfig.json +2 -3
  71. package/{esm/index.d.ts → types/arm-managedapplications.d.ts} +19 -91
  72. package/types/tsdoc-metadata.json +11 -0
  73. package/esm/applicationClient.d.ts.map +0 -1
  74. package/esm/applicationClient.js.map +0 -1
  75. package/esm/applicationClientContext.d.ts +0 -16
  76. package/esm/applicationClientContext.d.ts.map +0 -1
  77. package/esm/applicationClientContext.js +0 -49
  78. package/esm/applicationClientContext.js.map +0 -1
  79. package/esm/coreClientLro.d.ts +0 -26
  80. package/esm/coreClientLro.d.ts.map +0 -1
  81. package/esm/coreClientLro.js +0 -186
  82. package/esm/coreClientLro.js.map +0 -1
  83. package/esm/index.d.ts.map +0 -1
  84. package/esm/index.js.map +0 -1
  85. package/esm/lro/azureAsyncPolling.d.ts +0 -3
  86. package/esm/lro/azureAsyncPolling.d.ts.map +0 -1
  87. package/esm/lro/azureAsyncPolling.js +0 -67
  88. package/esm/lro/azureAsyncPolling.js.map +0 -1
  89. package/esm/lro/bodyPolling.d.ts +0 -8
  90. package/esm/lro/bodyPolling.d.ts.map +0 -1
  91. package/esm/lro/bodyPolling.js +0 -37
  92. package/esm/lro/bodyPolling.js.map +0 -1
  93. package/esm/lro/index.d.ts +0 -4
  94. package/esm/lro/index.d.ts.map +0 -1
  95. package/esm/lro/index.js +0 -12
  96. package/esm/lro/index.js.map +0 -1
  97. package/esm/lro/locationPolling.d.ts +0 -3
  98. package/esm/lro/locationPolling.d.ts.map +0 -1
  99. package/esm/lro/locationPolling.js +0 -19
  100. package/esm/lro/locationPolling.js.map +0 -1
  101. package/esm/lro/lroEngine.d.ts +0 -14
  102. package/esm/lro/lroEngine.d.ts.map +0 -1
  103. package/esm/lro/lroEngine.js +0 -41
  104. package/esm/lro/lroEngine.js.map +0 -1
  105. package/esm/lro/models.d.ts +0 -138
  106. package/esm/lro/models.d.ts.map +0 -1
  107. package/esm/lro/models.js +0 -14
  108. package/esm/lro/models.js.map +0 -1
  109. package/esm/lro/operation.d.ts +0 -36
  110. package/esm/lro/operation.d.ts.map +0 -1
  111. package/esm/lro/operation.js +0 -82
  112. package/esm/lro/operation.js.map +0 -1
  113. package/esm/lro/passthrough.d.ts +0 -3
  114. package/esm/lro/passthrough.d.ts.map +0 -1
  115. package/esm/lro/passthrough.js +0 -15
  116. package/esm/lro/passthrough.js.map +0 -1
  117. package/esm/lro/requestUtils.d.ts +0 -16
  118. package/esm/lro/requestUtils.d.ts.map +0 -1
  119. package/esm/lro/requestUtils.js +0 -73
  120. package/esm/lro/requestUtils.js.map +0 -1
  121. package/esm/lro/stateMachine.d.ts +0 -18
  122. package/esm/lro/stateMachine.d.ts.map +0 -1
  123. package/esm/lro/stateMachine.js +0 -84
  124. package/esm/lro/stateMachine.js.map +0 -1
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js.map +0 -1
  127. package/esm/models/mappers.d.ts.map +0 -1
  128. package/esm/models/mappers.js.map +0 -1
  129. package/esm/models/parameters.d.ts.map +0 -1
  130. package/esm/models/parameters.js.map +0 -1
  131. package/esm/operations/applicationDefinitions.d.ts.map +0 -1
  132. package/esm/operations/applicationDefinitions.js.map +0 -1
  133. package/esm/operations/applications.d.ts.map +0 -1
  134. package/esm/operations/applications.js.map +0 -1
  135. package/esm/operations/index.d.ts.map +0 -1
  136. package/esm/operations/index.js.map +0 -1
  137. package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +0 -1
  138. package/esm/operationsInterfaces/applicationDefinitions.js.map +0 -1
  139. package/esm/operationsInterfaces/applications.d.ts.map +0 -1
  140. package/esm/operationsInterfaces/applications.js.map +0 -1
  141. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  142. package/esm/operationsInterfaces/index.js.map +0 -1
  143. package/src/applicationClientContext.ts +0 -70
  144. package/src/coreClientLro.ts +0 -323
  145. package/src/lro/azureAsyncPolling.ts +0 -96
  146. package/src/lro/bodyPolling.ts +0 -54
  147. package/src/lro/index.ts +0 -26
  148. package/src/lro/locationPolling.ts +0 -30
  149. package/src/lro/lroEngine.ts +0 -61
  150. package/src/lro/models.ts +0 -173
  151. package/src/lro/operation.ts +0 -120
  152. package/src/lro/passthrough.ts +0 -23
  153. package/src/lro/requestUtils.ts +0 -105
  154. package/src/lro/stateMachine.ts +0 -138
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 2.0.0-beta.2 (Unreleased)
3
+ ## 2.0.1 (Unreleased)
4
4
 
5
5
  ### Features Added
6
6
 
@@ -10,17 +10,12 @@
10
10
 
11
11
  ### Other Changes
12
12
 
13
- ## 2.0.0-beta.1 (2021-10-09)
13
+ ## 2.0.0 (2021-12-07)
14
14
 
15
- This is the first preview for the new version of the `@azure/arm-managedapplications` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
15
+ The package of @azure/arm-managedapplications is using our next generation design principles since version 2.0.0, which contains breaking changes.
16
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/).
17
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
18
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.
19
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
20
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.
21
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -4,7 +4,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
4
4
 
5
5
  ARM applications
6
6
 
7
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/managedapplications/arm-managedapplications) |
7
+ [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedapplications/arm-managedapplications) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-managedapplications) |
9
9
  [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-managedapplications) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
@@ -33,17 +33,19 @@ npm install @azure/arm-managedapplications
33
33
  To create a client object to access the Azure Application API, you will need the `endpoint` of your Azure Application resource and a `credential`. The Azure Application client can use Azure Active Directory credentials to authenticate.
34
34
  You can find the endpoint for your Azure Application resource in the [Azure Portal][azure_portal].
35
35
 
36
- #### Using an Azure Active Directory Credential
36
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
37
37
 
38
- You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
38
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
39
39
 
40
40
  ```bash
41
41
  npm install @azure/identity
42
42
  ```
43
43
 
44
- You will also need to register a new AAD application and grant access to Azure Application by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
44
+ You will also need to **register a new AAD application and grant access to Azure Application** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45
45
  Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
46
46
 
47
+ For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
48
+
47
49
  ```javascript
48
50
  const { ApplicationClient } = require("@azure/arm-managedapplications");
49
51
  const { DefaultAzureCredential } = require("@azure/identity");
@@ -51,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
51
53
  const client = new ApplicationClient(new DefaultAzureCredential(), subscriptionId);
52
54
  ```
53
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
+
54
60
  ## Key concepts
55
61
 
56
62
  ### ApplicationClient
@@ -64,11 +70,11 @@ const client = new ApplicationClient(new DefaultAzureCredential(), subscriptionI
64
70
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
65
71
 
66
72
  ```javascript
67
- import { setLogLevel } from "@azure/logger";
73
+ const { setLogLevel } = require("@azure/logger");
68
74
  setLogLevel("info");
69
75
  ```
70
76
 
71
- For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).
77
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
72
78
 
73
79
  ## Next steps
74
80
 
@@ -76,7 +82,7 @@ Please take a look at the [samples](https://github.com/Azure-Samples/azure-sampl
76
82
 
77
83
  ## Contributing
78
84
 
79
- If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.
85
+ If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
80
86
 
81
87
  ## Related projects
82
88
 
@@ -88,5 +94,5 @@ If you'd like to contribute to this library, please read the [contributing guide
88
94
  [azure_sub]: https://azure.microsoft.com/free/
89
95
  [azure_sub]: https://azure.microsoft.com/free/
90
96
  [azure_portal]: https://portal.azure.com
91
- [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity
92
- [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity#defaultazurecredential
97
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
98
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential