@azure/template 1.0.12-beta.3682781 → 1.0.12-beta.3703824

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 (209) hide show
  1. package/{types/latest/template.d.ts → dist/browser/configurationClient.d.ts} +64 -88
  2. package/dist/browser/configurationClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/configurationClient.js +4 -4
  4. package/dist/browser/configurationClient.js.map +1 -0
  5. package/dist/browser/constants.d.ts +2 -0
  6. package/dist/browser/constants.d.ts.map +1 -0
  7. package/dist/browser/constants.js +4 -0
  8. package/{dist-esm/src → dist/browser}/constants.js.map +1 -1
  9. package/dist/browser/generated/generatedClient.d.ts +168 -0
  10. package/dist/browser/generated/generatedClient.d.ts.map +1 -0
  11. package/{dist-esm/src → dist/browser}/generated/generatedClient.js +313 -23
  12. package/dist/browser/generated/generatedClient.js.map +1 -0
  13. package/dist/browser/generated/generatedClientContext.d.ts +15 -0
  14. package/dist/browser/generated/generatedClientContext.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/generated/generatedClientContext.js +2 -2
  16. package/dist/browser/generated/generatedClientContext.js.map +1 -0
  17. package/dist/browser/generated/index.d.ts +4 -0
  18. package/dist/browser/generated/index.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/generated/index.js +3 -3
  20. package/dist/browser/generated/index.js.map +1 -0
  21. package/dist/browser/generated/lroImpl.d.ts +16 -0
  22. package/dist/browser/generated/lroImpl.d.ts.map +1 -0
  23. package/dist/browser/generated/lroImpl.js +25 -0
  24. package/dist/browser/generated/lroImpl.js.map +1 -0
  25. package/dist/browser/generated/models/index.d.ts +775 -0
  26. package/dist/browser/generated/models/index.d.ts.map +1 -0
  27. package/dist/browser/generated/models/index.js +54 -0
  28. package/dist/browser/generated/models/index.js.map +1 -0
  29. package/dist/browser/generated/models/mappers.d.ts +41 -0
  30. package/dist/browser/generated/models/mappers.d.ts.map +1 -0
  31. package/{dist-esm/src → dist/browser}/generated/models/mappers.js +446 -9
  32. package/dist/browser/generated/models/mappers.js.map +1 -0
  33. package/dist/browser/generated/models/parameters.d.ts +35 -0
  34. package/dist/browser/generated/models/parameters.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/generated/models/parameters.js +155 -32
  36. package/dist/browser/generated/models/parameters.js.map +1 -0
  37. package/dist/browser/index.d.ts +2 -0
  38. package/dist/browser/index.d.ts.map +1 -0
  39. package/{dist-esm/src → dist/browser}/index.js +1 -1
  40. package/{dist-esm/src → dist/browser}/index.js.map +1 -1
  41. package/dist/browser/logger.d.ts +7 -0
  42. package/dist/browser/logger.d.ts.map +1 -0
  43. package/dist/browser/package.json +3 -0
  44. package/dist/browser/util.d.ts +12 -0
  45. package/dist/browser/util.d.ts.map +1 -0
  46. package/dist/commonjs/configurationClient.d.ts +64 -0
  47. package/dist/commonjs/configurationClient.d.ts.map +1 -0
  48. package/dist/commonjs/configurationClient.js +94 -0
  49. package/dist/commonjs/configurationClient.js.map +1 -0
  50. package/dist/commonjs/constants.d.ts +2 -0
  51. package/dist/commonjs/constants.d.ts.map +1 -0
  52. package/dist/commonjs/constants.js +7 -0
  53. package/dist/commonjs/constants.js.map +1 -0
  54. package/dist/commonjs/generated/generatedClient.d.ts +168 -0
  55. package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
  56. package/dist/commonjs/generated/generatedClient.js +866 -0
  57. package/dist/commonjs/generated/generatedClient.js.map +1 -0
  58. package/dist/commonjs/generated/generatedClientContext.d.ts +15 -0
  59. package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
  60. package/dist/commonjs/generated/generatedClientContext.js +46 -0
  61. package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
  62. package/dist/commonjs/generated/index.d.ts +4 -0
  63. package/dist/commonjs/generated/index.d.ts.map +1 -0
  64. package/dist/commonjs/generated/index.js +17 -0
  65. package/dist/commonjs/generated/index.js.map +1 -0
  66. package/dist/commonjs/generated/lroImpl.d.ts +16 -0
  67. package/dist/commonjs/generated/lroImpl.d.ts.map +1 -0
  68. package/dist/commonjs/generated/lroImpl.js +29 -0
  69. package/dist/commonjs/generated/lroImpl.js.map +1 -0
  70. package/dist/commonjs/generated/models/index.d.ts +775 -0
  71. package/dist/commonjs/generated/models/index.d.ts.map +1 -0
  72. package/dist/commonjs/generated/models/index.js +57 -0
  73. package/dist/commonjs/generated/models/index.js.map +1 -0
  74. package/dist/commonjs/generated/models/mappers.d.ts +41 -0
  75. package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
  76. package/dist/commonjs/generated/models/mappers.js +952 -0
  77. package/dist/commonjs/generated/models/mappers.js.map +1 -0
  78. package/dist/commonjs/generated/models/parameters.d.ts +35 -0
  79. package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
  80. package/dist/commonjs/generated/models/parameters.js +351 -0
  81. package/dist/commonjs/generated/models/parameters.js.map +1 -0
  82. package/dist/commonjs/index.d.ts +2 -0
  83. package/dist/commonjs/index.d.ts.map +1 -0
  84. package/dist/commonjs/index.js +7 -0
  85. package/dist/commonjs/index.js.map +1 -0
  86. package/dist/commonjs/logger.d.ts +7 -0
  87. package/dist/commonjs/logger.d.ts.map +1 -0
  88. package/dist/commonjs/logger.js +13 -0
  89. package/dist/commonjs/logger.js.map +1 -0
  90. package/dist/commonjs/package.json +3 -0
  91. package/dist/commonjs/util.d.ts +12 -0
  92. package/dist/commonjs/util.d.ts.map +1 -0
  93. package/dist/commonjs/util.js +30 -0
  94. package/dist/commonjs/util.js.map +1 -0
  95. package/dist/esm/configurationClient.d.ts +64 -0
  96. package/dist/esm/configurationClient.d.ts.map +1 -0
  97. package/dist/esm/configurationClient.js +90 -0
  98. package/dist/esm/configurationClient.js.map +1 -0
  99. package/dist/esm/constants.d.ts +2 -0
  100. package/dist/esm/constants.d.ts.map +1 -0
  101. package/dist/esm/constants.js +4 -0
  102. package/dist/esm/constants.js.map +1 -0
  103. package/dist/esm/generated/generatedClient.d.ts +168 -0
  104. package/dist/esm/generated/generatedClient.d.ts.map +1 -0
  105. package/dist/esm/generated/generatedClient.js +861 -0
  106. package/dist/esm/generated/generatedClient.js.map +1 -0
  107. package/dist/esm/generated/generatedClientContext.d.ts +15 -0
  108. package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
  109. package/dist/esm/generated/generatedClientContext.js +41 -0
  110. package/dist/esm/generated/generatedClientContext.js.map +1 -0
  111. package/dist/esm/generated/index.d.ts +4 -0
  112. package/dist/esm/generated/index.d.ts.map +1 -0
  113. package/{dist-esm/src/generated/models → dist/esm/generated}/index.js +3 -1
  114. package/dist/esm/generated/index.js.map +1 -0
  115. package/dist/esm/generated/lroImpl.d.ts +16 -0
  116. package/dist/esm/generated/lroImpl.d.ts.map +1 -0
  117. package/dist/esm/generated/lroImpl.js +25 -0
  118. package/dist/esm/generated/lroImpl.js.map +1 -0
  119. package/dist/esm/generated/models/index.d.ts +775 -0
  120. package/dist/esm/generated/models/index.d.ts.map +1 -0
  121. package/dist/esm/generated/models/index.js +54 -0
  122. package/dist/esm/generated/models/index.js.map +1 -0
  123. package/dist/esm/generated/models/mappers.d.ts +41 -0
  124. package/dist/esm/generated/models/mappers.d.ts.map +1 -0
  125. package/dist/esm/generated/models/mappers.js +949 -0
  126. package/dist/esm/generated/models/mappers.js.map +1 -0
  127. package/dist/esm/generated/models/parameters.d.ts +35 -0
  128. package/dist/esm/generated/models/parameters.d.ts.map +1 -0
  129. package/dist/esm/generated/models/parameters.js +348 -0
  130. package/dist/esm/generated/models/parameters.js.map +1 -0
  131. package/dist/esm/index.d.ts +2 -0
  132. package/dist/esm/index.d.ts.map +1 -0
  133. package/dist/esm/index.js +4 -0
  134. package/dist/esm/index.js.map +1 -0
  135. package/dist/esm/logger.d.ts +7 -0
  136. package/dist/esm/logger.d.ts.map +1 -0
  137. package/dist/esm/logger.js +10 -0
  138. package/dist/esm/logger.js.map +1 -0
  139. package/dist/esm/package.json +3 -0
  140. package/dist/esm/util.d.ts +12 -0
  141. package/dist/esm/util.d.ts.map +1 -0
  142. package/dist/esm/util.js +26 -0
  143. package/dist/esm/util.js.map +1 -0
  144. package/dist/react-native/configurationClient.d.ts +64 -0
  145. package/dist/react-native/configurationClient.d.ts.map +1 -0
  146. package/dist/react-native/configurationClient.js +90 -0
  147. package/dist/react-native/configurationClient.js.map +1 -0
  148. package/dist/react-native/constants.d.ts +2 -0
  149. package/dist/react-native/constants.d.ts.map +1 -0
  150. package/dist/react-native/constants.js +4 -0
  151. package/dist/react-native/constants.js.map +1 -0
  152. package/dist/react-native/generated/generatedClient.d.ts +168 -0
  153. package/dist/react-native/generated/generatedClient.d.ts.map +1 -0
  154. package/dist/react-native/generated/generatedClient.js +861 -0
  155. package/dist/react-native/generated/generatedClient.js.map +1 -0
  156. package/dist/react-native/generated/generatedClientContext.d.ts +15 -0
  157. package/dist/react-native/generated/generatedClientContext.d.ts.map +1 -0
  158. package/dist/react-native/generated/generatedClientContext.js +41 -0
  159. package/dist/react-native/generated/generatedClientContext.js.map +1 -0
  160. package/dist/react-native/generated/index.d.ts +4 -0
  161. package/dist/react-native/generated/index.d.ts.map +1 -0
  162. package/dist/react-native/generated/index.js +11 -0
  163. package/dist/react-native/generated/index.js.map +1 -0
  164. package/dist/react-native/generated/lroImpl.d.ts +16 -0
  165. package/dist/react-native/generated/lroImpl.d.ts.map +1 -0
  166. package/dist/react-native/generated/lroImpl.js +25 -0
  167. package/dist/react-native/generated/lroImpl.js.map +1 -0
  168. package/dist/react-native/generated/models/index.d.ts +775 -0
  169. package/dist/react-native/generated/models/index.d.ts.map +1 -0
  170. package/dist/react-native/generated/models/index.js +54 -0
  171. package/dist/react-native/generated/models/index.js.map +1 -0
  172. package/dist/react-native/generated/models/mappers.d.ts +41 -0
  173. package/dist/react-native/generated/models/mappers.d.ts.map +1 -0
  174. package/dist/react-native/generated/models/mappers.js +949 -0
  175. package/dist/react-native/generated/models/mappers.js.map +1 -0
  176. package/dist/react-native/generated/models/parameters.d.ts +35 -0
  177. package/dist/react-native/generated/models/parameters.d.ts.map +1 -0
  178. package/dist/react-native/generated/models/parameters.js +348 -0
  179. package/dist/react-native/generated/models/parameters.js.map +1 -0
  180. package/dist/react-native/index.d.ts +2 -0
  181. package/dist/react-native/index.d.ts.map +1 -0
  182. package/dist/react-native/index.js +4 -0
  183. package/dist/react-native/index.js.map +1 -0
  184. package/dist/react-native/logger.d.ts +7 -0
  185. package/dist/react-native/logger.d.ts.map +1 -0
  186. package/dist/react-native/logger.js +10 -0
  187. package/dist/react-native/logger.js.map +1 -0
  188. package/dist/react-native/package.json +3 -0
  189. package/dist/react-native/util.d.ts +12 -0
  190. package/dist/react-native/util.d.ts.map +1 -0
  191. package/dist/react-native/util.js +26 -0
  192. package/dist/react-native/util.js.map +1 -0
  193. package/package.json +64 -39
  194. package/CHANGELOG.md +0 -47
  195. package/dist/index.js +0 -1525
  196. package/dist/index.js.map +0 -1
  197. package/dist-esm/src/configurationClient.js.map +0 -1
  198. package/dist-esm/src/constants.js +0 -4
  199. package/dist-esm/src/generated/generatedClient.js.map +0 -1
  200. package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
  201. package/dist-esm/src/generated/index.js.map +0 -1
  202. package/dist-esm/src/generated/models/index.js.map +0 -1
  203. package/dist-esm/src/generated/models/mappers.js.map +0 -1
  204. package/dist-esm/src/generated/models/parameters.js.map +0 -1
  205. package/types/latest/tsdoc-metadata.json +0 -11
  206. /package/{dist-esm/src → dist/browser}/logger.js +0 -0
  207. /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
  208. /package/{dist-esm/src → dist/browser}/util.js +0 -0
  209. /package/{dist-esm/src → dist/browser}/util.js.map +0 -0
