@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
package/dist/index.js
DELETED
|
@@ -1,1589 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var coreHttp = require('@azure/core-http');
|
|
6
|
-
var coreTracing = require('@azure/core-tracing');
|
|
7
|
-
var logger$1 = require('@azure/logger');
|
|
8
|
-
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT license.
|
|
11
|
-
const SDK_VERSION = "1.0.11-beta.1";
|
|
12
|
-
|
|
13
|
-
// Copyright (c) Microsoft Corporation.
|
|
14
|
-
/**
|
|
15
|
-
* The \@azure/logger configuration for this package.
|
|
16
|
-
*
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
const logger = logger$1.createClientLogger("template");
|
|
20
|
-
|
|
21
|
-
/*
|
|
22
|
-
* Copyright (c) Microsoft Corporation.
|
|
23
|
-
* Licensed under the MIT License.
|
|
24
|
-
*
|
|
25
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
26
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
27
|
-
*/
|
|
28
|
-
const KeyListResult = {
|
|
29
|
-
type: {
|
|
30
|
-
name: "Composite",
|
|
31
|
-
className: "KeyListResult",
|
|
32
|
-
modelProperties: {
|
|
33
|
-
items: {
|
|
34
|
-
serializedName: "items",
|
|
35
|
-
type: {
|
|
36
|
-
name: "Sequence",
|
|
37
|
-
element: {
|
|
38
|
-
type: {
|
|
39
|
-
name: "Composite",
|
|
40
|
-
className: "Key"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
nextLink: {
|
|
46
|
-
serializedName: "@nextLink",
|
|
47
|
-
type: {
|
|
48
|
-
name: "String"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
const Key = {
|
|
55
|
-
type: {
|
|
56
|
-
name: "Composite",
|
|
57
|
-
className: "Key",
|
|
58
|
-
modelProperties: {
|
|
59
|
-
name: {
|
|
60
|
-
serializedName: "name",
|
|
61
|
-
readOnly: true,
|
|
62
|
-
type: {
|
|
63
|
-
name: "String"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const ErrorModel = {
|
|
70
|
-
type: {
|
|
71
|
-
name: "Composite",
|
|
72
|
-
className: "ErrorModel",
|
|
73
|
-
modelProperties: {
|
|
74
|
-
type: {
|
|
75
|
-
serializedName: "type",
|
|
76
|
-
type: {
|
|
77
|
-
name: "String"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
title: {
|
|
81
|
-
serializedName: "title",
|
|
82
|
-
type: {
|
|
83
|
-
name: "String"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
name: {
|
|
87
|
-
serializedName: "name",
|
|
88
|
-
type: {
|
|
89
|
-
name: "String"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
detail: {
|
|
93
|
-
serializedName: "detail",
|
|
94
|
-
type: {
|
|
95
|
-
name: "String"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
status: {
|
|
99
|
-
serializedName: "status",
|
|
100
|
-
type: {
|
|
101
|
-
name: "Number"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
const KeyValueListResult = {
|
|
108
|
-
type: {
|
|
109
|
-
name: "Composite",
|
|
110
|
-
className: "KeyValueListResult",
|
|
111
|
-
modelProperties: {
|
|
112
|
-
items: {
|
|
113
|
-
serializedName: "items",
|
|
114
|
-
type: {
|
|
115
|
-
name: "Sequence",
|
|
116
|
-
element: {
|
|
117
|
-
type: {
|
|
118
|
-
name: "Composite",
|
|
119
|
-
className: "ConfigurationSetting"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
nextLink: {
|
|
125
|
-
serializedName: "@nextLink",
|
|
126
|
-
type: {
|
|
127
|
-
name: "String"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
const ConfigurationSetting = {
|
|
134
|
-
type: {
|
|
135
|
-
name: "Composite",
|
|
136
|
-
className: "ConfigurationSetting",
|
|
137
|
-
modelProperties: {
|
|
138
|
-
key: {
|
|
139
|
-
serializedName: "key",
|
|
140
|
-
required: true,
|
|
141
|
-
type: {
|
|
142
|
-
name: "String"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
label: {
|
|
146
|
-
serializedName: "label",
|
|
147
|
-
type: {
|
|
148
|
-
name: "String"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
contentType: {
|
|
152
|
-
serializedName: "content_type",
|
|
153
|
-
type: {
|
|
154
|
-
name: "String"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
value: {
|
|
158
|
-
serializedName: "value",
|
|
159
|
-
type: {
|
|
160
|
-
name: "String"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
lastModified: {
|
|
164
|
-
serializedName: "last_modified",
|
|
165
|
-
type: {
|
|
166
|
-
name: "DateTime"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
tags: {
|
|
170
|
-
serializedName: "tags",
|
|
171
|
-
type: {
|
|
172
|
-
name: "Dictionary",
|
|
173
|
-
value: { type: { name: "String" } }
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
isReadOnly: {
|
|
177
|
-
serializedName: "locked",
|
|
178
|
-
type: {
|
|
179
|
-
name: "Boolean"
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
etag: {
|
|
183
|
-
serializedName: "etag",
|
|
184
|
-
type: {
|
|
185
|
-
name: "String"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
const LabelListResult = {
|
|
192
|
-
type: {
|
|
193
|
-
name: "Composite",
|
|
194
|
-
className: "LabelListResult",
|
|
195
|
-
modelProperties: {
|
|
196
|
-
items: {
|
|
197
|
-
serializedName: "items",
|
|
198
|
-
type: {
|
|
199
|
-
name: "Sequence",
|
|
200
|
-
element: {
|
|
201
|
-
type: {
|
|
202
|
-
name: "Composite",
|
|
203
|
-
className: "Label"
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
nextLink: {
|
|
209
|
-
serializedName: "@nextLink",
|
|
210
|
-
type: {
|
|
211
|
-
name: "String"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
const Label = {
|
|
218
|
-
type: {
|
|
219
|
-
name: "Composite",
|
|
220
|
-
className: "Label",
|
|
221
|
-
modelProperties: {
|
|
222
|
-
name: {
|
|
223
|
-
serializedName: "name",
|
|
224
|
-
readOnly: true,
|
|
225
|
-
type: {
|
|
226
|
-
name: "String"
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
const GeneratedClientGetKeysHeaders = {
|
|
233
|
-
type: {
|
|
234
|
-
name: "Composite",
|
|
235
|
-
className: "GeneratedClientGetKeysHeaders",
|
|
236
|
-
modelProperties: {
|
|
237
|
-
syncToken: {
|
|
238
|
-
serializedName: "sync-token",
|
|
239
|
-
type: {
|
|
240
|
-
name: "String"
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
const GeneratedClientCheckKeysHeaders = {
|
|
247
|
-
type: {
|
|
248
|
-
name: "Composite",
|
|
249
|
-
className: "GeneratedClientCheckKeysHeaders",
|
|
250
|
-
modelProperties: {
|
|
251
|
-
syncToken: {
|
|
252
|
-
serializedName: "sync-token",
|
|
253
|
-
type: {
|
|
254
|
-
name: "String"
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
const GeneratedClientGetKeyValuesHeaders = {
|
|
261
|
-
type: {
|
|
262
|
-
name: "Composite",
|
|
263
|
-
className: "GeneratedClientGetKeyValuesHeaders",
|
|
264
|
-
modelProperties: {
|
|
265
|
-
syncToken: {
|
|
266
|
-
serializedName: "sync-token",
|
|
267
|
-
type: {
|
|
268
|
-
name: "String"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
const GeneratedClientCheckKeyValuesHeaders = {
|
|
275
|
-
type: {
|
|
276
|
-
name: "Composite",
|
|
277
|
-
className: "GeneratedClientCheckKeyValuesHeaders",
|
|
278
|
-
modelProperties: {
|
|
279
|
-
syncToken: {
|
|
280
|
-
serializedName: "sync-token",
|
|
281
|
-
type: {
|
|
282
|
-
name: "String"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const GeneratedClientGetKeyValueHeaders = {
|
|
289
|
-
type: {
|
|
290
|
-
name: "Composite",
|
|
291
|
-
className: "GeneratedClientGetKeyValueHeaders",
|
|
292
|
-
modelProperties: {
|
|
293
|
-
syncToken: {
|
|
294
|
-
serializedName: "sync-token",
|
|
295
|
-
type: {
|
|
296
|
-
name: "String"
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
eTag: {
|
|
300
|
-
serializedName: "etag",
|
|
301
|
-
type: {
|
|
302
|
-
name: "String"
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
lastModified: {
|
|
306
|
-
serializedName: "last-modified",
|
|
307
|
-
type: {
|
|
308
|
-
name: "String"
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
const GeneratedClientPutKeyValueHeaders = {
|
|
315
|
-
type: {
|
|
316
|
-
name: "Composite",
|
|
317
|
-
className: "GeneratedClientPutKeyValueHeaders",
|
|
318
|
-
modelProperties: {
|
|
319
|
-
syncToken: {
|
|
320
|
-
serializedName: "sync-token",
|
|
321
|
-
type: {
|
|
322
|
-
name: "String"
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
eTag: {
|
|
326
|
-
serializedName: "etag",
|
|
327
|
-
type: {
|
|
328
|
-
name: "String"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
const GeneratedClientDeleteKeyValueHeaders = {
|
|
335
|
-
type: {
|
|
336
|
-
name: "Composite",
|
|
337
|
-
className: "GeneratedClientDeleteKeyValueHeaders",
|
|
338
|
-
modelProperties: {
|
|
339
|
-
syncToken: {
|
|
340
|
-
serializedName: "sync-token",
|
|
341
|
-
type: {
|
|
342
|
-
name: "String"
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
eTag: {
|
|
346
|
-
serializedName: "etag",
|
|
347
|
-
type: {
|
|
348
|
-
name: "String"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
const GeneratedClientCheckKeyValueHeaders = {
|
|
355
|
-
type: {
|
|
356
|
-
name: "Composite",
|
|
357
|
-
className: "GeneratedClientCheckKeyValueHeaders",
|
|
358
|
-
modelProperties: {
|
|
359
|
-
syncToken: {
|
|
360
|
-
serializedName: "sync-token",
|
|
361
|
-
type: {
|
|
362
|
-
name: "String"
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
eTag: {
|
|
366
|
-
serializedName: "etag",
|
|
367
|
-
type: {
|
|
368
|
-
name: "String"
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
lastModified: {
|
|
372
|
-
serializedName: "last-modified",
|
|
373
|
-
type: {
|
|
374
|
-
name: "String"
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
const GeneratedClientGetLabelsHeaders = {
|
|
381
|
-
type: {
|
|
382
|
-
name: "Composite",
|
|
383
|
-
className: "GeneratedClientGetLabelsHeaders",
|
|
384
|
-
modelProperties: {
|
|
385
|
-
syncToken: {
|
|
386
|
-
serializedName: "sync-token",
|
|
387
|
-
type: {
|
|
388
|
-
name: "String"
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
const GeneratedClientCheckLabelsHeaders = {
|
|
395
|
-
type: {
|
|
396
|
-
name: "Composite",
|
|
397
|
-
className: "GeneratedClientCheckLabelsHeaders",
|
|
398
|
-
modelProperties: {
|
|
399
|
-
syncToken: {
|
|
400
|
-
serializedName: "sync-token",
|
|
401
|
-
type: {
|
|
402
|
-
name: "String"
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
const GeneratedClientPutLockHeaders = {
|
|
409
|
-
type: {
|
|
410
|
-
name: "Composite",
|
|
411
|
-
className: "GeneratedClientPutLockHeaders",
|
|
412
|
-
modelProperties: {
|
|
413
|
-
syncToken: {
|
|
414
|
-
serializedName: "sync-token",
|
|
415
|
-
type: {
|
|
416
|
-
name: "String"
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
eTag: {
|
|
420
|
-
serializedName: "etag",
|
|
421
|
-
type: {
|
|
422
|
-
name: "String"
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
const GeneratedClientDeleteLockHeaders = {
|
|
429
|
-
type: {
|
|
430
|
-
name: "Composite",
|
|
431
|
-
className: "GeneratedClientDeleteLockHeaders",
|
|
432
|
-
modelProperties: {
|
|
433
|
-
syncToken: {
|
|
434
|
-
serializedName: "sync-token",
|
|
435
|
-
type: {
|
|
436
|
-
name: "String"
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
eTag: {
|
|
440
|
-
serializedName: "etag",
|
|
441
|
-
type: {
|
|
442
|
-
name: "String"
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
const GeneratedClientGetRevisionsHeaders = {
|
|
449
|
-
type: {
|
|
450
|
-
name: "Composite",
|
|
451
|
-
className: "GeneratedClientGetRevisionsHeaders",
|
|
452
|
-
modelProperties: {
|
|
453
|
-
syncToken: {
|
|
454
|
-
serializedName: "sync-token",
|
|
455
|
-
type: {
|
|
456
|
-
name: "String"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
const GeneratedClientCheckRevisionsHeaders = {
|
|
463
|
-
type: {
|
|
464
|
-
name: "Composite",
|
|
465
|
-
className: "GeneratedClientCheckRevisionsHeaders",
|
|
466
|
-
modelProperties: {
|
|
467
|
-
syncToken: {
|
|
468
|
-
serializedName: "sync-token",
|
|
469
|
-
type: {
|
|
470
|
-
name: "String"
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
const GeneratedClientGetKeysNextHeaders = {
|
|
477
|
-
type: {
|
|
478
|
-
name: "Composite",
|
|
479
|
-
className: "GeneratedClientGetKeysNextHeaders",
|
|
480
|
-
modelProperties: {
|
|
481
|
-
syncToken: {
|
|
482
|
-
serializedName: "sync-token",
|
|
483
|
-
type: {
|
|
484
|
-
name: "String"
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
const GeneratedClientGetKeyValuesNextHeaders = {
|
|
491
|
-
type: {
|
|
492
|
-
name: "Composite",
|
|
493
|
-
className: "GeneratedClientGetKeyValuesNextHeaders",
|
|
494
|
-
modelProperties: {
|
|
495
|
-
syncToken: {
|
|
496
|
-
serializedName: "sync-token",
|
|
497
|
-
type: {
|
|
498
|
-
name: "String"
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
const GeneratedClientGetLabelsNextHeaders = {
|
|
505
|
-
type: {
|
|
506
|
-
name: "Composite",
|
|
507
|
-
className: "GeneratedClientGetLabelsNextHeaders",
|
|
508
|
-
modelProperties: {
|
|
509
|
-
syncToken: {
|
|
510
|
-
serializedName: "sync-token",
|
|
511
|
-
type: {
|
|
512
|
-
name: "String"
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
const GeneratedClientGetRevisionsNextHeaders = {
|
|
519
|
-
type: {
|
|
520
|
-
name: "Composite",
|
|
521
|
-
className: "GeneratedClientGetRevisionsNextHeaders",
|
|
522
|
-
modelProperties: {
|
|
523
|
-
syncToken: {
|
|
524
|
-
serializedName: "sync-token",
|
|
525
|
-
type: {
|
|
526
|
-
name: "String"
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
534
|
-
__proto__: null,
|
|
535
|
-
KeyListResult: KeyListResult,
|
|
536
|
-
Key: Key,
|
|
537
|
-
ErrorModel: ErrorModel,
|
|
538
|
-
KeyValueListResult: KeyValueListResult,
|
|
539
|
-
ConfigurationSetting: ConfigurationSetting,
|
|
540
|
-
LabelListResult: LabelListResult,
|
|
541
|
-
Label: Label,
|
|
542
|
-
GeneratedClientGetKeysHeaders: GeneratedClientGetKeysHeaders,
|
|
543
|
-
GeneratedClientCheckKeysHeaders: GeneratedClientCheckKeysHeaders,
|
|
544
|
-
GeneratedClientGetKeyValuesHeaders: GeneratedClientGetKeyValuesHeaders,
|
|
545
|
-
GeneratedClientCheckKeyValuesHeaders: GeneratedClientCheckKeyValuesHeaders,
|
|
546
|
-
GeneratedClientGetKeyValueHeaders: GeneratedClientGetKeyValueHeaders,
|
|
547
|
-
GeneratedClientPutKeyValueHeaders: GeneratedClientPutKeyValueHeaders,
|
|
548
|
-
GeneratedClientDeleteKeyValueHeaders: GeneratedClientDeleteKeyValueHeaders,
|
|
549
|
-
GeneratedClientCheckKeyValueHeaders: GeneratedClientCheckKeyValueHeaders,
|
|
550
|
-
GeneratedClientGetLabelsHeaders: GeneratedClientGetLabelsHeaders,
|
|
551
|
-
GeneratedClientCheckLabelsHeaders: GeneratedClientCheckLabelsHeaders,
|
|
552
|
-
GeneratedClientPutLockHeaders: GeneratedClientPutLockHeaders,
|
|
553
|
-
GeneratedClientDeleteLockHeaders: GeneratedClientDeleteLockHeaders,
|
|
554
|
-
GeneratedClientGetRevisionsHeaders: GeneratedClientGetRevisionsHeaders,
|
|
555
|
-
GeneratedClientCheckRevisionsHeaders: GeneratedClientCheckRevisionsHeaders,
|
|
556
|
-
GeneratedClientGetKeysNextHeaders: GeneratedClientGetKeysNextHeaders,
|
|
557
|
-
GeneratedClientGetKeyValuesNextHeaders: GeneratedClientGetKeyValuesNextHeaders,
|
|
558
|
-
GeneratedClientGetLabelsNextHeaders: GeneratedClientGetLabelsNextHeaders,
|
|
559
|
-
GeneratedClientGetRevisionsNextHeaders: GeneratedClientGetRevisionsNextHeaders
|
|
560
|
-
});
|
|
561
|
-
|
|
562
|
-
/*
|
|
563
|
-
* Copyright (c) Microsoft Corporation.
|
|
564
|
-
* Licensed under the MIT License.
|
|
565
|
-
*
|
|
566
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
567
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
568
|
-
*/
|
|
569
|
-
const accept = {
|
|
570
|
-
parameterPath: "accept",
|
|
571
|
-
mapper: {
|
|
572
|
-
defaultValue: "application/vnd.microsoft.appconfig.keyset+json, application/json, application/problem+json",
|
|
573
|
-
isConstant: true,
|
|
574
|
-
serializedName: "Accept",
|
|
575
|
-
type: {
|
|
576
|
-
name: "String"
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
const endpoint = {
|
|
581
|
-
parameterPath: "endpoint",
|
|
582
|
-
mapper: {
|
|
583
|
-
serializedName: "endpoint",
|
|
584
|
-
required: true,
|
|
585
|
-
type: {
|
|
586
|
-
name: "String"
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
skipEncoding: true
|
|
590
|
-
};
|
|
591
|
-
const name = {
|
|
592
|
-
parameterPath: ["options", "name"],
|
|
593
|
-
mapper: {
|
|
594
|
-
serializedName: "name",
|
|
595
|
-
type: {
|
|
596
|
-
name: "String"
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
const syncToken = {
|
|
601
|
-
parameterPath: "syncToken",
|
|
602
|
-
mapper: {
|
|
603
|
-
serializedName: "Sync-Token",
|
|
604
|
-
type: {
|
|
605
|
-
name: "String"
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
const apiVersion = {
|
|
610
|
-
parameterPath: "apiVersion",
|
|
611
|
-
mapper: {
|
|
612
|
-
defaultValue: "1.0",
|
|
613
|
-
isConstant: true,
|
|
614
|
-
serializedName: "api-version",
|
|
615
|
-
type: {
|
|
616
|
-
name: "String"
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
const after = {
|
|
621
|
-
parameterPath: ["options", "after"],
|
|
622
|
-
mapper: {
|
|
623
|
-
serializedName: "After",
|
|
624
|
-
type: {
|
|
625
|
-
name: "String"
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
const acceptDatetime = {
|
|
630
|
-
parameterPath: ["options", "acceptDatetime"],
|
|
631
|
-
mapper: {
|
|
632
|
-
serializedName: "Accept-Datetime",
|
|
633
|
-
type: {
|
|
634
|
-
name: "String"
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
const accept1 = {
|
|
639
|
-
parameterPath: "accept",
|
|
640
|
-
mapper: {
|
|
641
|
-
defaultValue: "application/vnd.microsoft.appconfig.kvset+json, application/json, application/problem+json",
|
|
642
|
-
isConstant: true,
|
|
643
|
-
serializedName: "Accept",
|
|
644
|
-
type: {
|
|
645
|
-
name: "String"
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
const key = {
|
|
650
|
-
parameterPath: ["options", "key"],
|
|
651
|
-
mapper: {
|
|
652
|
-
serializedName: "key",
|
|
653
|
-
type: {
|
|
654
|
-
name: "String"
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
const label = {
|
|
659
|
-
parameterPath: ["options", "label"],
|
|
660
|
-
mapper: {
|
|
661
|
-
serializedName: "label",
|
|
662
|
-
type: {
|
|
663
|
-
name: "String"
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
const select = {
|
|
668
|
-
parameterPath: ["options", "select"],
|
|
669
|
-
mapper: {
|
|
670
|
-
serializedName: "$Select",
|
|
671
|
-
type: {
|
|
672
|
-
name: "Sequence",
|
|
673
|
-
element: {
|
|
674
|
-
type: {
|
|
675
|
-
name: "Enum",
|
|
676
|
-
allowedValues: [
|
|
677
|
-
"key",
|
|
678
|
-
"label",
|
|
679
|
-
"content_type",
|
|
680
|
-
"value",
|
|
681
|
-
"last_modified",
|
|
682
|
-
"tags",
|
|
683
|
-
"locked",
|
|
684
|
-
"etag"
|
|
685
|
-
]
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
},
|
|
690
|
-
collectionFormat: coreHttp.QueryCollectionFormat.Csv
|
|
691
|
-
};
|
|
692
|
-
const accept2 = {
|
|
693
|
-
parameterPath: "accept",
|
|
694
|
-
mapper: {
|
|
695
|
-
defaultValue: "application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json",
|
|
696
|
-
isConstant: true,
|
|
697
|
-
serializedName: "Accept",
|
|
698
|
-
type: {
|
|
699
|
-
name: "String"
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
const key1 = {
|
|
704
|
-
parameterPath: "key",
|
|
705
|
-
mapper: {
|
|
706
|
-
serializedName: "key",
|
|
707
|
-
required: true,
|
|
708
|
-
type: {
|
|
709
|
-
name: "String"
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
const ifMatch = {
|
|
714
|
-
parameterPath: ["options", "ifMatch"],
|
|
715
|
-
mapper: {
|
|
716
|
-
serializedName: "If-Match",
|
|
717
|
-
type: {
|
|
718
|
-
name: "String"
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
};
|
|
722
|
-
const ifNoneMatch = {
|
|
723
|
-
parameterPath: ["options", "ifNoneMatch"],
|
|
724
|
-
mapper: {
|
|
725
|
-
serializedName: "If-None-Match",
|
|
726
|
-
type: {
|
|
727
|
-
name: "String"
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
const contentType = {
|
|
732
|
-
parameterPath: ["options", "contentType"],
|
|
733
|
-
mapper: {
|
|
734
|
-
defaultValue: "application/vnd.microsoft.appconfig.kv+json",
|
|
735
|
-
isConstant: true,
|
|
736
|
-
serializedName: "Content-Type",
|
|
737
|
-
type: {
|
|
738
|
-
name: "String"
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
const entity = {
|
|
743
|
-
parameterPath: ["options", "entity"],
|
|
744
|
-
mapper: ConfigurationSetting
|
|
745
|
-
};
|
|
746
|
-
const accept3 = {
|
|
747
|
-
parameterPath: "accept",
|
|
748
|
-
mapper: {
|
|
749
|
-
defaultValue: "application/vnd.microsoft.appconfig.labelset+json, application/json, application/problem+json",
|
|
750
|
-
isConstant: true,
|
|
751
|
-
serializedName: "Accept",
|
|
752
|
-
type: {
|
|
753
|
-
name: "String"
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
const select1 = {
|
|
758
|
-
parameterPath: ["options", "select"],
|
|
759
|
-
mapper: {
|
|
760
|
-
serializedName: "$Select",
|
|
761
|
-
type: {
|
|
762
|
-
name: "Sequence",
|
|
763
|
-
element: {
|
|
764
|
-
defaultValue: "name",
|
|
765
|
-
isConstant: true,
|
|
766
|
-
type: {
|
|
767
|
-
name: "String"
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
collectionFormat: coreHttp.QueryCollectionFormat.Csv
|
|
773
|
-
};
|
|
774
|
-
const nextLink = {
|
|
775
|
-
parameterPath: "nextLink",
|
|
776
|
-
mapper: {
|
|
777
|
-
serializedName: "nextLink",
|
|
778
|
-
required: true,
|
|
779
|
-
type: {
|
|
780
|
-
name: "String"
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
skipEncoding: true
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
/*
|
|
787
|
-
* Copyright (c) Microsoft Corporation.
|
|
788
|
-
* Licensed under the MIT License.
|
|
789
|
-
*
|
|
790
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
791
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
792
|
-
*/
|
|
793
|
-
const packageName = "@azure/template";
|
|
794
|
-
const packageVersion = "1.0.11-beta.1";
|
|
795
|
-
/** @hidden */
|
|
796
|
-
class GeneratedClientContext extends coreHttp.ServiceClient {
|
|
797
|
-
/**
|
|
798
|
-
* Initializes a new instance of the GeneratedClientContext class.
|
|
799
|
-
* @param endpoint The endpoint of the App Configuration instance to send requests to.
|
|
800
|
-
* @param options The parameter options
|
|
801
|
-
*/
|
|
802
|
-
constructor(endpoint, options) {
|
|
803
|
-
if (endpoint === undefined) {
|
|
804
|
-
throw new Error("'endpoint' cannot be null");
|
|
805
|
-
}
|
|
806
|
-
// Initializing default values for options
|
|
807
|
-
if (!options) {
|
|
808
|
-
options = {};
|
|
809
|
-
}
|
|
810
|
-
if (!options.userAgent) {
|
|
811
|
-
const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
|
|
812
|
-
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
|
813
|
-
}
|
|
814
|
-
super(undefined, options);
|
|
815
|
-
this.requestContentType = "application/json; charset=utf-8";
|
|
816
|
-
this.baseUri = options.endpoint || "{endpoint}";
|
|
817
|
-
// Parameter assignments
|
|
818
|
-
this.endpoint = endpoint;
|
|
819
|
-
// Assigning values to Constant parameters
|
|
820
|
-
this.apiVersion = options.apiVersion || "1.0";
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/*
|
|
825
|
-
* Copyright (c) Microsoft Corporation.
|
|
826
|
-
* Licensed under the MIT License.
|
|
827
|
-
*
|
|
828
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
829
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
830
|
-
*/
|
|
831
|
-
/** @hidden */
|
|
832
|
-
class GeneratedClient extends GeneratedClientContext {
|
|
833
|
-
/**
|
|
834
|
-
* Initializes a new instance of the GeneratedClient class.
|
|
835
|
-
* @param endpoint The endpoint of the App Configuration instance to send requests to.
|
|
836
|
-
* @param options The parameter options
|
|
837
|
-
*/
|
|
838
|
-
constructor(endpoint, options) {
|
|
839
|
-
super(endpoint, options);
|
|
840
|
-
}
|
|
841
|
-
/**
|
|
842
|
-
* Gets a list of keys.
|
|
843
|
-
* @param options The options parameters.
|
|
844
|
-
*/
|
|
845
|
-
getKeys(options) {
|
|
846
|
-
const operationArguments = {
|
|
847
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
848
|
-
};
|
|
849
|
-
return this.sendOperationRequest(operationArguments, getKeysOperationSpec);
|
|
850
|
-
}
|
|
851
|
-
/**
|
|
852
|
-
* Requests the headers and status of the given resource.
|
|
853
|
-
* @param options The options parameters.
|
|
854
|
-
*/
|
|
855
|
-
checkKeys(options) {
|
|
856
|
-
const operationArguments = {
|
|
857
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
858
|
-
};
|
|
859
|
-
return this.sendOperationRequest(operationArguments, checkKeysOperationSpec);
|
|
860
|
-
}
|
|
861
|
-
/**
|
|
862
|
-
* Gets a list of key-values.
|
|
863
|
-
* @param options The options parameters.
|
|
864
|
-
*/
|
|
865
|
-
getKeyValues(options) {
|
|
866
|
-
const operationArguments = {
|
|
867
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
868
|
-
};
|
|
869
|
-
return this.sendOperationRequest(operationArguments, getKeyValuesOperationSpec);
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* Requests the headers and status of the given resource.
|
|
873
|
-
* @param options The options parameters.
|
|
874
|
-
*/
|
|
875
|
-
checkKeyValues(options) {
|
|
876
|
-
const operationArguments = {
|
|
877
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
878
|
-
};
|
|
879
|
-
return this.sendOperationRequest(operationArguments, checkKeyValuesOperationSpec);
|
|
880
|
-
}
|
|
881
|
-
/**
|
|
882
|
-
* Gets a single key-value.
|
|
883
|
-
* @param key The key of the key-value to retrieve.
|
|
884
|
-
* @param options The options parameters.
|
|
885
|
-
*/
|
|
886
|
-
getKeyValue(key, options) {
|
|
887
|
-
const operationArguments = {
|
|
888
|
-
key,
|
|
889
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
890
|
-
};
|
|
891
|
-
return this.sendOperationRequest(operationArguments, getKeyValueOperationSpec);
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Creates a key-value.
|
|
895
|
-
* @param key The key of the key-value to create.
|
|
896
|
-
* @param options The options parameters.
|
|
897
|
-
*/
|
|
898
|
-
putKeyValue(key, options) {
|
|
899
|
-
const operationArguments = {
|
|
900
|
-
key,
|
|
901
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
902
|
-
};
|
|
903
|
-
return this.sendOperationRequest(operationArguments, putKeyValueOperationSpec);
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* Deletes a key-value.
|
|
907
|
-
* @param key The key of the key-value to delete.
|
|
908
|
-
* @param options The options parameters.
|
|
909
|
-
*/
|
|
910
|
-
deleteKeyValue(key, options) {
|
|
911
|
-
const operationArguments = {
|
|
912
|
-
key,
|
|
913
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
914
|
-
};
|
|
915
|
-
return this.sendOperationRequest(operationArguments, deleteKeyValueOperationSpec);
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* Requests the headers and status of the given resource.
|
|
919
|
-
* @param key The key of the key-value to retrieve.
|
|
920
|
-
* @param options The options parameters.
|
|
921
|
-
*/
|
|
922
|
-
checkKeyValue(key, options) {
|
|
923
|
-
const operationArguments = {
|
|
924
|
-
key,
|
|
925
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
926
|
-
};
|
|
927
|
-
return this.sendOperationRequest(operationArguments, checkKeyValueOperationSpec);
|
|
928
|
-
}
|
|
929
|
-
/**
|
|
930
|
-
* Gets a list of labels.
|
|
931
|
-
* @param options The options parameters.
|
|
932
|
-
*/
|
|
933
|
-
getLabels(options) {
|
|
934
|
-
const operationArguments = {
|
|
935
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
936
|
-
};
|
|
937
|
-
return this.sendOperationRequest(operationArguments, getLabelsOperationSpec);
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* Requests the headers and status of the given resource.
|
|
941
|
-
* @param options The options parameters.
|
|
942
|
-
*/
|
|
943
|
-
checkLabels(options) {
|
|
944
|
-
const operationArguments = {
|
|
945
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
946
|
-
};
|
|
947
|
-
return this.sendOperationRequest(operationArguments, checkLabelsOperationSpec);
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* Locks a key-value.
|
|
951
|
-
* @param key The key of the key-value to lock.
|
|
952
|
-
* @param options The options parameters.
|
|
953
|
-
*/
|
|
954
|
-
putLock(key, options) {
|
|
955
|
-
const operationArguments = {
|
|
956
|
-
key,
|
|
957
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
958
|
-
};
|
|
959
|
-
return this.sendOperationRequest(operationArguments, putLockOperationSpec);
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* Unlocks a key-value.
|
|
963
|
-
* @param key The key of the key-value to unlock.
|
|
964
|
-
* @param options The options parameters.
|
|
965
|
-
*/
|
|
966
|
-
deleteLock(key, options) {
|
|
967
|
-
const operationArguments = {
|
|
968
|
-
key,
|
|
969
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
970
|
-
};
|
|
971
|
-
return this.sendOperationRequest(operationArguments, deleteLockOperationSpec);
|
|
972
|
-
}
|
|
973
|
-
/**
|
|
974
|
-
* Gets a list of key-value revisions.
|
|
975
|
-
* @param options The options parameters.
|
|
976
|
-
*/
|
|
977
|
-
getRevisions(options) {
|
|
978
|
-
const operationArguments = {
|
|
979
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
980
|
-
};
|
|
981
|
-
return this.sendOperationRequest(operationArguments, getRevisionsOperationSpec);
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* Requests the headers and status of the given resource.
|
|
985
|
-
* @param options The options parameters.
|
|
986
|
-
*/
|
|
987
|
-
checkRevisions(options) {
|
|
988
|
-
const operationArguments = {
|
|
989
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
990
|
-
};
|
|
991
|
-
return this.sendOperationRequest(operationArguments, checkRevisionsOperationSpec);
|
|
992
|
-
}
|
|
993
|
-
/**
|
|
994
|
-
* GetKeysNext
|
|
995
|
-
* @param nextLink The nextLink from the previous successful call to the GetKeys method.
|
|
996
|
-
* @param options The options parameters.
|
|
997
|
-
*/
|
|
998
|
-
getKeysNext(nextLink, options) {
|
|
999
|
-
const operationArguments = {
|
|
1000
|
-
nextLink,
|
|
1001
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1002
|
-
};
|
|
1003
|
-
return this.sendOperationRequest(operationArguments, getKeysNextOperationSpec);
|
|
1004
|
-
}
|
|
1005
|
-
/**
|
|
1006
|
-
* GetKeyValuesNext
|
|
1007
|
-
* @param nextLink The nextLink from the previous successful call to the GetKeyValues method.
|
|
1008
|
-
* @param options The options parameters.
|
|
1009
|
-
*/
|
|
1010
|
-
getKeyValuesNext(nextLink, options) {
|
|
1011
|
-
const operationArguments = {
|
|
1012
|
-
nextLink,
|
|
1013
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1014
|
-
};
|
|
1015
|
-
return this.sendOperationRequest(operationArguments, getKeyValuesNextOperationSpec);
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* GetLabelsNext
|
|
1019
|
-
* @param nextLink The nextLink from the previous successful call to the GetLabels method.
|
|
1020
|
-
* @param options The options parameters.
|
|
1021
|
-
*/
|
|
1022
|
-
getLabelsNext(nextLink, options) {
|
|
1023
|
-
const operationArguments = {
|
|
1024
|
-
nextLink,
|
|
1025
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1026
|
-
};
|
|
1027
|
-
return this.sendOperationRequest(operationArguments, getLabelsNextOperationSpec);
|
|
1028
|
-
}
|
|
1029
|
-
/**
|
|
1030
|
-
* GetRevisionsNext
|
|
1031
|
-
* @param nextLink The nextLink from the previous successful call to the GetRevisions method.
|
|
1032
|
-
* @param options The options parameters.
|
|
1033
|
-
*/
|
|
1034
|
-
getRevisionsNext(nextLink, options) {
|
|
1035
|
-
const operationArguments = {
|
|
1036
|
-
nextLink,
|
|
1037
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1038
|
-
};
|
|
1039
|
-
return this.sendOperationRequest(operationArguments, getRevisionsNextOperationSpec);
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
// Operation Specifications
|
|
1043
|
-
const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
|
1044
|
-
const getKeysOperationSpec = {
|
|
1045
|
-
path: "/keys",
|
|
1046
|
-
httpMethod: "GET",
|
|
1047
|
-
responses: {
|
|
1048
|
-
200: {
|
|
1049
|
-
bodyMapper: KeyListResult,
|
|
1050
|
-
headersMapper: GeneratedClientGetKeysHeaders
|
|
1051
|
-
},
|
|
1052
|
-
default: {
|
|
1053
|
-
bodyMapper: ErrorModel
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
queryParameters: [name, apiVersion, after],
|
|
1057
|
-
urlParameters: [endpoint],
|
|
1058
|
-
headerParameters: [
|
|
1059
|
-
accept,
|
|
1060
|
-
syncToken,
|
|
1061
|
-
acceptDatetime
|
|
1062
|
-
],
|
|
1063
|
-
serializer
|
|
1064
|
-
};
|
|
1065
|
-
const checkKeysOperationSpec = {
|
|
1066
|
-
path: "/keys",
|
|
1067
|
-
httpMethod: "HEAD",
|
|
1068
|
-
responses: {
|
|
1069
|
-
200: {
|
|
1070
|
-
headersMapper: GeneratedClientCheckKeysHeaders
|
|
1071
|
-
},
|
|
1072
|
-
default: {}
|
|
1073
|
-
},
|
|
1074
|
-
queryParameters: [name, apiVersion, after],
|
|
1075
|
-
urlParameters: [endpoint],
|
|
1076
|
-
headerParameters: [syncToken, acceptDatetime],
|
|
1077
|
-
serializer
|
|
1078
|
-
};
|
|
1079
|
-
const getKeyValuesOperationSpec = {
|
|
1080
|
-
path: "/kv",
|
|
1081
|
-
httpMethod: "GET",
|
|
1082
|
-
responses: {
|
|
1083
|
-
200: {
|
|
1084
|
-
bodyMapper: KeyValueListResult,
|
|
1085
|
-
headersMapper: GeneratedClientGetKeyValuesHeaders
|
|
1086
|
-
},
|
|
1087
|
-
default: {
|
|
1088
|
-
bodyMapper: ErrorModel
|
|
1089
|
-
}
|
|
1090
|
-
},
|
|
1091
|
-
queryParameters: [
|
|
1092
|
-
apiVersion,
|
|
1093
|
-
after,
|
|
1094
|
-
key,
|
|
1095
|
-
label,
|
|
1096
|
-
select
|
|
1097
|
-
],
|
|
1098
|
-
urlParameters: [endpoint],
|
|
1099
|
-
headerParameters: [
|
|
1100
|
-
syncToken,
|
|
1101
|
-
acceptDatetime,
|
|
1102
|
-
accept1
|
|
1103
|
-
],
|
|
1104
|
-
serializer
|
|
1105
|
-
};
|
|
1106
|
-
const checkKeyValuesOperationSpec = {
|
|
1107
|
-
path: "/kv",
|
|
1108
|
-
httpMethod: "HEAD",
|
|
1109
|
-
responses: {
|
|
1110
|
-
200: {
|
|
1111
|
-
headersMapper: GeneratedClientCheckKeyValuesHeaders
|
|
1112
|
-
},
|
|
1113
|
-
default: {}
|
|
1114
|
-
},
|
|
1115
|
-
queryParameters: [
|
|
1116
|
-
apiVersion,
|
|
1117
|
-
after,
|
|
1118
|
-
key,
|
|
1119
|
-
label,
|
|
1120
|
-
select
|
|
1121
|
-
],
|
|
1122
|
-
urlParameters: [endpoint],
|
|
1123
|
-
headerParameters: [syncToken, acceptDatetime],
|
|
1124
|
-
serializer
|
|
1125
|
-
};
|
|
1126
|
-
const getKeyValueOperationSpec = {
|
|
1127
|
-
path: "/kv/{key}",
|
|
1128
|
-
httpMethod: "GET",
|
|
1129
|
-
responses: {
|
|
1130
|
-
200: {
|
|
1131
|
-
bodyMapper: ConfigurationSetting,
|
|
1132
|
-
headersMapper: GeneratedClientGetKeyValueHeaders
|
|
1133
|
-
},
|
|
1134
|
-
default: {
|
|
1135
|
-
bodyMapper: ErrorModel
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
queryParameters: [apiVersion, label, select],
|
|
1139
|
-
urlParameters: [endpoint, key1],
|
|
1140
|
-
headerParameters: [
|
|
1141
|
-
syncToken,
|
|
1142
|
-
acceptDatetime,
|
|
1143
|
-
accept2,
|
|
1144
|
-
ifMatch,
|
|
1145
|
-
ifNoneMatch
|
|
1146
|
-
],
|
|
1147
|
-
serializer
|
|
1148
|
-
};
|
|
1149
|
-
const putKeyValueOperationSpec = {
|
|
1150
|
-
path: "/kv/{key}",
|
|
1151
|
-
httpMethod: "PUT",
|
|
1152
|
-
responses: {
|
|
1153
|
-
200: {
|
|
1154
|
-
bodyMapper: ConfigurationSetting,
|
|
1155
|
-
headersMapper: GeneratedClientPutKeyValueHeaders
|
|
1156
|
-
},
|
|
1157
|
-
default: {
|
|
1158
|
-
bodyMapper: ErrorModel
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
requestBody: entity,
|
|
1162
|
-
queryParameters: [apiVersion, label],
|
|
1163
|
-
urlParameters: [endpoint, key1],
|
|
1164
|
-
headerParameters: [
|
|
1165
|
-
syncToken,
|
|
1166
|
-
accept2,
|
|
1167
|
-
ifMatch,
|
|
1168
|
-
ifNoneMatch,
|
|
1169
|
-
contentType
|
|
1170
|
-
],
|
|
1171
|
-
mediaType: "json",
|
|
1172
|
-
serializer
|
|
1173
|
-
};
|
|
1174
|
-
const deleteKeyValueOperationSpec = {
|
|
1175
|
-
path: "/kv/{key}",
|
|
1176
|
-
httpMethod: "DELETE",
|
|
1177
|
-
responses: {
|
|
1178
|
-
200: {
|
|
1179
|
-
bodyMapper: ConfigurationSetting,
|
|
1180
|
-
headersMapper: GeneratedClientDeleteKeyValueHeaders
|
|
1181
|
-
},
|
|
1182
|
-
204: {
|
|
1183
|
-
headersMapper: GeneratedClientDeleteKeyValueHeaders
|
|
1184
|
-
},
|
|
1185
|
-
default: {
|
|
1186
|
-
bodyMapper: ErrorModel
|
|
1187
|
-
}
|
|
1188
|
-
},
|
|
1189
|
-
queryParameters: [apiVersion, label],
|
|
1190
|
-
urlParameters: [endpoint, key1],
|
|
1191
|
-
headerParameters: [
|
|
1192
|
-
syncToken,
|
|
1193
|
-
accept2,
|
|
1194
|
-
ifMatch
|
|
1195
|
-
],
|
|
1196
|
-
serializer
|
|
1197
|
-
};
|
|
1198
|
-
const checkKeyValueOperationSpec = {
|
|
1199
|
-
path: "/kv/{key}",
|
|
1200
|
-
httpMethod: "HEAD",
|
|
1201
|
-
responses: {
|
|
1202
|
-
200: {
|
|
1203
|
-
headersMapper: GeneratedClientCheckKeyValueHeaders
|
|
1204
|
-
},
|
|
1205
|
-
default: {}
|
|
1206
|
-
},
|
|
1207
|
-
queryParameters: [apiVersion, label, select],
|
|
1208
|
-
urlParameters: [endpoint, key1],
|
|
1209
|
-
headerParameters: [
|
|
1210
|
-
syncToken,
|
|
1211
|
-
acceptDatetime,
|
|
1212
|
-
ifMatch,
|
|
1213
|
-
ifNoneMatch
|
|
1214
|
-
],
|
|
1215
|
-
serializer
|
|
1216
|
-
};
|
|
1217
|
-
const getLabelsOperationSpec = {
|
|
1218
|
-
path: "/labels",
|
|
1219
|
-
httpMethod: "GET",
|
|
1220
|
-
responses: {
|
|
1221
|
-
200: {
|
|
1222
|
-
bodyMapper: LabelListResult,
|
|
1223
|
-
headersMapper: GeneratedClientGetLabelsHeaders
|
|
1224
|
-
},
|
|
1225
|
-
default: {
|
|
1226
|
-
bodyMapper: ErrorModel
|
|
1227
|
-
}
|
|
1228
|
-
},
|
|
1229
|
-
queryParameters: [
|
|
1230
|
-
name,
|
|
1231
|
-
apiVersion,
|
|
1232
|
-
after,
|
|
1233
|
-
select1
|
|
1234
|
-
],
|
|
1235
|
-
urlParameters: [endpoint],
|
|
1236
|
-
headerParameters: [
|
|
1237
|
-
syncToken,
|
|
1238
|
-
acceptDatetime,
|
|
1239
|
-
accept3
|
|
1240
|
-
],
|
|
1241
|
-
serializer
|
|
1242
|
-
};
|
|
1243
|
-
const checkLabelsOperationSpec = {
|
|
1244
|
-
path: "/labels",
|
|
1245
|
-
httpMethod: "HEAD",
|
|
1246
|
-
responses: {
|
|
1247
|
-
200: {
|
|
1248
|
-
headersMapper: GeneratedClientCheckLabelsHeaders
|
|
1249
|
-
},
|
|
1250
|
-
default: {}
|
|
1251
|
-
},
|
|
1252
|
-
queryParameters: [
|
|
1253
|
-
name,
|
|
1254
|
-
apiVersion,
|
|
1255
|
-
after,
|
|
1256
|
-
select1
|
|
1257
|
-
],
|
|
1258
|
-
urlParameters: [endpoint],
|
|
1259
|
-
headerParameters: [syncToken, acceptDatetime],
|
|
1260
|
-
serializer
|
|
1261
|
-
};
|
|
1262
|
-
const putLockOperationSpec = {
|
|
1263
|
-
path: "/locks/{key}",
|
|
1264
|
-
httpMethod: "PUT",
|
|
1265
|
-
responses: {
|
|
1266
|
-
200: {
|
|
1267
|
-
bodyMapper: ConfigurationSetting,
|
|
1268
|
-
headersMapper: GeneratedClientPutLockHeaders
|
|
1269
|
-
},
|
|
1270
|
-
default: {
|
|
1271
|
-
bodyMapper: ErrorModel
|
|
1272
|
-
}
|
|
1273
|
-
},
|
|
1274
|
-
queryParameters: [apiVersion, label],
|
|
1275
|
-
urlParameters: [endpoint, key1],
|
|
1276
|
-
headerParameters: [
|
|
1277
|
-
syncToken,
|
|
1278
|
-
accept2,
|
|
1279
|
-
ifMatch,
|
|
1280
|
-
ifNoneMatch
|
|
1281
|
-
],
|
|
1282
|
-
serializer
|
|
1283
|
-
};
|
|
1284
|
-
const deleteLockOperationSpec = {
|
|
1285
|
-
path: "/locks/{key}",
|
|
1286
|
-
httpMethod: "DELETE",
|
|
1287
|
-
responses: {
|
|
1288
|
-
200: {
|
|
1289
|
-
bodyMapper: ConfigurationSetting,
|
|
1290
|
-
headersMapper: GeneratedClientDeleteLockHeaders
|
|
1291
|
-
},
|
|
1292
|
-
default: {
|
|
1293
|
-
bodyMapper: ErrorModel
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
queryParameters: [apiVersion, label],
|
|
1297
|
-
urlParameters: [endpoint, key1],
|
|
1298
|
-
headerParameters: [
|
|
1299
|
-
syncToken,
|
|
1300
|
-
accept2,
|
|
1301
|
-
ifMatch,
|
|
1302
|
-
ifNoneMatch
|
|
1303
|
-
],
|
|
1304
|
-
serializer
|
|
1305
|
-
};
|
|
1306
|
-
const getRevisionsOperationSpec = {
|
|
1307
|
-
path: "/revisions",
|
|
1308
|
-
httpMethod: "GET",
|
|
1309
|
-
responses: {
|
|
1310
|
-
200: {
|
|
1311
|
-
bodyMapper: KeyValueListResult,
|
|
1312
|
-
headersMapper: GeneratedClientGetRevisionsHeaders
|
|
1313
|
-
},
|
|
1314
|
-
default: {
|
|
1315
|
-
bodyMapper: ErrorModel
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
queryParameters: [
|
|
1319
|
-
apiVersion,
|
|
1320
|
-
after,
|
|
1321
|
-
key,
|
|
1322
|
-
label,
|
|
1323
|
-
select
|
|
1324
|
-
],
|
|
1325
|
-
urlParameters: [endpoint],
|
|
1326
|
-
headerParameters: [
|
|
1327
|
-
syncToken,
|
|
1328
|
-
acceptDatetime,
|
|
1329
|
-
accept1
|
|
1330
|
-
],
|
|
1331
|
-
serializer
|
|
1332
|
-
};
|
|
1333
|
-
const checkRevisionsOperationSpec = {
|
|
1334
|
-
path: "/revisions",
|
|
1335
|
-
httpMethod: "HEAD",
|
|
1336
|
-
responses: {
|
|
1337
|
-
200: {
|
|
1338
|
-
headersMapper: GeneratedClientCheckRevisionsHeaders
|
|
1339
|
-
},
|
|
1340
|
-
default: {}
|
|
1341
|
-
},
|
|
1342
|
-
queryParameters: [
|
|
1343
|
-
apiVersion,
|
|
1344
|
-
after,
|
|
1345
|
-
key,
|
|
1346
|
-
label,
|
|
1347
|
-
select
|
|
1348
|
-
],
|
|
1349
|
-
urlParameters: [endpoint],
|
|
1350
|
-
headerParameters: [syncToken, acceptDatetime],
|
|
1351
|
-
serializer
|
|
1352
|
-
};
|
|
1353
|
-
const getKeysNextOperationSpec = {
|
|
1354
|
-
path: "{nextLink}",
|
|
1355
|
-
httpMethod: "GET",
|
|
1356
|
-
responses: {
|
|
1357
|
-
200: {
|
|
1358
|
-
bodyMapper: KeyListResult,
|
|
1359
|
-
headersMapper: GeneratedClientGetKeysNextHeaders
|
|
1360
|
-
},
|
|
1361
|
-
default: {
|
|
1362
|
-
bodyMapper: ErrorModel
|
|
1363
|
-
}
|
|
1364
|
-
},
|
|
1365
|
-
queryParameters: [name, apiVersion, after],
|
|
1366
|
-
urlParameters: [endpoint, nextLink],
|
|
1367
|
-
headerParameters: [
|
|
1368
|
-
accept,
|
|
1369
|
-
syncToken,
|
|
1370
|
-
acceptDatetime
|
|
1371
|
-
],
|
|
1372
|
-
serializer
|
|
1373
|
-
};
|
|
1374
|
-
const getKeyValuesNextOperationSpec = {
|
|
1375
|
-
path: "{nextLink}",
|
|
1376
|
-
httpMethod: "GET",
|
|
1377
|
-
responses: {
|
|
1378
|
-
200: {
|
|
1379
|
-
bodyMapper: KeyValueListResult,
|
|
1380
|
-
headersMapper: GeneratedClientGetKeyValuesNextHeaders
|
|
1381
|
-
},
|
|
1382
|
-
default: {
|
|
1383
|
-
bodyMapper: ErrorModel
|
|
1384
|
-
}
|
|
1385
|
-
},
|
|
1386
|
-
queryParameters: [
|
|
1387
|
-
apiVersion,
|
|
1388
|
-
after,
|
|
1389
|
-
key,
|
|
1390
|
-
label,
|
|
1391
|
-
select
|
|
1392
|
-
],
|
|
1393
|
-
urlParameters: [endpoint, nextLink],
|
|
1394
|
-
headerParameters: [
|
|
1395
|
-
syncToken,
|
|
1396
|
-
acceptDatetime,
|
|
1397
|
-
accept1
|
|
1398
|
-
],
|
|
1399
|
-
serializer
|
|
1400
|
-
};
|
|
1401
|
-
const getLabelsNextOperationSpec = {
|
|
1402
|
-
path: "{nextLink}",
|
|
1403
|
-
httpMethod: "GET",
|
|
1404
|
-
responses: {
|
|
1405
|
-
200: {
|
|
1406
|
-
bodyMapper: LabelListResult,
|
|
1407
|
-
headersMapper: GeneratedClientGetLabelsNextHeaders
|
|
1408
|
-
},
|
|
1409
|
-
default: {
|
|
1410
|
-
bodyMapper: ErrorModel
|
|
1411
|
-
}
|
|
1412
|
-
},
|
|
1413
|
-
queryParameters: [
|
|
1414
|
-
name,
|
|
1415
|
-
apiVersion,
|
|
1416
|
-
after,
|
|
1417
|
-
select1
|
|
1418
|
-
],
|
|
1419
|
-
urlParameters: [endpoint, nextLink],
|
|
1420
|
-
headerParameters: [
|
|
1421
|
-
syncToken,
|
|
1422
|
-
acceptDatetime,
|
|
1423
|
-
accept3
|
|
1424
|
-
],
|
|
1425
|
-
serializer
|
|
1426
|
-
};
|
|
1427
|
-
const getRevisionsNextOperationSpec = {
|
|
1428
|
-
path: "{nextLink}",
|
|
1429
|
-
httpMethod: "GET",
|
|
1430
|
-
responses: {
|
|
1431
|
-
200: {
|
|
1432
|
-
bodyMapper: KeyValueListResult,
|
|
1433
|
-
headersMapper: GeneratedClientGetRevisionsNextHeaders
|
|
1434
|
-
},
|
|
1435
|
-
default: {
|
|
1436
|
-
bodyMapper: ErrorModel
|
|
1437
|
-
}
|
|
1438
|
-
},
|
|
1439
|
-
queryParameters: [
|
|
1440
|
-
apiVersion,
|
|
1441
|
-
after,
|
|
1442
|
-
key,
|
|
1443
|
-
label,
|
|
1444
|
-
select
|
|
1445
|
-
],
|
|
1446
|
-
urlParameters: [endpoint, nextLink],
|
|
1447
|
-
headerParameters: [
|
|
1448
|
-
syncToken,
|
|
1449
|
-
acceptDatetime,
|
|
1450
|
-
accept1
|
|
1451
|
-
],
|
|
1452
|
-
serializer
|
|
1453
|
-
};
|
|
1454
|
-
|
|
1455
|
-
// Copyright (c) Microsoft Corporation.
|
|
1456
|
-
/**
|
|
1457
|
-
* Creates a span using the global tracer.
|
|
1458
|
-
*
|
|
1459
|
-
* @param name - The name of the operation being performed.
|
|
1460
|
-
* @param tracingOptions - The options for the underlying http request.
|
|
1461
|
-
*
|
|
1462
|
-
* @internal
|
|
1463
|
-
*/
|
|
1464
|
-
const createSpan = coreTracing.createSpanFunction({
|
|
1465
|
-
namespace: "Microsoft.Learn",
|
|
1466
|
-
packagePrefix: "Azure.Learn.ApiLearn"
|
|
1467
|
-
});
|
|
1468
|
-
|
|
1469
|
-
// Copyright (c) Microsoft Corporation.
|
|
1470
|
-
// Licensed under the MIT license.
|
|
1471
|
-
/**
|
|
1472
|
-
* Handles etag quoting in AppConfig response objects.
|
|
1473
|
-
*
|
|
1474
|
-
* This is important because the etag inside the body of the configuration
|
|
1475
|
-
* object isn't quoted, even though the header is.
|
|
1476
|
-
*
|
|
1477
|
-
* @param etag - the tag to quote, if it isn't quoted already
|
|
1478
|
-
*
|
|
1479
|
-
* @internal
|
|
1480
|
-
*/
|
|
1481
|
-
function quoteETag(etag) {
|
|
1482
|
-
// https://tools.ietf.org/html/rfc7232#section-3.1
|
|
1483
|
-
if (etag === undefined || etag === "*") {
|
|
1484
|
-
return etag;
|
|
1485
|
-
}
|
|
1486
|
-
if (etag.startsWith('"') && etag.endsWith('"')) {
|
|
1487
|
-
return etag;
|
|
1488
|
-
}
|
|
1489
|
-
if (etag.startsWith("'") && etag.endsWith("'")) {
|
|
1490
|
-
return etag;
|
|
1491
|
-
}
|
|
1492
|
-
return `"${etag}"`;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
// Copyright (c) Microsoft Corporation.
|
|
1496
|
-
/**
|
|
1497
|
-
* The client class used to interact with the App Configuration service.
|
|
1498
|
-
*/
|
|
1499
|
-
class ConfigurationClient {
|
|
1500
|
-
/**
|
|
1501
|
-
* Creates an instance of a ConfigurationClient.
|
|
1502
|
-
*
|
|
1503
|
-
* Example usage:
|
|
1504
|
-
* ```ts
|
|
1505
|
-
* import { ConfigurationClient} from "@azure/ai-text-analytics";
|
|
1506
|
-
* import { DefaultAzureCredential} from "@azure/identity";
|
|
1507
|
-
*
|
|
1508
|
-
* const client = new ConfigurationClient(
|
|
1509
|
-
* "<app configuration endpoint>",
|
|
1510
|
-
* new DefaultAzureCredential()
|
|
1511
|
-
* );
|
|
1512
|
-
* ```
|
|
1513
|
-
* @param endpointUrl - the URL to the App Configuration endpoint
|
|
1514
|
-
* @param credential - used to authenticate requests to the service
|
|
1515
|
-
* @param options - optional configuration used to send requests to the service
|
|
1516
|
-
*/
|
|
1517
|
-
constructor(endpointUrl, credential, options = {}) {
|
|
1518
|
-
// The below code helps us set a proper User-Agent header on all requests
|
|
1519
|
-
const libInfo = `azsdk-js-template-template/${SDK_VERSION}`;
|
|
1520
|
-
if (!options.userAgentOptions) {
|
|
1521
|
-
options.userAgentOptions = {};
|
|
1522
|
-
}
|
|
1523
|
-
if (options.userAgentOptions.userAgentPrefix) {
|
|
1524
|
-
options.userAgentOptions.userAgentPrefix = `${options.userAgentOptions.userAgentPrefix} ${libInfo}`;
|
|
1525
|
-
}
|
|
1526
|
-
else {
|
|
1527
|
-
options.userAgentOptions.userAgentPrefix = libInfo;
|
|
1528
|
-
}
|
|
1529
|
-
// The AAD scope for an API is usually the baseUri + "/.default", but it
|
|
1530
|
-
// may be different for your service.
|
|
1531
|
-
const authPolicy = coreHttp.bearerTokenAuthenticationPolicy(credential, `${endpointUrl}/.default`);
|
|
1532
|
-
const internalPipelineOptions = Object.assign(Object.assign(Object.assign({}, options), { deserializationOptions: {
|
|
1533
|
-
expectedContentTypes: {
|
|
1534
|
-
json: [
|
|
1535
|
-
"application/vnd.microsoft.appconfig.kvset+json",
|
|
1536
|
-
"application/vnd.microsoft.appconfig.kv+json",
|
|
1537
|
-
"application/vnd.microsoft.appconfig.kvs+json",
|
|
1538
|
-
"application/vnd.microsoft.appconfig.keyset+json",
|
|
1539
|
-
"application/vnd.microsoft.appconfig.revs+json"
|
|
1540
|
-
]
|
|
1541
|
-
}
|
|
1542
|
-
} }), {
|
|
1543
|
-
loggingOptions: {
|
|
1544
|
-
logger: logger.info,
|
|
1545
|
-
// This array contains header names we want to log that are not already
|
|
1546
|
-
// included as safe. Unknown/unsafe headers are logged as "<REDACTED>".
|
|
1547
|
-
allowedHeaderNames: ["x-ms-correlation-request-id"]
|
|
1548
|
-
}
|
|
1549
|
-
});
|
|
1550
|
-
const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, authPolicy);
|
|
1551
|
-
this.client = new GeneratedClient(endpointUrl, pipeline);
|
|
1552
|
-
}
|
|
1553
|
-
async getConfigurationSetting(keyOrSetting, options = {}) {
|
|
1554
|
-
let key;
|
|
1555
|
-
let ifNoneMatch;
|
|
1556
|
-
if (typeof keyOrSetting === "string") {
|
|
1557
|
-
key = keyOrSetting;
|
|
1558
|
-
if (options.onlyIfChanged) {
|
|
1559
|
-
throw new RangeError("You must pass a ConfigurationSetting instead of a key to perform a conditional fetch.");
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
else {
|
|
1563
|
-
key = keyOrSetting.key;
|
|
1564
|
-
const etag = keyOrSetting.etag;
|
|
1565
|
-
if (options.onlyIfChanged) {
|
|
1566
|
-
ifNoneMatch = quoteETag(etag);
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
const { span, updatedOptions } = createSpan(
|
|
1570
|
-
// Here you set the name of the span, usually clientName-operationName
|
|
1571
|
-
"ConfigurationClient-getConfigurationSetting", options);
|
|
1572
|
-
try {
|
|
1573
|
-
const result = await this.client.getKeyValue(key, Object.assign(Object.assign({}, updatedOptions), { ifNoneMatch }));
|
|
1574
|
-
return result;
|
|
1575
|
-
}
|
|
1576
|
-
catch (e) {
|
|
1577
|
-
// There are different standard codes available for different errors:
|
|
1578
|
-
// https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/api.md#status
|
|
1579
|
-
span.setStatus({ code: coreTracing.SpanStatusCode.ERROR, message: e.message });
|
|
1580
|
-
throw e;
|
|
1581
|
-
}
|
|
1582
|
-
finally {
|
|
1583
|
-
span.end();
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
exports.ConfigurationClient = ConfigurationClient;
|
|
1589
|
-
//# sourceMappingURL=index.js.map
|