@azure/arm-databoundaries 1.0.0-beta.1 → 1.0.0-beta.2

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 (197) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/LICENSE +4 -4
  3. package/README.md +25 -17
  4. package/{dist-esm/src → dist/browser}/databoundariesManegementClient.d.ts +2 -2
  5. package/dist/browser/databoundariesManegementClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/databoundariesManegementClient.js +29 -24
  7. package/dist/browser/databoundariesManegementClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +4 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +3 -3
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.js +8 -3
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  16. package/dist/browser/models/parameters.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/dataBoundaries.d.ts +3 -3
  18. package/dist/browser/operations/dataBoundaries.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/dataBoundaries.js +3 -2
  20. package/dist/browser/operations/dataBoundaries.js.map +1 -0
  21. package/dist/browser/operations/index.d.ts +2 -0
  22. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  23. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +1 -1
  24. package/dist/browser/operations/index.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/dataBoundaries.d.ts +1 -1
  26. package/dist/browser/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  27. package/dist/browser/operationsInterfaces/dataBoundaries.js.map +1 -0
  28. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  30. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +1 -1
  31. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  32. package/dist/browser/package.json +3 -0
  33. package/dist/commonjs/databoundariesManegementClient.d.ts +18 -0
  34. package/dist/commonjs/databoundariesManegementClient.d.ts.map +1 -0
  35. package/dist/commonjs/databoundariesManegementClient.js +104 -0
  36. package/dist/commonjs/databoundariesManegementClient.js.map +1 -0
  37. package/dist/commonjs/index.d.ts +4 -0
  38. package/dist/commonjs/index.d.ts.map +1 -0
  39. package/dist/commonjs/index.js +16 -0
  40. package/dist/commonjs/index.js.map +1 -0
  41. package/{types/arm-databoundaries.d.ts → dist/commonjs/models/index.d.ts} +213 -276
  42. package/dist/commonjs/models/index.d.ts.map +1 -0
  43. package/dist/commonjs/models/index.js +57 -0
  44. package/dist/commonjs/models/index.js.map +1 -0
  45. package/dist/commonjs/models/mappers.d.ts +10 -0
  46. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  47. package/dist/commonjs/models/mappers.js +230 -0
  48. package/dist/commonjs/models/mappers.js.map +1 -0
  49. package/dist/commonjs/models/parameters.d.ts +9 -0
  50. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  51. package/dist/commonjs/models/parameters.js +84 -0
  52. package/dist/commonjs/models/parameters.js.map +1 -0
  53. package/dist/commonjs/operations/dataBoundaries.d.ts +33 -0
  54. package/dist/commonjs/operations/dataBoundaries.d.ts.map +1 -0
  55. package/dist/commonjs/operations/dataBoundaries.js +108 -0
  56. package/dist/commonjs/operations/dataBoundaries.js.map +1 -0
  57. package/dist/commonjs/operations/index.d.ts +2 -0
  58. package/dist/commonjs/operations/index.d.ts.map +1 -0
  59. package/dist/commonjs/operations/index.js +12 -0
  60. package/dist/commonjs/operations/index.js.map +1 -0
  61. package/dist/commonjs/operationsInterfaces/dataBoundaries.d.ts +25 -0
  62. package/dist/commonjs/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  63. package/dist/commonjs/operationsInterfaces/dataBoundaries.js +10 -0
  64. package/dist/commonjs/operationsInterfaces/dataBoundaries.js.map +1 -0
  65. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  66. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  67. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  68. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  69. package/dist/commonjs/package.json +3 -0
  70. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  71. package/dist/esm/databoundariesManegementClient.d.ts +18 -0
  72. package/dist/esm/databoundariesManegementClient.d.ts.map +1 -0
  73. package/dist/esm/databoundariesManegementClient.js +99 -0
  74. package/dist/esm/databoundariesManegementClient.js.map +1 -0
  75. package/dist/esm/index.d.ts +4 -0
  76. package/dist/esm/index.d.ts.map +1 -0
  77. package/{src/index.ts → dist/esm/index.js} +4 -4
  78. package/dist/esm/index.js.map +1 -0
  79. package/dist/esm/models/index.d.ts +213 -0
  80. package/dist/esm/models/index.d.ts.map +1 -0
  81. package/dist/esm/models/index.js +54 -0
  82. package/dist/esm/models/index.js.map +1 -0
  83. package/dist/esm/models/mappers.d.ts +10 -0
  84. package/dist/esm/models/mappers.d.ts.map +1 -0
  85. package/dist/esm/models/mappers.js +227 -0
  86. package/dist/esm/models/mappers.js.map +1 -0
  87. package/dist/esm/models/parameters.d.ts +9 -0
  88. package/dist/esm/models/parameters.d.ts.map +1 -0
  89. package/dist/esm/models/parameters.js +81 -0
  90. package/dist/esm/models/parameters.js.map +1 -0
  91. package/dist/esm/operations/dataBoundaries.d.ts +33 -0
  92. package/dist/esm/operations/dataBoundaries.d.ts.map +1 -0
  93. package/dist/esm/operations/dataBoundaries.js +103 -0
  94. package/dist/esm/operations/dataBoundaries.js.map +1 -0
  95. package/dist/esm/operations/index.d.ts +2 -0
  96. package/dist/esm/operations/index.d.ts.map +1 -0
  97. package/dist/esm/operations/index.js +9 -0
  98. package/dist/esm/operations/index.js.map +1 -0
  99. package/dist/esm/operationsInterfaces/dataBoundaries.d.ts +25 -0
  100. package/dist/esm/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  101. package/{src/operations/index.ts → dist/esm/operationsInterfaces/dataBoundaries.js} +2 -2
  102. package/dist/esm/operationsInterfaces/dataBoundaries.js.map +1 -0
  103. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  104. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  105. package/dist/esm/operationsInterfaces/index.js +9 -0
  106. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  107. package/dist/esm/package.json +3 -0
  108. package/dist/react-native/databoundariesManegementClient.d.ts +18 -0
  109. package/dist/react-native/databoundariesManegementClient.d.ts.map +1 -0
  110. package/dist/react-native/databoundariesManegementClient.js +99 -0
  111. package/dist/react-native/databoundariesManegementClient.js.map +1 -0
  112. package/dist/react-native/index.d.ts +4 -0
  113. package/dist/react-native/index.d.ts.map +1 -0
  114. package/dist/react-native/index.js +11 -0
  115. package/dist/react-native/index.js.map +1 -0
  116. package/dist/react-native/models/index.d.ts +213 -0
  117. package/dist/react-native/models/index.d.ts.map +1 -0
  118. package/dist/react-native/models/index.js +54 -0
  119. package/dist/react-native/models/index.js.map +1 -0
  120. package/dist/react-native/models/mappers.d.ts +10 -0
  121. package/dist/react-native/models/mappers.d.ts.map +1 -0
  122. package/dist/react-native/models/mappers.js +227 -0
  123. package/dist/react-native/models/mappers.js.map +1 -0
  124. package/dist/react-native/models/parameters.d.ts +9 -0
  125. package/dist/react-native/models/parameters.d.ts.map +1 -0
  126. package/dist/react-native/models/parameters.js +81 -0
  127. package/dist/react-native/models/parameters.js.map +1 -0
  128. package/dist/react-native/operations/dataBoundaries.d.ts +33 -0
  129. package/dist/react-native/operations/dataBoundaries.d.ts.map +1 -0
  130. package/dist/react-native/operations/dataBoundaries.js +103 -0
  131. package/dist/react-native/operations/dataBoundaries.js.map +1 -0
  132. package/dist/react-native/operations/index.d.ts +2 -0
  133. package/dist/react-native/operations/index.d.ts.map +1 -0
  134. package/dist/react-native/operations/index.js +9 -0
  135. package/dist/react-native/operations/index.js.map +1 -0
  136. package/dist/react-native/operationsInterfaces/dataBoundaries.d.ts +25 -0
  137. package/dist/react-native/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  138. package/{src/operationsInterfaces/index.ts → dist/react-native/operationsInterfaces/dataBoundaries.js} +2 -2
  139. package/dist/react-native/operationsInterfaces/dataBoundaries.js.map +1 -0
  140. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  141. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  142. package/dist/react-native/operationsInterfaces/index.js +9 -0
  143. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  144. package/dist/react-native/package.json +3 -0
  145. package/package.json +84 -70
  146. package/dist/index.js +0 -587
  147. package/dist/index.js.map +0 -1
  148. package/dist/index.min.js +0 -1
  149. package/dist/index.min.js.map +0 -1
  150. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.d.ts +0 -2
  151. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.d.ts.map +0 -1
  152. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.js +0 -37
  153. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.js.map +0 -1
  154. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.d.ts +0 -2
  155. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.d.ts.map +0 -1
  156. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.js +0 -36
  157. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.js.map +0 -1
  158. package/dist-esm/samples-dev/dataBoundariesPutSample.d.ts +0 -2
  159. package/dist-esm/samples-dev/dataBoundariesPutSample.d.ts.map +0 -1
  160. package/dist-esm/samples-dev/dataBoundariesPutSample.js +0 -39
  161. package/dist-esm/samples-dev/dataBoundariesPutSample.js.map +0 -1
  162. package/dist-esm/src/databoundariesManegementClient.d.ts.map +0 -1
  163. package/dist-esm/src/databoundariesManegementClient.js.map +0 -1
  164. package/dist-esm/src/index.d.ts +0 -4
  165. package/dist-esm/src/index.d.ts.map +0 -1
  166. package/dist-esm/src/index.js.map +0 -1
  167. package/dist-esm/src/models/index.js.map +0 -1
  168. package/dist-esm/src/models/mappers.js.map +0 -1
  169. package/dist-esm/src/models/parameters.js.map +0 -1
  170. package/dist-esm/src/operations/dataBoundaries.d.ts.map +0 -1
  171. package/dist-esm/src/operations/dataBoundaries.js.map +0 -1
  172. package/dist-esm/src/operations/index.d.ts +0 -2
  173. package/dist-esm/src/operations/index.js.map +0 -1
  174. package/dist-esm/src/operationsInterfaces/dataBoundaries.d.ts.map +0 -1
  175. package/dist-esm/src/operationsInterfaces/dataBoundaries.js.map +0 -1
  176. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  177. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  178. package/dist-esm/test/databoundaries_operations_test.spec.d.ts +0 -4
  179. package/dist-esm/test/databoundaries_operations_test.spec.d.ts.map +0 -1
  180. package/dist-esm/test/databoundaries_operations_test.spec.js +0 -58
  181. package/dist-esm/test/databoundaries_operations_test.spec.js.map +0 -1
  182. package/src/databoundariesManegementClient.ts +0 -133
  183. package/src/models/index.ts +0 -243
  184. package/src/models/mappers.ts +0 -236
  185. package/src/models/parameters.ts +0 -93
  186. package/src/operations/dataBoundaries.ts +0 -141
  187. package/src/operationsInterfaces/dataBoundaries.ts +0 -53
  188. package/tsconfig.json +0 -33
  189. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  190. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  191. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  192. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  193. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  194. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  195. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  196. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dataBoundaries.js +0 -0
  197. /package/review/{arm-databoundaries.api.md → arm-databoundaries-node.api.md} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History
