@azure/template 1.0.12 → 1.0.13-beta.1
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.
- package/README.md +20 -7
- package/dist/browser/configurationClient.d.ts +64 -0
- package/dist/browser/configurationClient.d.ts.map +1 -0
- package/dist/browser/configurationClient.js +90 -0
- package/dist/browser/configurationClient.js.map +1 -0
- package/dist/browser/constants.d.ts +2 -0
- package/dist/browser/constants.d.ts.map +1 -0
- package/dist/browser/constants.js +4 -0
- package/{dist-esm/src → dist/browser}/constants.js.map +1 -1
- package/dist/browser/generated/generatedClient.d.ts +168 -0
- package/dist/browser/generated/generatedClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/generatedClient.js +333 -107
- package/dist/browser/generated/generatedClient.js.map +1 -0
- package/dist/browser/generated/generatedClientContext.d.ts +15 -0
- package/dist/browser/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/browser/generated/generatedClientContext.js +41 -0
- package/dist/browser/generated/generatedClientContext.js.map +1 -0
- package/dist/browser/generated/index.d.ts +4 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/index.js +3 -3
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/lroImpl.d.ts +16 -0
- package/dist/browser/generated/lroImpl.d.ts.map +1 -0
- package/dist/browser/generated/lroImpl.js +25 -0
- package/dist/browser/generated/lroImpl.js.map +1 -0
- package/dist/browser/generated/models/index.d.ts +775 -0
- package/dist/browser/generated/models/index.d.ts.map +1 -0
- package/dist/browser/generated/models/index.js +54 -0
- package/dist/browser/generated/models/index.js.map +1 -0
- package/dist/browser/generated/models/mappers.d.ts +41 -0
- package/dist/browser/generated/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/mappers.js +446 -9
- package/dist/browser/generated/models/mappers.js.map +1 -0
- package/dist/browser/generated/models/parameters.d.ts +35 -0
- package/dist/browser/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/parameters.js +157 -35
- package/dist/browser/generated/models/parameters.js.map +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +7 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/logger.js +1 -1
- package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
- package/dist/browser/package.json +3 -0
- package/dist/browser/util.d.ts +12 -0
- package/dist/browser/util.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/util.js +1 -1
- package/dist/browser/util.js.map +1 -0
- package/dist/commonjs/configurationClient.d.ts +64 -0
- package/dist/commonjs/configurationClient.d.ts.map +1 -0
- package/dist/commonjs/configurationClient.js +94 -0
- package/dist/commonjs/configurationClient.js.map +1 -0
- package/dist/commonjs/constants.d.ts +2 -0
- package/dist/commonjs/constants.d.ts.map +1 -0
- package/dist/commonjs/constants.js +7 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/generated/generatedClient.d.ts +168 -0
- package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClient.js +866 -0
- package/dist/commonjs/generated/generatedClient.js.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts +15 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.js +46 -0
- package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +4 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +17 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/lroImpl.d.ts +16 -0
- package/dist/commonjs/generated/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/generated/lroImpl.js +29 -0
- package/dist/commonjs/generated/lroImpl.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +775 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +57 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +41 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +952 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +35 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +351 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +7 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +7 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +13 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/util.d.ts +12 -0
- package/dist/commonjs/util.d.ts.map +1 -0
- package/dist/commonjs/util.js +29 -0
- package/dist/commonjs/util.js.map +1 -0
- package/dist/esm/configurationClient.d.ts +64 -0
- package/dist/esm/configurationClient.d.ts.map +1 -0
- package/dist/esm/configurationClient.js +90 -0
- package/dist/esm/configurationClient.js.map +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +4 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/generated/generatedClient.d.ts +168 -0
- package/dist/esm/generated/generatedClient.d.ts.map +1 -0
- package/dist/esm/generated/generatedClient.js +861 -0
- package/dist/esm/generated/generatedClient.js.map +1 -0
- package/dist/esm/generated/generatedClientContext.d.ts +15 -0
- package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/esm/generated/generatedClientContext.js +41 -0
- package/dist/esm/generated/generatedClientContext.js.map +1 -0
- package/dist/esm/generated/index.d.ts +4 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/models → dist/esm/generated}/index.js +3 -1
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/lroImpl.d.ts +16 -0
- package/dist/esm/generated/lroImpl.d.ts.map +1 -0
- package/dist/esm/generated/lroImpl.js +25 -0
- package/dist/esm/generated/lroImpl.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +775 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/index.js +54 -0
- package/dist/esm/generated/models/index.js.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +41 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.js +949 -0
- package/dist/esm/generated/models/mappers.js.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +35 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.js +348 -0
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +7 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +10 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/util.d.ts +12 -0
- package/dist/esm/util.d.ts.map +1 -0
- package/dist/esm/util.js +26 -0
- package/dist/esm/util.js.map +1 -0
- package/dist/react-native/configurationClient.d.ts +64 -0
- package/dist/react-native/configurationClient.d.ts.map +1 -0
- package/dist/react-native/configurationClient.js +90 -0
- package/dist/react-native/configurationClient.js.map +1 -0
- package/dist/react-native/constants.d.ts +2 -0
- package/dist/react-native/constants.d.ts.map +1 -0
- package/dist/react-native/constants.js +4 -0
- package/dist/react-native/constants.js.map +1 -0
- package/dist/react-native/generated/generatedClient.d.ts +168 -0
- package/dist/react-native/generated/generatedClient.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClient.js +861 -0
- package/dist/react-native/generated/generatedClient.js.map +1 -0
- package/dist/react-native/generated/generatedClientContext.d.ts +15 -0
- package/dist/react-native/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClientContext.js +41 -0
- package/dist/react-native/generated/generatedClientContext.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +4 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/lroImpl.d.ts +16 -0
- package/dist/react-native/generated/lroImpl.d.ts.map +1 -0
- package/dist/react-native/generated/lroImpl.js +25 -0
- package/dist/react-native/generated/lroImpl.js.map +1 -0
- package/dist/react-native/generated/models/index.d.ts +775 -0
- package/dist/react-native/generated/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/models/index.js +54 -0
- package/dist/react-native/generated/models/index.js.map +1 -0
- package/dist/react-native/generated/models/mappers.d.ts +41 -0
- package/dist/react-native/generated/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/models/mappers.js +949 -0
- package/dist/react-native/generated/models/mappers.js.map +1 -0
- package/dist/react-native/generated/models/parameters.d.ts +35 -0
- package/dist/react-native/generated/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/models/parameters.js +348 -0
- package/dist/react-native/generated/models/parameters.js.map +1 -0
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +4 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +7 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +10 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/util.d.ts +12 -0
- package/dist/react-native/util.d.ts.map +1 -0
- package/dist/react-native/util.js +26 -0
- package/dist/react-native/util.js.map +1 -0
- package/{types → dist}/template.d.ts +18 -17
- package/package.json +98 -91
- package/CHANGELOG.md +0 -51
- package/dist/index.js +0 -1589
- package/dist/index.js.map +0 -1
- package/dist-esm/src/configurationClient.js +0 -101
- package/dist-esm/src/configurationClient.js.map +0 -1
- package/dist-esm/src/constants.js +0 -4
- package/dist-esm/src/generated/generatedClient.js.map +0 -1
- package/dist-esm/src/generated/generatedClientContext.js +0 -39
- package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/models/index.js.map +0 -1
- package/dist-esm/src/generated/models/mappers.js.map +0 -1
- package/dist-esm/src/generated/models/parameters.js.map +0 -1
- package/dist-esm/src/index.js +0 -4
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/tracing.js +0 -17
- package/dist-esm/src/tracing.js.map +0 -1
- package/dist-esm/src/util.js.map +0 -1
|
@@ -5,12 +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 {
|
|
9
|
-
import { ConfigurationSetting as ConfigurationSettingMapper } from "../models/mappers";
|
|
8
|
+
import { ConfigurationSetting as ConfigurationSettingMapper, Snapshot as SnapshotMapper, SnapshotUpdateParameters as SnapshotUpdateParametersMapper } from "../models/mappers.js";
|
|
10
9
|
export const accept = {
|
|
11
10
|
parameterPath: "accept",
|
|
12
11
|
mapper: {
|
|
13
|
-
defaultValue: "application/vnd.microsoft.appconfig.keyset+json, application/
|
|
12
|
+
defaultValue: "application/vnd.microsoft.appconfig.keyset+json, application/problem+json",
|
|
14
13
|
isConstant: true,
|
|
15
14
|
serializedName: "Accept",
|
|
16
15
|
type: {
|
|
@@ -50,7 +49,7 @@ export const syncToken = {
|
|
|
50
49
|
export const apiVersion = {
|
|
51
50
|
parameterPath: "apiVersion",
|
|
52
51
|
mapper: {
|
|
53
|
-
defaultValue: "
|
|
52
|
+
defaultValue: "2023-10-01",
|
|
54
53
|
isConstant: true,
|
|
55
54
|
serializedName: "api-version",
|
|
56
55
|
type: {
|
|
@@ -79,7 +78,7 @@ export const acceptDatetime = {
|
|
|
79
78
|
export const accept1 = {
|
|
80
79
|
parameterPath: "accept",
|
|
81
80
|
mapper: {
|
|
82
|
-
defaultValue: "application/vnd.microsoft.appconfig.kvset+json, application/
|
|
81
|
+
defaultValue: "application/vnd.microsoft.appconfig.kvset+json, application/problem+json",
|
|
83
82
|
isConstant: true,
|
|
84
83
|
serializedName: "Accept",
|
|
85
84
|
type: {
|
|
@@ -113,27 +112,44 @@ export const select = {
|
|
|
113
112
|
name: "Sequence",
|
|
114
113
|
element: {
|
|
115
114
|
type: {
|
|
116
|
-
name: "
|
|
117
|
-
allowedValues: [
|
|
118
|
-
"key",
|
|
119
|
-
"label",
|
|
120
|
-
"content_type",
|
|
121
|
-
"value",
|
|
122
|
-
"last_modified",
|
|
123
|
-
"tags",
|
|
124
|
-
"locked",
|
|
125
|
-
"etag"
|
|
126
|
-
]
|
|
115
|
+
name: "String"
|
|
127
116
|
}
|
|
128
117
|
}
|
|
129
118
|
}
|
|
130
119
|
},
|
|
131
|
-
collectionFormat:
|
|
120
|
+
collectionFormat: "CSV"
|
|
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
|
+
}
|
|
132
148
|
};
|
|
133
149
|
export const accept2 = {
|
|
134
150
|
parameterPath: "accept",
|
|
135
151
|
mapper: {
|
|
136
|
-
defaultValue: "application/vnd.microsoft.appconfig.kv+json, application/
|
|
152
|
+
defaultValue: "application/vnd.microsoft.appconfig.kv+json, application/problem+json",
|
|
137
153
|
isConstant: true,
|
|
138
154
|
serializedName: "Accept",
|
|
139
155
|
type: {
|
|
@@ -151,28 +167,87 @@ export const key1 = {
|
|
|
151
167
|
}
|
|
152
168
|
}
|
|
153
169
|
};
|
|
154
|
-
export const
|
|
155
|
-
parameterPath: ["options", "
|
|
170
|
+
export const contentType = {
|
|
171
|
+
parameterPath: ["options", "contentType"],
|
|
156
172
|
mapper: {
|
|
157
|
-
|
|
173
|
+
defaultValue: "application/vnd.microsoft.appconfig.kv+json",
|
|
174
|
+
isConstant: true,
|
|
175
|
+
serializedName: "Content-Type",
|
|
158
176
|
type: {
|
|
159
177
|
name: "String"
|
|
160
178
|
}
|
|
161
179
|
}
|
|
162
180
|
};
|
|
163
|
-
export const
|
|
164
|
-
parameterPath: ["options", "
|
|
181
|
+
export const entity = {
|
|
182
|
+
parameterPath: ["options", "entity"],
|
|
183
|
+
mapper: ConfigurationSettingMapper
|
|
184
|
+
};
|
|
185
|
+
export const accept3 = {
|
|
186
|
+
parameterPath: "accept",
|
|
165
187
|
mapper: {
|
|
166
|
-
|
|
188
|
+
defaultValue: "application/vnd.microsoft.appconfig.snapshotset+json, application/problem+json",
|
|
189
|
+
isConstant: true,
|
|
190
|
+
serializedName: "Accept",
|
|
167
191
|
type: {
|
|
168
192
|
name: "String"
|
|
169
193
|
}
|
|
170
194
|
}
|
|
171
195
|
};
|
|
172
|
-
export const
|
|
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 = {
|
|
173
248
|
parameterPath: ["options", "contentType"],
|
|
174
249
|
mapper: {
|
|
175
|
-
defaultValue: "application/vnd.microsoft.appconfig.
|
|
250
|
+
defaultValue: "application/vnd.microsoft.appconfig.snapshot+json",
|
|
176
251
|
isConstant: true,
|
|
177
252
|
serializedName: "Content-Type",
|
|
178
253
|
type: {
|
|
@@ -180,14 +255,42 @@ export const contentType = {
|
|
|
180
255
|
}
|
|
181
256
|
}
|
|
182
257
|
};
|
|
183
|
-
export const
|
|
184
|
-
parameterPath:
|
|
185
|
-
mapper:
|
|
258
|
+
export const entity1 = {
|
|
259
|
+
parameterPath: "entity",
|
|
260
|
+
mapper: SnapshotMapper
|
|
186
261
|
};
|
|
187
|
-
export const
|
|
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 = {
|
|
188
291
|
parameterPath: "accept",
|
|
189
292
|
mapper: {
|
|
190
|
-
defaultValue: "application/vnd.microsoft.appconfig.labelset+json, application/
|
|
293
|
+
defaultValue: "application/vnd.microsoft.appconfig.labelset+json, application/problem+json",
|
|
191
294
|
isConstant: true,
|
|
192
295
|
serializedName: "Accept",
|
|
193
296
|
type: {
|
|
@@ -195,22 +298,41 @@ export const accept3 = {
|
|
|
195
298
|
}
|
|
196
299
|
}
|
|
197
300
|
};
|
|
198
|
-
export const
|
|
301
|
+
export const select2 = {
|
|
199
302
|
parameterPath: ["options", "select"],
|
|
200
303
|
mapper: {
|
|
201
304
|
serializedName: "$Select",
|
|
202
305
|
type: {
|
|
203
306
|
name: "Sequence",
|
|
204
307
|
element: {
|
|
205
|
-
defaultValue: "name",
|
|
206
|
-
isConstant: true,
|
|
207
308
|
type: {
|
|
208
309
|
name: "String"
|
|
209
310
|
}
|
|
210
311
|
}
|
|
211
312
|
}
|
|
212
313
|
},
|
|
213
|
-
collectionFormat:
|
|
314
|
+
collectionFormat: "CSV"
|
|
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
|
+
}
|
|
214
336
|
};
|
|
215
337
|
export const nextLink = {
|
|
216
338
|
parameterPath: "nextLink",
|
|
@@ -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;SAC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,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA4B;IAChD,aAAa,EAAE,UAAU;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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,MAAM,qCAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\n\n/**\n * The \\@azure/logger configuration for this package.\n *\n * @internal\n */\nexport const logger = createClientLogger(\"template\");\n"]}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,IAAwB;IAChD,kDAAkD;IAClD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,IAAI,GAAG,CAAC;AACrB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Handles etag quoting in AppConfig response objects.\n *\n * This is important because the etag inside the body of the configuration\n * object isn't quoted, even though the header is.\n *\n * @param etag - the tag to quote, if it isn't quoted already\n *\n * @internal\n */\nexport function quoteETag(etag: string | undefined): string | undefined {\n // https://tools.ietf.org/html/rfc7232#section-3.1\n if (etag === undefined || etag === \"*\") {\n return etag;\n }\n\n if (etag.startsWith('\"') && etag.endsWith('\"')) {\n return etag;\n }\n\n if (etag.startsWith(\"'\") && etag.endsWith(\"'\")) {\n return etag;\n }\n\n return `\"${etag}\"`;\n}\n"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ConfigurationSetting } from "./generated/index.js";
|
|
2
|
+
import type { CommonClientOptions, OperationOptions } from "@azure/core-client";
|
|
3
|
+
import type { 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 snippet:new_configurationclient
|
|
35
|
+
* import { ConfigurationClient } from "@azure/template";
|
|
36
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
37
|
+
*
|
|
38
|
+
* const client = new ConfigurationClient(
|
|
39
|
+
* process.env.ENDPOINT ?? "<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,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQxD,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 snippet:new_configurationclient
|
|
21
|
+
* import { ConfigurationClient } from "@azure/template";
|
|
22
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
23
|
+
*
|
|
24
|
+
* const client = new ConfigurationClient(
|
|
25
|
+
* process.env.ENDPOINT ?? "<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;AAG5E,sDAA0D;AAC1D,iDAA6C;AAC7C,2CAAqC;AACrC,uCAAsC;AA2BtC;;GAEG;AACH,MAAa,mBAAmB;IAI9B;;;;;;;;;;;;;;;;OAgBG;IACH,YACE,WAAmB,EACnB,UAA2B,EAC3B,UAAsC,EAAE;QAExC,wEAAwE;QACxE,qCAAqC;QACrC,MAAM,UAAU,GAAG,IAAA,oDAA+B,EAAC;YACjD,UAAU;YACV,MAAM,EAAE,GAAG,WAAW,WAAW;SAClC,CAAC,CAAC;QAEH,MAAM,6BAA6B,iDAC9B,OAAO,KACV,sBAAsB,EAAE;gBACtB,oBAAoB,EAAE;oBACpB,IAAI,EAAE;wBACJ,gDAAgD;wBAChD,6CAA6C;wBAC7C,8CAA8C;wBAC9C,iDAAiD;wBACjD,+CAA+C;qBAChD;iBACF;aACF,KACE;YACD,cAAc,EAAE;gBACd,MAAM,EAAE,kBAAM,CAAC,IAAI;gBACnB,uEAAuE;gBACvE,uEAAuE;gBACvE,4BAA4B,EAAE,CAAC,6BAA6B,CAAC;aAC9D;SACF,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,GAAG,IAAI,0BAAe,CAAC,WAAW,EAAE,6BAA6B,CAAC,CAAC;QAC9E,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAA,kCAAmB,EAAC;YACvC,+EAA+E;YAC/E,wGAAwG;YACxG,SAAS,EAAE,iBAAiB;YAC5B,+BAA+B;YAC/B,WAAW,EAAE,iBAAiB;YAC9B,cAAc,EAAE,0BAAW;SAC5B,CAAC,CAAC;IACL,CAAC;IAyBM,KAAK,CAAC,uBAAuB,CAClC,YAA2C,EAC3C,UAA0C,EAAE;QAE5C,IAAI,GAAW,CAAC;QAChB,IAAI,WAA+B,CAAC;QAEpC,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ;QAChC,8DAA8D;QAC9D,6CAA6C,EAC7C,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;gBACrC,GAAG,GAAG,YAAY,CAAC;gBACnB,IAAI,OAAO,CAAC,aAAa,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 type {\n CommonClientOptions,\n OperationOptions,\n InternalClientPipelineOptions,\n} from \"@azure/core-client\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { TracingClient } from \"@azure/core-tracing\";\nimport { 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 snippet:new_configurationclient\n * import { ConfigurationClient } from \"@azure/template\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const client = new ConfigurationClient(\n * process.env.ENDPOINT ?? \"<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 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAwB,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.13-beta.1";
|
|
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,eAAe,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"1.0.13-beta.1\";\n"]}
|