@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
@@ -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"}
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { DataBoundariesImpl } from "./operations/index.js";
11
+ export class DataboundariesManegementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ /**
15
+ * Initializes a new instance of the DataboundariesManegementClient class.
16
+ * @param credentials Subscription credentials which uniquely identify client subscription.
17
+ * @param options The parameter options
18
+ */
19
+ constructor(credentials, options) {
20
+ if (credentials === undefined) {
21
+ throw new Error("'credentials' cannot be null");
22
+ }
23
+ // Initializing default values for options
24
+ if (!options) {
25
+ options = {};
26
+ }
27
+ const defaults = {
28
+ requestContentType: "application/json; charset=utf-8",
29
+ credential: credentials,
30
+ };
31
+ const packageDetails = `azsdk-js-arm-databoundaries/1.0.0-beta.2`;
32
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
33
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
34
+ : `${packageDetails}`;
35
+ const optionsWithDefaults = {
36
+ ...defaults,
37
+ ...options,
38
+ userAgentOptions: {
39
+ userAgentPrefix,
40
+ },
41
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
42
+ };
43
+ super(optionsWithDefaults);
44
+ let bearerTokenAuthenticationPolicyFound = false;
45
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
46
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
49
+ }
50
+ if (!options ||
51
+ !options.pipeline ||
52
+ options.pipeline.getOrderedPolicies().length == 0 ||
53
+ !bearerTokenAuthenticationPolicyFound) {
54
+ this.pipeline.removePolicy({
55
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
56
+ });
57
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
58
+ credential: credentials,
59
+ scopes: optionsWithDefaults.credentialScopes ??
60
+ `${optionsWithDefaults.endpoint}/.default`,
61
+ challengeCallbacks: {
62
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
63
+ },
64
+ }));
65
+ }
66
+ // Assigning values to Constant parameters
67
+ this.$host = options.$host || "https://management.azure.com";
68
+ this.apiVersion = options.apiVersion || "2024-08-01";
69
+ this.dataBoundaries = new DataBoundariesImpl(this);
70
+ this.addCustomApiVersionPolicy(options.apiVersion);
71
+ }
72
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
73
+ addCustomApiVersionPolicy(apiVersion) {
74
+ if (!apiVersion) {
75
+ return;
76
+ }
77
+ const apiVersionPolicy = {
78
+ name: "CustomApiVersionPolicy",
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);
93
+ },
94
+ };
95
+ this.pipeline.addPolicy(apiVersionPolicy);
96
+ }
97
+ dataBoundaries;
98
+ }
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,8BA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,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;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
-
9
- export * from "./models";
10
- export { DataboundariesManegementClient } from "./databoundariesManegementClient";
11
- export * from "./operationsInterfaces";
8
+ export * from "./models/index.js";
9
+ export { DataboundariesManegementClient } from "./databoundariesManegementClient.js";
10
+ export * from "./operationsInterfaces/index.js";
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,213 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ /** Data boundary properties */
3
+ export interface DataBoundaryProperties {
4
+ /** The data boundary definition. */
5
+ dataBoundary?: DataBoundary;
6
+ /**
7
+ * Denotes the state of provisioning.
8
+ * NOTE: This property will not be serialized. It can only be populated by the server.
9
+ */
10
+ readonly provisioningState?: ProvisioningState;
11
+ }
12
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
13
+ export interface Resource {
14
+ /**
15
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
16
+ * NOTE: This property will not be serialized. It can only be populated by the server.
17
+ */
18
+ readonly id?: string;
19
+ /**
20
+ * The name of the resource
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
22
+ */
23
+ readonly name?: string;
24
+ /**
25
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
+ */
28
+ readonly type?: string;
29
+ /**
30
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
+ */
33
+ readonly systemData?: SystemData;
34
+ }
35
+ /** Metadata pertaining to creation and last modification of the resource. */
36
+ export interface SystemData {
37
+ /** The identity that created the resource. */
38
+ createdBy?: string;
39
+ /** The type of identity that created the resource. */
40
+ createdByType?: CreatedByType;
41
+ /** The timestamp of resource creation (UTC). */
42
+ createdAt?: Date;
43
+ /** The identity that last modified the resource. */
44
+ lastModifiedBy?: string;
45
+ /** The type of identity that last modified the resource. */
46
+ lastModifiedByType?: CreatedByType;
47
+ /** The timestamp of resource last modification (UTC) */
48
+ lastModifiedAt?: Date;
49
+ }
50
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
51
+ export interface ErrorResponse {
52
+ /** The error object. */
53
+ error?: ErrorDetail;
54
+ }
55
+ /** The error detail. */
56
+ export interface ErrorDetail {
57
+ /**
58
+ * The error code.
59
+ * NOTE: This property will not be serialized. It can only be populated by the server.
60
+ */
61
+ readonly code?: string;
62
+ /**
63
+ * The error message.
64
+ * NOTE: This property will not be serialized. It can only be populated by the server.
65
+ */
66
+ readonly message?: string;
67
+ /**
68
+ * The error target.
69
+ * NOTE: This property will not be serialized. It can only be populated by the server.
70
+ */
71
+ readonly target?: string;
72
+ /**
73
+ * The error details.
74
+ * NOTE: This property will not be serialized. It can only be populated by the server.
75
+ */
76
+ readonly details?: ErrorDetail[];
77
+ /**
78
+ * The error additional info.
79
+ * NOTE: This property will not be serialized. It can only be populated by the server.
80
+ */
81
+ readonly additionalInfo?: ErrorAdditionalInfo[];
82
+ }
83
+ /** The resource management error additional info. */
84
+ export interface ErrorAdditionalInfo {
85
+ /**
86
+ * The additional info type.
87
+ * NOTE: This property will not be serialized. It can only be populated by the server.
88
+ */
89
+ readonly type?: string;
90
+ /**
91
+ * The additional info.
92
+ * NOTE: This property will not be serialized. It can only be populated by the server.
93
+ */
94
+ readonly info?: Record<string, unknown>;
95
+ }
96
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
97
+ export interface ProxyResource extends Resource {
98
+ }
99
+ /** A data boundary definition. */
100
+ export interface DataBoundaryDefinition extends ProxyResource {
101
+ /** Data boundary properties */
102
+ properties?: DataBoundaryProperties;
103
+ }
104
+ /** Known values of {@link DefaultName} that the service accepts. */
105
+ export declare enum KnownDefaultName {
106
+ /** Default */
107
+ Default = "default"
108
+ }
109
+ /**
110
+ * Defines values for DefaultName. \
111
+ * {@link KnownDefaultName} can be used interchangeably with DefaultName,
112
+ * this enum contains the known values that the service supports.
113
+ * ### Known values supported by the service
114
+ * **default**
115
+ */
116
+ export type DefaultName = string;
117
+ /** Known values of {@link DataBoundary} that the service accepts. */
118
+ export declare enum KnownDataBoundary {
119
+ /** NotDefined */
120
+ NotDefined = "NotDefined",
121
+ /** Global */
122
+ Global = "Global",
123
+ /** EU */
124
+ EU = "EU"
125
+ }
126
+ /**
127
+ * Defines values for DataBoundary. \
128
+ * {@link KnownDataBoundary} can be used interchangeably with DataBoundary,
129
+ * this enum contains the known values that the service supports.
130
+ * ### Known values supported by the service
131
+ * **NotDefined** \
132
+ * **Global** \
133
+ * **EU**
134
+ */
135
+ export type DataBoundary = string;
136
+ /** Known values of {@link ProvisioningState} that the service accepts. */
137
+ export declare enum KnownProvisioningState {
138
+ /** Accepted */
139
+ Accepted = "Accepted",
140
+ /** Running */
141
+ Running = "Running",
142
+ /** Creating */
143
+ Creating = "Creating",
144
+ /** Canceled */
145
+ Canceled = "Canceled",
146
+ /** Failed */
147
+ Failed = "Failed",
148
+ /** Succeeded */
149
+ Succeeded = "Succeeded",
150
+ /** Updating */
151
+ Updating = "Updating"
152
+ }
153
+ /**
154
+ * Defines values for ProvisioningState. \
155
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
156
+ * this enum contains the known values that the service supports.
157
+ * ### Known values supported by the service
158
+ * **Accepted** \
159
+ * **Running** \
160
+ * **Creating** \
161
+ * **Canceled** \
162
+ * **Failed** \
163
+ * **Succeeded** \
164
+ * **Updating**
165
+ */
166
+ export type ProvisioningState = string;
167
+ /** Known values of {@link CreatedByType} that the service accepts. */
168
+ export declare enum KnownCreatedByType {
169
+ /** User */
170
+ User = "User",
171
+ /** Application */
172
+ Application = "Application",
173
+ /** ManagedIdentity */
174
+ ManagedIdentity = "ManagedIdentity",
175
+ /** Key */
176
+ Key = "Key"
177
+ }
178
+ /**
179
+ * Defines values for CreatedByType. \
180
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
181
+ * this enum contains the known values that the service supports.
182
+ * ### Known values supported by the service
183
+ * **User** \
184
+ * **Application** \
185
+ * **ManagedIdentity** \
186
+ * **Key**
187
+ */
188
+ export type CreatedByType = string;
189
+ /** Optional parameters. */
190
+ export interface DataBoundariesPutOptionalParams extends coreClient.OperationOptions {
191
+ }
192
+ /** Contains response data for the put operation. */
193
+ export type DataBoundariesPutResponse = DataBoundaryDefinition;
194
+ /** Optional parameters. */
195
+ export interface DataBoundariesGetTenantOptionalParams extends coreClient.OperationOptions {
196
+ }
197
+ /** Contains response data for the getTenant operation. */
198
+ export type DataBoundariesGetTenantResponse = DataBoundaryDefinition;
199
+ /** Optional parameters. */
200
+ export interface DataBoundariesGetScopeOptionalParams extends coreClient.OperationOptions {
201
+ }
202
+ /** Contains response data for the getScope operation. */
203
+ export type DataBoundariesGetScopeResponse = DataBoundaryDefinition;
204
+ /** Optional parameters. */
205
+ export interface DataboundariesManegementClientOptionalParams extends coreClient.ServiceClientOptions {
206
+ /** server parameter */
207
+ $host?: string;
208
+ /** Api Version */
209
+ apiVersion?: string;
210
+ /** Overrides client endpoint. */
211
+ endpoint?: string;
212
+ }
213
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CAChD;AAED,+FAA+F;AAC/F,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,Q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BAA2B;AAC3B,MAAM,WAAW,oCACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,yDAAyD;AACzD,MAAM,MAAM,8BAA8B,GAAG,sBAAsB,CAAC;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,4CACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ /** Known values of {@link DefaultName} that the service accepts. */
9
+ export var KnownDefaultName;
10
+ (function (KnownDefaultName) {
11
+ /** Default */
12
+ KnownDefaultName["Default"] = "default";
13
+ })(KnownDefaultName || (KnownDefaultName = {}));
14
+ /** Known values of {@link DataBoundary} that the service accepts. */
15
+ export var KnownDataBoundary;
16
+ (function (KnownDataBoundary) {
17
+ /** NotDefined */
18
+ KnownDataBoundary["NotDefined"] = "NotDefined";
19
+ /** Global */
20
+ KnownDataBoundary["Global"] = "Global";
21
+ /** EU */
22
+ KnownDataBoundary["EU"] = "EU";
23
+ })(KnownDataBoundary || (KnownDataBoundary = {}));
24
+ /** Known values of {@link ProvisioningState} that the service accepts. */
25
+ export var KnownProvisioningState;
26
+ (function (KnownProvisioningState) {
27
+ /** Accepted */
28
+ KnownProvisioningState["Accepted"] = "Accepted";
29
+ /** Running */
30
+ KnownProvisioningState["Running"] = "Running";
31
+ /** Creating */
32
+ KnownProvisioningState["Creating"] = "Creating";
33
+ /** Canceled */
34
+ KnownProvisioningState["Canceled"] = "Canceled";
35
+ /** Failed */
36
+ KnownProvisioningState["Failed"] = "Failed";
37
+ /** Succeeded */
38
+ KnownProvisioningState["Succeeded"] = "Succeeded";
39
+ /** Updating */
40
+ KnownProvisioningState["Updating"] = "Updating";
41
+ })(KnownProvisioningState || (KnownProvisioningState = {}));
42
+ /** Known values of {@link CreatedByType} that the service accepts. */
43
+ export var KnownCreatedByType;
44
+ (function (KnownCreatedByType) {
45
+ /** User */
46
+ KnownCreatedByType["User"] = "User";
47
+ /** Application */
48
+ KnownCreatedByType["Application"] = "Application";
49
+ /** ManagedIdentity */
50
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
51
+ /** Key */
52
+ KnownCreatedByType["Key"] = "Key";
53
+ })(KnownCreatedByType || (KnownCreatedByType = {}));
54
+ //# sourceMappingURL=index.js.map
@@ -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"]}
@@ -0,0 +1,10 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare const DataBoundaryProperties: coreClient.CompositeMapper;
3
+ export declare const Resource: coreClient.CompositeMapper;
4
+ export declare const SystemData: coreClient.CompositeMapper;
5
+ export declare const ErrorResponse: coreClient.CompositeMapper;
6
+ export declare const ErrorDetail: coreClient.CompositeMapper;
7
+ export declare const ErrorAdditionalInfo: coreClient.CompositeMapper;
8
+ export declare const ProxyResource: coreClient.CompositeMapper;
9
+ export declare const DataBoundaryDefinition: coreClient.CompositeMapper;
10
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAoB/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAmCjC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eA2CnC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eActC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAsDpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAsB5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAQtC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAe/C,CAAC"}