2
-
2
+
3
+ ## 1.0.0-beta.2 (Unreleased)
4
+
5
+ ### Features Added
6
+
7
+ ### Breaking Changes
8
+
9
+ ### Bugs Fixed
10
+
11
+ ### Other Changes
12
+
3
13
  ## 1.0.0-beta.1 (2024-10-25)
4
14
 
5
15
  ### Features Added
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2024 Microsoft
3
+ MIT License
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
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -6,7 +6,7 @@ Provides APIs for data boundary operations.
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/databoundaries/arm-databoundaries) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-databoundaries) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-databoundaries?view=azure-node-preview) |
9
+ [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-databoundaries?view=azure-node-preview) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
@@ -46,25 +46,32 @@ npm install @azure/identity
46
46
  You will also need to **register a new AAD application and grant access to Azure DataboundariesManegement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47
47
  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`.
48
48
 
49
- 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).
49
+ For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
50
 
51
- ```javascript
52
- const { DataboundariesManegementClient } = require("@azure/arm-databoundaries");
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.
51
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
55
52
 
56
- const client = new DataboundariesManegementClient(new DefaultAzureCredential());
53
+ ```ts snippet:ReadmeSampleCreateClient_Node
54
+ import { DataboundariesManegementClient } from "@azure/arm-databoundaries";
55
+ import { DefaultAzureCredential } from "@azure/identity";
57
56
 
58
- // For client-side applications running in the browser, use this code instead:
59
- // const credential = new InteractiveBrowserCredential({
60
- // tenantId: "<YOUR_TENANT_ID>",
61
- // clientId: "<YOUR_CLIENT_ID>"
62
- // });
63
- // const client = new DataboundariesManegementClient(credential);
57
+ const client = new DataboundariesManegementClient(new DefaultAzureCredential());
64
58
  ```