@@ -5,11 +5,11 @@
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 { ConfigurationSetting as ConfigurationSettingMapper } from "../models/mappers";
8
+ import { ConfigurationSetting as ConfigurationSettingMapper, Snapshot as SnapshotMapper, SnapshotUpdateParameters as SnapshotUpdateParametersMapper } from "../models/mappers.js";
9
9
  export const accept = {
10
10
  parameterPath: "accept",
11
11
  mapper: {
12
- defaultValue: "application/vnd.microsoft.appconfig.keyset+json, application/json, application/problem+json",
12
+ defaultValue: "application/vnd.microsoft.appconfig.keyset+json, application/problem+json",
13
13
  isConstant: true,
14
14
  serializedName: "Accept",
15
15
  type: {
@@ -49,7 +49,7 @@ export const syncToken = {
49
49
  export const apiVersion = {
50
50
  parameterPath: "apiVersion",
51
51
  mapper: {
52
- defaultValue: "1.0",
52
+ defaultValue: "2023-10-01",
53
53
  isConstant: true,
54
54
  serializedName: "api-version",
55
55
  type: {
@@ -78,7 +78,7 @@ export const acceptDatetime = {
78
78
  export const accept1 = {
79
79
  parameterPath: "accept",
80
80
  mapper: {
81
- defaultValue: "application/vnd.microsoft.appconfig.kvset+json, application/json, application/problem+json",
81
+ defaultValue: "application/vnd.microsoft.appconfig.kvset+json, application/problem+json",
82
82
  isConstant: true,
83
83
  serializedName: "Accept",
84
84
  type: {
@@ -112,27 +112,44 @@ export const select = {
112
112
  name: "Sequence",
113
113
  element: {
114
114
  type: {
115
- name: "Enum",
116
- allowedValues: [
117
- "key",
118
- "label",
119
- "content_type",
120
- "value",
121
- "last_modified",
122
- "tags",
123
- "locked",
124
- "etag"
125
- ]
115
+ name: "String"
126
116
  }
127
117
  }
128
118
  }
129
119
  },
130
120
  collectionFormat: "CSV"
131
121
  };
122
+ export const snapshot = {
123
+ parameterPath: ["options", "snapshot"],
124
+ mapper: {
125
+ serializedName: "snapshot",
126
+ type: {
127
+ name: "String"
128
+ }
129
+ }
130
+ };
131
+ export const ifMatch = {
132
+ parameterPath: ["options", "ifMatch"],
133
+ mapper: {
134
+ serializedName: "If-Match",
135
+ type: {
136
+ name: "String"
137
+ }
138
+ }
139
+ };
140
+ export const ifNoneMatch = {
141
+ parameterPath: ["options", "ifNoneMatch"],
142
+ mapper: {
143
+ serializedName: "If-None-Match",
144
+ type: {
145
+ name: "String"
146
+ }
147
+ }
148
+ };
132
149
  export const accept2 = {
133
150
  parameterPath: "accept",
134
151
  mapper: {
135
- defaultValue: "application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json",
152
+ defaultValue: "application/vnd.microsoft.appconfig.kv+json, application/problem+json",
136
153
  isConstant: true,
137
154
  serializedName: "Accept",
138
155
  type: {
@@ -150,28 +167,87 @@ export const key1 = {
150
167
  }
151
168
  }
152
169
  };
153
- export const ifMatch = {
154
- parameterPath: ["options", "ifMatch"],
170
+ export const contentType = {
171
+ parameterPath: ["options", "contentType"],
155
172
  mapper: {
156
- serializedName: "If-Match",
173
+ defaultValue: "application/vnd.microsoft.appconfig.kv+json",
174
+ isConstant: true,
175
+ serializedName: "Content-Type",
157
176
  type: {
158
177
  name: "String"
159
178
  }
160
179
  }
161
180
  };
162
- export const ifNoneMatch = {
163
- parameterPath: ["options", "ifNoneMatch"],
181
+ export const entity = {
182
+ parameterPath: ["options", "entity"],
183
+ mapper: ConfigurationSettingMapper
184
+ };
185
+ export const accept3 = {
186
+ parameterPath: "accept",
164
187
  mapper: {
165
- serializedName: "If-None-Match",
188
+ defaultValue: "application/vnd.microsoft.appconfig.snapshotset+json, application/problem+json",
189
+ isConstant: true,
190
+ serializedName: "Accept",
166
191
  type: {
167
192
  name: "String"
168
193
  }
169
194
  }
170
195
  };
171
- export const contentType = {
196
+ export const select1 = {
197
+ parameterPath: ["options", "select"],
198
+ mapper: {
199
+ serializedName: "$Select",
200
+ type: {
201
+ name: "Sequence",
202
+ element: {
203
+ type: {
204
+ name: "String"
205
+ }
206
+ }
207
+ }
208
+ },
209
+ collectionFormat: "CSV"
210
+ };
211
+ export const status = {
212
+ parameterPath: ["options", "status"],
213
+ mapper: {
214
+ serializedName: "status",
215
+ type: {
216
+ name: "Sequence",
217
+ element: {
218
+ type: {
219
+ name: "String"
220
+ }
221
+ }
222
+ }
223
+ },
224
+ collectionFormat: "CSV"
225
+ };
226
+ export const accept4 = {
227
+ parameterPath: "accept",
228
+ mapper: {
229
+ defaultValue: "application/vnd.microsoft.appconfig.snapshot+json, application/problem+json",
230
+ isConstant: true,
231
+ serializedName: "Accept",
232
+ type: {
233
+ name: "String"
234
+ }
235
+ }
236
+ };
237
+ export const name1 = {
238
+ parameterPath: "name",
239
+ mapper: {
240
+ serializedName: "name",
241
+ required: true,
242
+ type: {
243
+ name: "String"
244
+ }
245
+ }
246
+ };
247
+ export const contentType1 = {
172
248
  parameterPath: ["options", "contentType"],
173
249
  mapper: {
174
- defaultValue: "application/vnd.microsoft.appconfig.kv+json",
250
+ defaultValue: "application/vnd.microsoft.appconfig.snapshot+json",
175
251
  isConstant: true,
176
252
  serializedName: "Content-Type",
177
253
  type: {
@@ -179,14 +255,42 @@ export const contentType = {
179
255
  }
180
256
  }
181
257
  };
182
- export const entity = {
183
- parameterPath: ["options", "entity"],
184
- mapper: ConfigurationSettingMapper
258
+ export const entity1 = {
259
+ parameterPath: "entity",
260
+ mapper: SnapshotMapper
185
261
  };
186
- export const accept3 = {
262
+ export const name2 = {
263
+ parameterPath: "name",
264
+ mapper: {
265
+ constraints: {
266
+ MaxLength: 256
267
+ },
268
+ serializedName: "name",
269
+ required: true,
270
+ type: {
271
+ name: "String"
272
+ }
273
+ }
274
+ };
275
+ export const contentType2 = {
276
+ parameterPath: ["options", "contentType"],
277
+ mapper: {
278
+ defaultValue: "application/json",
279
+ isConstant: true,
280
+ serializedName: "Content-Type",
281
+ type: {
282
+ name: "String"
283
+ }
284
+ }
285
+ };
286
+ export const entity2 = {
287
+ parameterPath: "entity",
288
+ mapper: SnapshotUpdateParametersMapper
289
+ };
290
+ export const accept5 = {
187
291
  parameterPath: "accept",
188
292
  mapper: {
189
- defaultValue: "application/vnd.microsoft.appconfig.labelset+json, application/json, application/problem+json",
293
+ defaultValue: "application/vnd.microsoft.appconfig.labelset+json, application/problem+json",
190
294
  isConstant: true,
191
295
  serializedName: "Accept",
192
296
  type: {
@@ -194,15 +298,13 @@ export const accept3 = {
194
298
  }
195
299
  }
196
300
  };
197
- export const select1 = {
301
+ export const select2 = {
198
302
  parameterPath: ["options", "select"],
199
303
  mapper: {
200
304
  serializedName: "$Select",
201
305
  type: {
202
306
  name: "Sequence",
203
307
  element: {
204
- defaultValue: "name",
205
- isConstant: true,
206
308
  type: {
207
309
  name: "String"
208
310
  }
@@ -211,6 +313,27 @@ export const select1 = {
211
313
  },
212
314
  collectionFormat: "CSV"
213
315
  };
316
+ export const accept6 = {
317
+ parameterPath: "accept",
318
+ mapper: {
319
+ defaultValue: "application/json",
320
+ isConstant: true,
321
+ serializedName: "Accept",
322
+ type: {
323
+ name: "String"
324
+ }
325
+ }
326
+ };
327
+ export const snapshot1 = {
328
+ parameterPath: "snapshot",
329
+ mapper: {
330
+ serializedName: "snapshot",
331
+ required: true,
332
+ type: {
333
+ name: "String"
334
+ }
335
+ }
336
+ };
214
337
  export const nextLink = {
215
338
  parameterPath: "nextLink",
216
339
  mapper: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,oBAAoB,IAAI,0BAA0B,EAClD,QAAQ,IAAI,cAAc,EAC1B,wBAAwB,IAAI,8BAA8B,EAC3D,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EACV,2EAA2E;QAC7E,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAA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AU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,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 {\n ConfigurationSetting as ConfigurationSettingMapper,\n Snapshot as SnapshotMapper,\n SnapshotUpdateParameters as SnapshotUpdateParametersMapper\n} from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/vnd.microsoft.appconfig.keyset+json, application/problem+json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const name: OperationQueryParameter = {\n parameterPath: [\"options\", \"name\"],\n mapper: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const syncToken: OperationParameter = {\n parameterPath: \"syncToken\",\n mapper: {\n serializedName: \"Sync-Token\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2023-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const after: OperationQueryParameter = {\n parameterPath: [\"options\", \"after\"],\n mapper: {\n serializedName: \"After\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const acceptDatetime: OperationParameter = {\n parameterPath: [\"options\", \"acceptDatetime\"],\n mapper: {\n serializedName: \"Accept-Datetime\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept1: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/vnd.microsoft.appconfig.kvset+json, application/problem+json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const key: OperationQueryParameter = {\n parameterPath: [\"options\", \"key\"],\n mapper: {\n serializedName: \"key\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const label: OperationQueryParameter = {\n parameterPath: [\"options\", \"label\"],\n mapper: {\n serializedName: \"label\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const select: OperationQueryParameter = {\n parameterPath: [\"options\", \"select\"],\n mapper: {\n serializedName: \"$Select\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"CSV\"\n};\n\nexport const snapshot: OperationQueryParameter = {\n parameterPath: [\"options\", \"snapshot\"],\n mapper: {\n serializedName: \"snapshot\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept2: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/vnd.microsoft.appconfig.kv+json, application/problem+json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const key1: OperationURLParameter = {\n parameterPath: \"key\",\n mapper: {\n serializedName: \"key\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/vnd.microsoft.appconfig.kv+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const entity: OperationParameter = {\n parameterPath: [\"options\", \"entity\"],\n mapper: ConfigurationSettingMapper\n};\n\nexport const accept3: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/vnd.microsoft.appconfig.snapshotset+json, application/problem+json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const select1: OperationQueryParameter = {\n parameterPath: [\"options\", \"select\"],\n mapper: {\n serializedName: \"$Select\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"CSV\"\n};\n\nexport const status: OperationQueryParameter = {\n parameterPath: [\"options\", \"status\"],\n mapper: {\n serializedName: \"status\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"CSV\"\n};\n\nexport const accept4: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/vnd.microsoft.appconfig.snapshot+json, application/problem+json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const name1: OperationURLParameter = {\n parameterPath: \"name\",\n mapper: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/vnd.microsoft.appconfig.snapshot+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const entity1: OperationParameter = {\n parameterPath: \"entity\",\n mapper: SnapshotMapper\n};\n\nexport const name2: OperationURLParameter = {\n parameterPath: \"name\",\n mapper: {\n constraints: {\n MaxLength: 256\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType2: 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 entity2: OperationParameter = {\n parameterPath: \"entity\",\n mapper: SnapshotUpdateParametersMapper\n};\n\nexport const accept5: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/vnd.microsoft.appconfig.labelset+json, application/problem+json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const select2: OperationQueryParameter = {\n parameterPath: [\"options\", \"select\"],\n mapper: {\n serializedName: \"$Select\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"CSV\"\n};\n\nexport const accept6: 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 snapshot1: OperationQueryParameter = {\n parameterPath: \"snapshot\",\n mapper: {\n serializedName: \"snapshot\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./configurationClient.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,0BAA0B,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
- export * from "./configurationClient";
3
+ export * from "./configurationClient.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,uBAAuB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./configurationClient\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,0BAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./configurationClient.js\";\n"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The \@azure/logger configuration for this package.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const logger: import("@azure/logger").AzureLogger;
7
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,MAAM,qCAAiC,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Handles etag quoting in AppConfig response objects.
3
+ *
4
+ * This is important because the etag inside the body of the configuration
5
+ * object isn't quoted, even though the header is.
6
+ *
7
+ * @param etag - the tag to quote, if it isn't quoted already
8
+ *
9
+ * @internal
10
+ */
11
+ export declare function quoteETag(etag: string | undefined): string | undefined;
12
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAetE"}
@@ -0,0 +1,64 @@
1
+ import { ConfigurationSetting } from "./generated/index.js";
2
+ import { CommonClientOptions, OperationOptions } from "@azure/core-client";
3
+ import { TokenCredential } from "@azure/core-auth";
4
+ export { ConfigurationSetting };
5
+ /**
6
+ * Options for the `getConfigurationSetting` method of `ConfigurationClient`.
7
+ */
8
+ export interface GetConfigurationSettingOptions extends OperationOptions {
9
+ /**
10
+ * If set to `true`, the method will use entity tags to instruct the service
11
+ * to send an updated value only if the value has changed.
12
+ *
13
+ * NOTE: This option is only supported if passing a full
14
+ * `ConfigurationSetting` object with an `etag` as the first parameter to
15
+ * `getConfigurationSetting`.
16
+ */
17
+ onlyIfChanged?: boolean;
18
+ }
19
+ /**
20
+ * Client options used to configure App Configuration API requests.
21
+ */
22
+ export interface ConfigurationClientOptions extends CommonClientOptions {
23
+ }
24
+ /**
25
+ * The client class used to interact with the App Configuration service.
26
+ */
27
+ export declare class ConfigurationClient {
28
+ private client;
29
+ private tracingClient;
30
+ /**
31
+ * Creates an instance of a ConfigurationClient.
32
+ *
33
+ * Example usage:
34
+ * ```ts
35
+ * import { ConfigurationClient} from "@azure/ai-text-analytics";
36
+ * import { DefaultAzureCredential} from "@azure/identity";
37
+ *
38
+ * const client = new ConfigurationClient(
39
+ * "<app configuration endpoint>",
40
+ * new DefaultAzureCredential()
41
+ * );
42
+ * ```
43
+ * @param endpointUrl - the URL to the App Configuration endpoint
44
+ * @param credential - used to authenticate requests to the service
45
+ * @param options - optional configuration used to send requests to the service
46
+ */
47
+ constructor(endpointUrl: string, credential: TokenCredential, options?: ConfigurationClientOptions);
48
+ /**
49
+ * Retrieve the contents of an App Configuration setting by name (key).
50
+ *
51
+ * @param key - the unique name of the setting to get
52
+ * @param options - optional configuration for the operation
53
+ */
54
+ getConfigurationSetting(key: string, options?: GetConfigurationSettingOptions): Promise<ConfigurationSetting>;
55
+ /**
56
+ * Retrieve an updated value of an App Configuration setting, allowing for
57
+ * the use of entity tags to request the new value only if it has changed.
58
+ *
59
+ * @param setting - the setting to retrieve from the service
60
+ * @param options - optional configuration for the operation
61
+ */
62
+ getConfigurationSetting(setting: ConfigurationSetting, options?: GetConfigurationSettingOptions): Promise<ConfigurationSetting>;
63
+ }
64
+ //# sourceMappingURL=configurationClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurationClient.d.ts","sourceRoot":"","sources":["../../src/configurationClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOnD,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;IACtE;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;CAEtE;AAED;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,aAAa,CAAgB;IAErC;;;;;;;;;;;;;;;;OAgBG;gBAED,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,0BAA+B;IA4C1C;;;;;OAKG;IACU,uBAAuB,CAClC,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,oBAAoB,CAAC;IAEhC;;;;;;OAMG;IACU,uBAAuB,CAClC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,oBAAoB,CAAC;CAkCjC"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ConfigurationClient = void 0;
6
+ const index_js_1 = require("./generated/index.js");
7
+ const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
8
+ const core_tracing_1 = require("@azure/core-tracing");
9
+ const constants_js_1 = require("./constants.js");
10
+ const logger_js_1 = require("./logger.js");
11
+ const util_js_1 = require("./util.js");
12
+ /**
13
+ * The client class used to interact with the App Configuration service.
14
+ */
15
+ class ConfigurationClient {
16
+ /**
17
+ * Creates an instance of a ConfigurationClient.
18
+ *
19
+ * Example usage:
20
+ * ```ts
21
+ * import { ConfigurationClient} from "@azure/ai-text-analytics";
22
+ * import { DefaultAzureCredential} from "@azure/identity";
23
+ *
24
+ * const client = new ConfigurationClient(
25
+ * "<app configuration endpoint>",
26
+ * new DefaultAzureCredential()
27
+ * );
28
+ * ```
29
+ * @param endpointUrl - the URL to the App Configuration endpoint
30
+ * @param credential - used to authenticate requests to the service
31
+ * @param options - optional configuration used to send requests to the service
32
+ */
33
+ constructor(endpointUrl, credential, options = {}) {
34
+ // The AAD scope for an API is usually the baseUri + "/.default", but it
35
+ // may be different for your service.
36
+ const authPolicy = (0, core_rest_pipeline_1.bearerTokenAuthenticationPolicy)({
37
+ credential,
38
+ scopes: `${endpointUrl}/.default`,
39
+ });
40
+ const internalClientPipelineOptions = Object.assign(Object.assign(Object.assign({}, options), { deserializationOptions: {
41
+ expectedContentTypes: {
42
+ json: [
43
+ "application/vnd.microsoft.appconfig.kvset+json",
44
+ "application/vnd.microsoft.appconfig.kv+json",
45
+ "application/vnd.microsoft.appconfig.kvs+json",
46
+ "application/vnd.microsoft.appconfig.keyset+json",
47
+ "application/vnd.microsoft.appconfig.revs+json",
48
+ ],
49
+ },
50
+ } }), {
51
+ loggingOptions: {
52
+ logger: logger_js_1.logger.info,
53
+ // This array contains header names we want to log that are not already
54
+ // included as safe. Unknown/unsafe headers are logged as "<REDACTED>".
55
+ additionalAllowedHeaderNames: ["x-ms-correlation-request-id"],
56
+ },
57
+ });
58
+ this.client = new index_js_1.GeneratedClient(endpointUrl, internalClientPipelineOptions);
59
+ this.client.pipeline.addPolicy(authPolicy);
60
+ this.tracingClient = (0, core_tracing_1.createTracingClient)({
61
+ // The name of the resource provider requests are made against, as described in
62
+ // https://github.com/Azure/azure-sdk/blob/main/docs/tracing/distributed-tracing-conventions.yml#L11-L15
63
+ namespace: "Microsoft.Learn",
64
+ // The package name and version
65
+ packageName: "@azure/template",
66
+ packageVersion: constants_js_1.SDK_VERSION,
67
+ });
68
+ }
69
+ async getConfigurationSetting(keyOrSetting, options = {}) {
70
+ let key;
71
+ let ifNoneMatch;
72
+ return this.tracingClient.withSpan(
73
+ // Span names should take the form "<className>.<methodName>".
74
+ "ConfigurationClient.getConfigurationSetting", options, (updatedOptions) => {
75
+ if (typeof keyOrSetting === "string") {
76
+ key = keyOrSetting;
77
+ if (options.onlyIfChanged) {
78
+ throw new RangeError("You must pass a ConfigurationSetting instead of a key to perform a conditional fetch.");
79
+ }
80
+ }
81
+ else {
82
+ key = keyOrSetting.key;
83
+ const etag = keyOrSetting.etag;
84
+ if (options.onlyIfChanged) {
85
+ ifNoneMatch = (0, util_js_1.quoteETag)(etag);
86
+ }
87
+ }
88
+ // You must pass updatedOptions to any calls you make within the callback.
89
+ return this.client.getKeyValue(key, Object.assign(Object.assign({}, updatedOptions), { ifNoneMatch }));
90
+ });
91
+ }
92
+ }
93
+ exports.ConfigurationClient = ConfigurationClient;
94
+ //# sourceMappingURL=configurationClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurationClient.js","sourceRoot":"","sources":["../../src/configurationClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mDAA6E;AAM7E,kEAA4E;AAE5E,sDAAyE;AACzE,iDAA6C;AAC7C,2CAAqC;AACrC,uCAAsC;AA2BtC;;GAEG;AACH,MAAa,mBAAmB;IAI9B;;;;;;;;;;;;;;;;OAgBG;IACH,YACE,W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EAAE,CAAC;oBAC1B,MAAM,IAAI,UAAU,CAClB,uFAAuF,CACxF,CAAC;gBACJ,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,GAAG,GAAG,YAAY,CAAC,GAAI,CAAC;gBACxB,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;gBAC/B,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;oBAC1B,WAAW,GAAG,IAAA,mBAAS,EAAC,IAAI,CAAC,CAAC;gBAChC,CAAC;YACH,CAAC;YAED,0EAA0E;YAC1E,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,kCAAO,cAAc,KAAE,WAAW,IAAG,CAAC;QAC1E,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA3HD,kDA2HC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { GeneratedClient, ConfigurationSetting } from \"./generated/index.js\";\nimport {\n CommonClientOptions,\n OperationOptions,\n InternalClientPipelineOptions,\n} from \"@azure/core-client\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { TracingClient, createTracingClient } from \"@azure/core-tracing\";\nimport { SDK_VERSION } from \"./constants.js\";\nimport { logger } from \"./logger.js\";\nimport { quoteETag } from \"./util.js\";\n\n// re-export generated types that are used as public interfaces.\nexport { ConfigurationSetting };\n\n/**\n * Options for the `getConfigurationSetting` method of `ConfigurationClient`.\n */\nexport interface GetConfigurationSettingOptions extends OperationOptions {\n /**\n * If set to `true`, the method will use entity tags to instruct the service\n * to send an updated value only if the value has changed.\n *\n * NOTE: This option is only supported if passing a full\n * `ConfigurationSetting` object with an `etag` as the first parameter to\n * `getConfigurationSetting`.\n */\n onlyIfChanged?: boolean;\n}\n\n/**\n * Client options used to configure App Configuration API requests.\n */\nexport interface ConfigurationClientOptions extends CommonClientOptions {\n // Any custom options configured at the client level go here.\n}\n\n/**\n * The client class used to interact with the App Configuration service.\n */\nexport class ConfigurationClient {\n private client: GeneratedClient;\n private tracingClient: TracingClient;\n\n /**\n * Creates an instance of a ConfigurationClient.\n *\n * Example usage:\n * ```ts\n * import { ConfigurationClient} from \"@azure/ai-text-analytics\";\n * import { DefaultAzureCredential} from \"@azure/identity\";\n *\n * const client = new ConfigurationClient(\n * \"<app configuration endpoint>\",\n * new DefaultAzureCredential()\n * );\n * ```\n * @param endpointUrl - the URL to the App Configuration endpoint\n * @param credential - used to authenticate requests to the service\n * @param options - optional configuration used to send requests to the service\n */\n constructor(\n endpointUrl: string,\n credential: TokenCredential,\n options: ConfigurationClientOptions = {},\n ) {\n // The AAD scope for an API is usually the baseUri + \"/.default\", but it\n // may be different for your service.\n const authPolicy = bearerTokenAuthenticationPolicy({\n credential,\n scopes: `${endpointUrl}/.default`,\n });\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n deserializationOptions: {\n expectedContentTypes: {\n json: [\n \"application/vnd.microsoft.appconfig.kvset+json\",\n \"application/vnd.microsoft.appconfig.kv+json\",\n \"application/vnd.microsoft.appconfig.kvs+json\",\n \"application/vnd.microsoft.appconfig.keyset+json\",\n \"application/vnd.microsoft.appconfig.revs+json\",\n ],\n },\n },\n ...{\n loggingOptions: {\n logger: logger.info,\n // This array contains header names we want to log that are not already\n // included as safe. Unknown/unsafe headers are logged as \"<REDACTED>\".\n additionalAllowedHeaderNames: [\"x-ms-correlation-request-id\"],\n },\n },\n };\n\n this.client = new GeneratedClient(endpointUrl, internalClientPipelineOptions);\n this.client.pipeline.addPolicy(authPolicy);\n this.tracingClient = createTracingClient({\n // The name of the resource provider requests are made against, as described in\n // https://github.com/Azure/azure-sdk/blob/main/docs/tracing/distributed-tracing-conventions.yml#L11-L15\n namespace: \"Microsoft.Learn\",\n // The package name and version\n packageName: \"@azure/template\",\n packageVersion: SDK_VERSION,\n });\n }\n\n /**\n * Retrieve the contents of an App Configuration setting by name (key).\n *\n * @param key - the unique name of the setting to get\n * @param options - optional configuration for the operation\n */\n public async getConfigurationSetting(\n key: string,\n options?: GetConfigurationSettingOptions,\n ): Promise<ConfigurationSetting>;\n\n /**\n * Retrieve an updated value of an App Configuration setting, allowing for\n * the use of entity tags to request the new value only if it has changed.\n *\n * @param setting - the setting to retrieve from the service\n * @param options - optional configuration for the operation\n */\n public async getConfigurationSetting(\n setting: ConfigurationSetting,\n options?: GetConfigurationSettingOptions,\n ): Promise<ConfigurationSetting>;\n\n public async getConfigurationSetting(\n keyOrSetting: string | ConfigurationSetting,\n options: GetConfigurationSettingOptions = {},\n ): Promise<ConfigurationSetting> {\n let key: string;\n let ifNoneMatch: string | undefined;\n\n return this.tracingClient.withSpan(\n // Span names should take the form \"<className>.<methodName>\".\n \"ConfigurationClient.getConfigurationSetting\",\n options,\n (updatedOptions) => {\n if (typeof keyOrSetting === \"string\") {\n key = keyOrSetting;\n if (options.onlyIfChanged) {\n throw new RangeError(\n \"You must pass a ConfigurationSetting instead of a key to perform a conditional fetch.\",\n );\n }\n } else {\n key = keyOrSetting.key!;\n const etag = keyOrSetting.etag;\n if (options.onlyIfChanged) {\n ifNoneMatch = quoteETag(etag);\n }\n }\n\n // You must pass updatedOptions to any calls you make within the callback.\n return this.client.getKeyValue(key, { ...updatedOptions, ifNoneMatch });\n },\n );\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const SDK_VERSION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAA8B,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SDK_VERSION = void 0;
6
+ exports.SDK_VERSION = "1.0.12-beta.3703824";
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAErB,QAAA,WAAW,GAAW,qBAAqB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport const SDK_VERSION: string = \"1.0.12-beta.3703824\";\n"]}