65
59
 
60
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
61
+
62
+ ```ts snippet:ReadmeSampleCreateClient_Browser
63
+ import { InteractiveBrowserCredential } from "@azure/identity";
64
+ import { DataboundariesManegementClient } from "@azure/arm-databoundaries";
65
+
66
+ const credential = new InteractiveBrowserCredential({
67
+ tenantId: "<YOUR_TENANT_ID>",
68
+ clientId: "<YOUR_CLIENT_ID>",
69
+ });
70
+ const client = new DataboundariesManegementClient(credential);
71
+ ```
66
72
 
67
73
  ### JavaScript Bundle
74
+
68
75
  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).
69
76
 
70
77
  ## Key concepts
@@ -79,8 +86,9 @@ To use this client library in the browser, first you need to use a bundler. For
79
86
 
80
87
  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`:
81
88
 
82
- ```javascript
83
- const { setLogLevel } = require("@azure/logger");
89
+ ```ts snippet:SetLogLevel
90
+ import { setLogLevel } from "@azure/logger";
91
+
84
92
  setLogLevel("info");
85
93
  ```
86
94
 
@@ -98,9 +106,9 @@ If you'd like to contribute to this library, please read the [contributing guide
98
106
 
99
107
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
100
108
 
101
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdataboundaries%2Farm-databoundaries%2FREADME.png)
102
109
 
103
- [azure_cli]: https://docs.microsoft.com/cli/azure
110
+
111
+ [azure_cli]: https://learn.microsoft.com/cli/azure
104
112
  [azure_sub]: https://azure.microsoft.com/free/
105
113
  [azure_sub]: https://azure.microsoft.com/free/
106
114
  [azure_portal]: https://portal.azure.com
@@ -1,7 +1,7 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { DataBoundaries } from "./operationsInterfaces";
4
- import { DataboundariesManegementClientOptionalParams } from "./models";
3
+ import { DataBoundaries } from "./operationsInterfaces/index.js";
4
+ import { DataboundariesManegementClientOptionalParams } from "./models/index.js";
5
5
  export declare class DataboundariesManegementClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
7
  apiVersion: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databoundariesManegementClient.d.ts","sourceRoot":"","sources":["../../src/databoundariesManegementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,4CAA4C,EAAE,MAAM,mBAAmB,CAAC;AAEjF,qBAAa,8BAA+B,SAAQ,UAAU,CAAC,aAAa;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,4CAA4C;IAwExD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,cAAc,EAAE,cAAc,CAAC;CAChC"}
@@ -5,18 +5,18 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __awaiter } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import { DataBoundariesImpl } from "./operations";
10
+ import { DataBoundariesImpl } from "./operations/index.js";
12
11
  export class DataboundariesManegementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
13
14
  /**
14
15
  * Initializes a new instance of the DataboundariesManegementClient class.
15
16
  * @param credentials Subscription credentials which uniquely identify client subscription.
16
17
  * @param options The parameter options
17
18
  */
18
19
  constructor(credentials, options) {
19
- var _a, _b, _c;
20
20
  if (credentials === undefined) {
21
21
  throw new Error("'credentials' cannot be null");
22
22
  }
@@ -28,16 +28,21 @@ export class DataboundariesManegementClient extends coreClient.ServiceClient {
28
28
  requestContentType: "application/json; charset=utf-8",
29
29
  credential: credentials,
30
30
  };
31
- const packageDetails = `azsdk-js-arm-databoundaries/1.0.0-beta.1`;
31
+ const packageDetails = `azsdk-js-arm-databoundaries/1.0.0-beta.2`;
32
32
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
33
33
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
34
34
  : `${packageDetails}`;
35
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
35
+ const optionsWithDefaults = {
36
+ ...defaults,
37
+ ...options,
38
+ userAgentOptions: {
36
39
  userAgentPrefix,
37
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
40
+ },
41
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
42
+ };
38
43
  super(optionsWithDefaults);
39
44
  let bearerTokenAuthenticationPolicyFound = false;
40
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
45
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
41
46
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
42
47
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
43
48
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -51,7 +56,8 @@ export class DataboundariesManegementClient extends coreClient.ServiceClient {
51
56
  });
52
57
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
53
58
  credential: credentials,
54
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
59
+ scopes: optionsWithDefaults.credentialScopes ??
60
+ `${optionsWithDefaults.endpoint}/.default`,
55
61
  challengeCallbacks: {
56
62
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
57
63
  },
@@ -70,25 +76,24 @@ export class DataboundariesManegementClient extends coreClient.ServiceClient {
70
76
  }
71
77
  const apiVersionPolicy = {
72
78
  name: "CustomApiVersionPolicy",
73
- sendRequest(request, next) {
74
- return __awaiter(this, void 0, void 0, function* () {
75
- const param = request.url.split("?");
76
- if (param.length > 1) {
77
- const newParams = param[1].split("&").map((item) => {
78
- if (item.indexOf("api-version") > -1) {
79
- return "api-version=" + apiVersion;
80
- }
81
- else {
82
- return item;
83
- }
84
- });
85
- request.url = param[0] + "?" + newParams.join("&");
86
- }
87
- return next(request);
88
- });
79
+ async sendRequest(request, next) {
80
+ const param = request.url.split("?");
81
+ if (param.length > 1) {
82
+ const newParams = param[1].split("&").map((item) => {
83
+ if (item.indexOf("api-version") > -1) {
84
+ return "api-version=" + apiVersion;
85
+ }
86
+ else {
87
+ return item;
88
+ }
89
+ });
90
+ request.url = param[0] + "?" + newParams.join("&");
91
+ }
92
+ return next(request);
89
93
  },
90
94
  };
91
95
  this.pipeline.addPolicy(apiVersionPolicy);
92
96
  }
97
+ dataBoundaries;
93
98
  }
94
99
  //# sourceMappingURL=databoundariesManegementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databoundariesManegementClient.js","sourceRoot":"","sources":["../../src/databoundariesManegementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,MAAM,OAAO,8BAA+B,SAAQ,UAAU,CAAC,aAAa;IAC1E,KAAK,CAAS;IACd,UAAU,CAAS;IAEnB;;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AAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,cAAc,CAAiB;CAChC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { DataBoundariesImpl } from \"./operations/index.js\";\nimport { DataBoundaries } from \"./operationsInterfaces/index.js\";\nimport { DataboundariesManegementClientOptionalParams } from \"./models/index.js\";\n\nexport class DataboundariesManegementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the DataboundariesManegementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: DataboundariesManegementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataboundariesManegementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-databoundaries/1.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-08-01\";\n this.dataBoundaries = new DataBoundariesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n dataBoundaries: DataBoundaries;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./models/index.js";
2
+ export { DataboundariesManegementClient } from "./databoundariesManegementClient.js";
3
+ export * from "./operationsInterfaces/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,cAAc,iCAAiC,CAAC"}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./models";
9
- export { DataboundariesManegementClient } from "./databoundariesManegementClient";
10
- export * from "./operationsInterfaces";
8
+ export * from "./models/index.js";
9
+ export { DataboundariesManegementClient } from "./databoundariesManegementClient.js";
10
+ export * from "./operationsInterfaces/index.js";
11
11
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { DataboundariesManegementClient } from \"./databoundariesManegementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiHH,oEAAoE;AACpE,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,cAAc;IACd,uCAAmB,CAAA;AACrB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAWD,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,iBAAiB;IACjB,8CAAyB,CAAA;IACzB,aAAa;IACb,sCAAiB,CAAA;IACjB,SAAS;IACT,8BAAS,CAAA;AACX,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAaD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBAeX;AAfD,WAAY,sBAAsB;IAChC,eAAe;IACf,+CAAqB,CAAA;IACrB,cAAc;IACd,6CAAmB,CAAA;IACnB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,aAAa;IACb,2CAAiB,CAAA;IACjB,gBAAgB;IAChB,iDAAuB,CAAA;IACvB,eAAe;IACf,+CAAqB,CAAA;AACvB,CAAC,EAfW,sBAAsB,KAAtB,sBAAsB,QAejC;AAiBD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Data boundary properties */\nexport interface DataBoundaryProperties {\n /** The data boundary definition. */\n dataBoundary?: DataBoundary;\n /**\n * Denotes the state of provisioning.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Azure Resource Manager metadata containing createdBy and modifiedBy information.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\n/** A data boundary definition. */\nexport interface DataBoundaryDefinition extends ProxyResource {\n /** Data boundary properties */\n properties?: DataBoundaryProperties;\n}\n\n/** Known values of {@link DefaultName} that the service accepts. */\nexport enum KnownDefaultName {\n /** Default */\n Default = \"default\",\n}\n\n/**\n * Defines values for DefaultName. \\\n * {@link KnownDefaultName} can be used interchangeably with DefaultName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **default**\n */\nexport type DefaultName = string;\n\n/** Known values of {@link DataBoundary} that the service accepts. */\nexport enum KnownDataBoundary {\n /** NotDefined */\n NotDefined = \"NotDefined\",\n /** Global */\n Global = \"Global\",\n /** EU */\n EU = \"EU\",\n}\n\n/**\n * Defines values for DataBoundary. \\\n * {@link KnownDataBoundary} can be used interchangeably with DataBoundary,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotDefined** \\\n * **Global** \\\n * **EU**\n */\nexport type DataBoundary = string;\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Accepted */\n Accepted = \"Accepted\",\n /** Running */\n Running = \"Running\",\n /** Creating */\n Creating = \"Creating\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Failed */\n Failed = \"Failed\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Updating */\n Updating = \"Updating\",\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Accepted** \\\n * **Running** \\\n * **Creating** \\\n * **Canceled** \\\n * **Failed** \\\n * **Succeeded** \\\n * **Updating**\n */\nexport type ProvisioningState = string;\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\",\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Optional parameters. */\nexport interface DataBoundariesPutOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the put operation. */\nexport type DataBoundariesPutResponse = DataBoundaryDefinition;\n\n/** Optional parameters. */\nexport interface DataBoundariesGetTenantOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getTenant operation. */\nexport type DataBoundariesGetTenantResponse = DataBoundaryDefinition;\n\n/** Optional parameters. */\nexport interface DataBoundariesGetScopeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getScope operation. */\nexport type DataBoundariesGetScopeResponse = DataBoundaryDefinition;\n\n/** Optional parameters. */\nexport interface DataboundariesManegementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -203,20 +203,25 @@ export const ProxyResource = {
203
203
  type: {
204
204
  name: "Composite",
205
205
  className: "ProxyResource",
206
- modelProperties: Object.assign({}, Resource.type.modelProperties),
206
+ modelProperties: {
207
+ ...Resource.type.modelProperties,
208
+ },
207
209
  },
208
210
  };
209
211
  export const DataBoundaryDefinition = {
210
212
  type: {
211
213
  name: "Composite",
212
214
  className: "DataBoundaryDefinition",
213
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
215
+ modelProperties: {
216
+ ...ProxyResource.type.modelProperties,
217
+ properties: {
214
218
  serializedName: "properties",
215
219
  type: {
216
220
  name: "Composite",
217
221
  className: "DataBoundaryProperties",
218
222
  },
219
- } }),
223
+ },
224
+ },
220
225
  },
221
226
  };
222
227
  //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAA+B;IAChE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,wBAAwB;QACnC,eAAe,EAAE;YACf,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,iBAAiB,EAAE;gBACjB,cAAc,EAAE,mBAAmB;gBACnC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA+B;IAClD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EA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E,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA+B;IACvD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,eAAe;QAC1B,eAAe,EAAE;YACf,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe;SACjC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAA+B;IAChE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,wBAAwB;QACnC,eAAe,EAAE;YACf,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,wBAAwB;iBACpC;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const DataBoundaryProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DataBoundaryProperties\",\n modelProperties: {\n dataBoundary: {\n serializedName: \"dataBoundary\",\n type: {\n name: \"String\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n },\n },\n },\n },\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\",\n },\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\",\n },\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\",\n },\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } },\n },\n },\n },\n },\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n },\n },\n};\n\nexport const DataBoundaryDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DataBoundaryDefinition\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"DataBoundaryProperties\",\n },\n },\n },\n },\n};\n"]}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { DataBoundaryDefinition as DataBoundaryDefinitionMapper } from "../models/mappers";
8
+ import { DataBoundaryDefinition as DataBoundaryDefinitionMapper } from "../models/mappers.js";
9
9
  export const contentType = {
10
10
  parameterPath: ["options", "contentType"],
11
11
  mapper: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EA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OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport { DataBoundaryDefinition as DataBoundaryDefinitionMapper } from \"../models/mappers.js\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const dataBoundaryDefinition: OperationParameter = {\n parameterPath: \"dataBoundaryDefinition\",\n mapper: DataBoundaryDefinitionMapper,\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2024-08-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const defaultParam: OperationURLParameter = {\n parameterPath: \"defaultParam\",\n mapper: {\n serializedName: \"default\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const scope: OperationURLParameter = {\n parameterPath: \"scope\",\n mapper: {\n constraints: {\n MinLength: 1,\n },\n serializedName: \"scope\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { DataBoundaries } from "../operationsInterfaces";
2
- import { DataboundariesManegementClient } from "../databoundariesManegementClient";
3
- import { DataBoundaryDefinition, DefaultName, DataBoundariesPutOptionalParams, DataBoundariesPutResponse, DataBoundariesGetTenantOptionalParams, DataBoundariesGetTenantResponse, DataBoundariesGetScopeOptionalParams, DataBoundariesGetScopeResponse } from "../models";
1
+ import { DataBoundaries } from "../operationsInterfaces/index.js";
2
+ import { DataboundariesManegementClient } from "../databoundariesManegementClient.js";
3
+ import { DataBoundaryDefinition, DefaultName, DataBoundariesPutOptionalParams, DataBoundariesPutResponse, DataBoundariesGetTenantOptionalParams, DataBoundariesGetTenantResponse, DataBoundariesGetScopeOptionalParams, DataBoundariesGetScopeResponse } from "../models/index.js";
4
4
  /** Class containing DataBoundaries operations. */
5
5
  export declare class DataBoundariesImpl implements DataBoundaries {
6
6
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataBoundaries.d.ts","sourceRoot":"","sources":["../../../src/operations/dataBoundaries.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,+BAA+B,EAC/B,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,oBAAoB,CAAC;AAE5B,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD;;;OAGG;gBACS,MAAM,EAAE,8BAA8B;IAIlD;;;;;OAKG;IACH,GAAG,CACD,YAAY,EAAE,WAAW,EACzB,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;OAIG;IACH,SAAS,CACP,YAAY,EAAE,WAAW,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;OAKG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,WAAW,EACzB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;CAM3C"}
@@ -6,10 +6,11 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
- import * as Mappers from "../models/mappers";
10
- import * as Parameters from "../models/parameters";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing DataBoundaries operations. */
12
12
  export class DataBoundariesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class DataBoundaries class.
15
16
  * @param client Reference to the service client
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataBoundaries.js","sourceRoot":"","sources":["../../../src/operations/dataBoundaries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,YAAyB,EACzB,sBAA8C,EAC9C,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,EACjD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,SAAS,CACP,YAAyB,EACzB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,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E,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC;IAC1D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,iEAAiE;IACvE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,KAAK,CAAC;IAC5E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DataBoundaries } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataboundariesManegementClient } from \"../databoundariesManegementClient.js\";\nimport {\n DataBoundaryDefinition,\n DefaultName,\n DataBoundariesPutOptionalParams,\n DataBoundariesPutResponse,\n DataBoundariesGetTenantOptionalParams,\n DataBoundariesGetTenantResponse,\n DataBoundariesGetScopeOptionalParams,\n DataBoundariesGetScopeResponse,\n} from \"../models/index.js\";\n\n/** Class containing DataBoundaries operations. */\nexport class DataBoundariesImpl implements DataBoundaries {\n private readonly client: DataboundariesManegementClient;\n\n /**\n * Initialize a new instance of the class DataBoundaries class.\n * @param client Reference to the service client\n */\n constructor(client: DataboundariesManegementClient) {\n this.client = client;\n }\n\n /**\n * Opt-in tenant to data boundary.\n * @param defaultParam Default string modeled as parameter for auto generation to work correctly.\n * @param dataBoundaryDefinition The data boundary to opt the tenant to.\n * @param options The options parameters.\n */\n put(\n defaultParam: DefaultName,\n dataBoundaryDefinition: DataBoundaryDefinition,\n options?: DataBoundariesPutOptionalParams,\n ): Promise<DataBoundariesPutResponse> {\n return this.client.sendOperationRequest(\n { defaultParam, dataBoundaryDefinition, options },\n putOperationSpec,\n );\n }\n\n /**\n * Get data boundary of tenant.\n * @param defaultParam Default string modeled as parameter for auto generation to work correctly.\n * @param options The options parameters.\n */\n getTenant(\n defaultParam: DefaultName,\n options?: DataBoundariesGetTenantOptionalParams,\n ): Promise<DataBoundariesGetTenantResponse> {\n return this.client.sendOperationRequest(\n { defaultParam, options },\n getTenantOperationSpec,\n );\n }\n\n /**\n * Get data boundary at specified scope\n * @param scope The scope at which the operation is performed.\n * @param defaultParam Default string modeled as parameter for auto generation to work correctly.\n * @param options The options parameters.\n */\n getScope(\n scope: string,\n defaultParam: DefaultName,\n options?: DataBoundariesGetScopeOptionalParams,\n ): Promise<DataBoundariesGetScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, defaultParam, options },\n getScopeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Resources/dataBoundaries/{default}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataBoundaryDefinition,\n },\n 201: {\n bodyMapper: Mappers.DataBoundaryDefinition,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.dataBoundaryDefinition,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.defaultParam],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getTenantOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Resources/dataBoundaries/{default}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataBoundaryDefinition,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.defaultParam],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/dataBoundaries/{default}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataBoundaryDefinition,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.defaultParam, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./dataBoundaries.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./dataBoundaries";
8
+ export * from "./dataBoundaries.js";
9
9
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./dataBoundaries.js\";\n"]}
@@ -1,4 +1,4 @@
1
- import { DataBoundaryDefinition, DefaultName, DataBoundariesPutOptionalParams, DataBoundariesPutResponse, DataBoundariesGetTenantOptionalParams, DataBoundariesGetTenantResponse, DataBoundariesGetScopeOptionalParams, DataBoundariesGetScopeResponse } from "../models";
1
+ import { DataBoundaryDefinition, DefaultName, DataBoundariesPutOptionalParams, DataBoundariesPutResponse, DataBoundariesGetTenantOptionalParams, DataBoundariesGetTenantResponse, DataBoundariesGetScopeOptionalParams, DataBoundariesGetScopeResponse } from "../models/index.js";
2
2
  /** Interface representing a DataBoundaries. */
3
3
  export interface DataBoundaries {
4
4
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataBoundaries.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/dataBoundaries.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,+BAA+B,EAC/B,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,oBAAoB,CAAC;AAE5B,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,GAAG,CACD,YAAY,EAAE,WAAW,EACzB,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;OAIG;IACH,SAAS,CACP,YAAY,EAAE,WAAW,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,WAAW,EACzB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC5C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataBoundaries.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/dataBoundaries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n DataBoundaryDefinition,\n DefaultName,\n DataBoundariesPutOptionalParams,\n DataBoundariesPutResponse,\n DataBoundariesGetTenantOptionalParams,\n DataBoundariesGetTenantResponse,\n DataBoundariesGetScopeOptionalParams,\n DataBoundariesGetScopeResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a DataBoundaries. */\nexport interface DataBoundaries {\n /**\n * Opt-in tenant to data boundary.\n * @param defaultParam Default string modeled as parameter for auto generation to work correctly.\n * @param dataBoundaryDefinition The data boundary to opt the tenant to.\n * @param options The options parameters.\n */\n put(\n defaultParam: DefaultName,\n dataBoundaryDefinition: DataBoundaryDefinition,\n options?: DataBoundariesPutOptionalParams,\n ): Promise<DataBoundariesPutResponse>;\n /**\n * Get data boundary of tenant.\n * @param defaultParam Default string modeled as parameter for auto generation to work correctly.\n * @param options The options parameters.\n */\n getTenant(\n defaultParam: DefaultName,\n options?: DataBoundariesGetTenantOptionalParams,\n ): Promise<DataBoundariesGetTenantResponse>;\n /**\n * Get data boundary at specified scope\n * @param scope The scope at which the operation is performed.\n * @param defaultParam Default string modeled as parameter for auto generation to work correctly.\n * @param options The options parameters.\n */\n getScope(\n scope: string,\n defaultParam: DefaultName,\n options?: DataBoundariesGetScopeOptionalParams,\n ): Promise<DataBoundariesGetScopeResponse>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./dataBoundaries.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./dataBoundaries";
8
+ export * from "./dataBoundaries.js";
9
9
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./dataBoundaries.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,18 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { DataBoundaries } from "./operationsInterfaces/index.js";
4
+ import { DataboundariesManegementClientOptionalParams } from "./models/index.js";
5
+ export declare class DataboundariesManegementClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ /**
9
+ * Initializes a new instance of the DataboundariesManegementClient class.
10
+ * @param credentials Subscription credentials which uniquely identify client subscription.
11
+ * @param options The parameter options
12
+ */
13
+ constructor(credentials: coreAuth.TokenCredential, options?: DataboundariesManegementClientOptionalParams);
14
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
15
+ private addCustomApiVersionPolicy;
16
+ dataBoundaries: DataBoundaries;
17
+ }
18
+ //# sourceMappingURL=databoundariesManegementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databoundariesManegementClient.d.ts","sourceRoot":"","sources":["../../src/databoundariesManegementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,4CAA4C,EAAE,MAAM,mBAAmB,CAAC;AAEjF,qBAAa,8BAA+B,SAAQ,UAAU,CAAC,aAAa;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,4CAA4C;IAwExD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,cAAc,EAAE,cAAc,CAAC;CAChC"}