@aws-sdk/client-schemas 3.183.0 → 3.186.0
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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Schemas.js +133 -126
- package/dist-es/SchemasClient.js +28 -22
- package/dist-es/commands/CreateDiscovererCommand.js +28 -21
- package/dist-es/commands/CreateRegistryCommand.js +28 -21
- package/dist-es/commands/CreateSchemaCommand.js +28 -21
- package/dist-es/commands/DeleteDiscovererCommand.js +29 -22
- package/dist-es/commands/DeleteRegistryCommand.js +29 -22
- package/dist-es/commands/DeleteResourcePolicyCommand.js +29 -22
- package/dist-es/commands/DeleteSchemaCommand.js +29 -22
- package/dist-es/commands/DeleteSchemaVersionCommand.js +29 -22
- package/dist-es/commands/DescribeCodeBindingCommand.js +28 -21
- package/dist-es/commands/DescribeDiscovererCommand.js +28 -21
- package/dist-es/commands/DescribeRegistryCommand.js +28 -21
- package/dist-es/commands/DescribeSchemaCommand.js +28 -21
- package/dist-es/commands/ExportSchemaCommand.js +28 -21
- package/dist-es/commands/GetCodeBindingSourceCommand.js +28 -21
- package/dist-es/commands/GetDiscoveredSchemaCommand.js +28 -21
- package/dist-es/commands/GetResourcePolicyCommand.js +28 -21
- package/dist-es/commands/ListDiscoverersCommand.js +28 -21
- package/dist-es/commands/ListRegistriesCommand.js +28 -21
- package/dist-es/commands/ListSchemaVersionsCommand.js +28 -21
- package/dist-es/commands/ListSchemasCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutCodeBindingCommand.js +28 -21
- package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
- package/dist-es/commands/SearchSchemasCommand.js +28 -21
- package/dist-es/commands/StartDiscovererCommand.js +28 -21
- package/dist-es/commands/StopDiscovererCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateDiscovererCommand.js +28 -21
- package/dist-es/commands/UpdateRegistryCommand.js +28 -21
- package/dist-es/commands/UpdateSchemaCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SchemasServiceException.js +10 -5
- package/dist-es/models/models_0.js +192 -313
- package/dist-es/pagination/ListDiscoverersPaginator.js +68 -25
- package/dist-es/pagination/ListRegistriesPaginator.js +68 -25
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListSchemasPaginator.js +68 -25
- package/dist-es/pagination/SearchSchemasPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +3445 -2431
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForCodeBindingExists.js +68 -48
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-schemas
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-schemas
|
|
@@ -2647,10 +2647,10 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2647
2647
|
}, {});
|
|
2648
2648
|
};
|
|
2649
2649
|
const deserializeMetadata = (output) => {
|
|
2650
|
-
var _a;
|
|
2650
|
+
var _a, _b;
|
|
2651
2651
|
return ({
|
|
2652
2652
|
httpStatusCode: output.statusCode,
|
|
2653
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
2653
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2654
2654
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2655
2655
|
cfId: output.headers["x-amz-cf-id"],
|
|
2656
2656
|
});
|
package/dist-es/Schemas.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CreateDiscovererCommand, } from "./commands/CreateDiscovererCommand";
|
|
2
3
|
import { CreateRegistryCommand, } from "./commands/CreateRegistryCommand";
|
|
3
4
|
import { CreateSchemaCommand, } from "./commands/CreateSchemaCommand";
|
|
@@ -30,439 +31,445 @@ import { UpdateDiscovererCommand, } from "./commands/UpdateDiscovererCommand";
|
|
|
30
31
|
import { UpdateRegistryCommand, } from "./commands/UpdateRegistryCommand";
|
|
31
32
|
import { UpdateSchemaCommand, } from "./commands/UpdateSchemaCommand";
|
|
32
33
|
import { SchemasClient } from "./SchemasClient";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
var Schemas = (function (_super) {
|
|
35
|
+
__extends(Schemas, _super);
|
|
36
|
+
function Schemas() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
Schemas.prototype.createDiscoverer = function (args, optionsOrCb, cb) {
|
|
40
|
+
var command = new CreateDiscovererCommand(args);
|
|
36
41
|
if (typeof optionsOrCb === "function") {
|
|
37
42
|
this.send(command, optionsOrCb);
|
|
38
43
|
}
|
|
39
44
|
else if (typeof cb === "function") {
|
|
40
45
|
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(
|
|
46
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
42
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
43
48
|
}
|
|
44
49
|
else {
|
|
45
50
|
return this.send(command, optionsOrCb);
|
|
46
51
|
}
|
|
47
|
-
}
|
|
48
|
-
createRegistry(args, optionsOrCb, cb) {
|
|
49
|
-
|
|
52
|
+
};
|
|
53
|
+
Schemas.prototype.createRegistry = function (args, optionsOrCb, cb) {
|
|
54
|
+
var command = new CreateRegistryCommand(args);
|
|
50
55
|
if (typeof optionsOrCb === "function") {
|
|
51
56
|
this.send(command, optionsOrCb);
|
|
52
57
|
}
|
|
53
58
|
else if (typeof cb === "function") {
|
|
54
59
|
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(
|
|
60
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
56
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
57
62
|
}
|
|
58
63
|
else {
|
|
59
64
|
return this.send(command, optionsOrCb);
|
|
60
65
|
}
|
|
61
|
-
}
|
|
62
|
-
createSchema(args, optionsOrCb, cb) {
|
|
63
|
-
|
|
66
|
+
};
|
|
67
|
+
Schemas.prototype.createSchema = function (args, optionsOrCb, cb) {
|
|
68
|
+
var command = new CreateSchemaCommand(args);
|
|
64
69
|
if (typeof optionsOrCb === "function") {
|
|
65
70
|
this.send(command, optionsOrCb);
|
|
66
71
|
}
|
|
67
72
|
else if (typeof cb === "function") {
|
|
68
73
|
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(
|
|
74
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
70
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
71
76
|
}
|
|
72
77
|
else {
|
|
73
78
|
return this.send(command, optionsOrCb);
|
|
74
79
|
}
|
|
75
|
-
}
|
|
76
|
-
deleteDiscoverer(args, optionsOrCb, cb) {
|
|
77
|
-
|
|
80
|
+
};
|
|
81
|
+
Schemas.prototype.deleteDiscoverer = function (args, optionsOrCb, cb) {
|
|
82
|
+
var command = new DeleteDiscovererCommand(args);
|
|
78
83
|
if (typeof optionsOrCb === "function") {
|
|
79
84
|
this.send(command, optionsOrCb);
|
|
80
85
|
}
|
|
81
86
|
else if (typeof cb === "function") {
|
|
82
87
|
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(
|
|
88
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
84
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
85
90
|
}
|
|
86
91
|
else {
|
|
87
92
|
return this.send(command, optionsOrCb);
|
|
88
93
|
}
|
|
89
|
-
}
|
|
90
|
-
deleteRegistry(args, optionsOrCb, cb) {
|
|
91
|
-
|
|
94
|
+
};
|
|
95
|
+
Schemas.prototype.deleteRegistry = function (args, optionsOrCb, cb) {
|
|
96
|
+
var command = new DeleteRegistryCommand(args);
|
|
92
97
|
if (typeof optionsOrCb === "function") {
|
|
93
98
|
this.send(command, optionsOrCb);
|
|
94
99
|
}
|
|
95
100
|
else if (typeof cb === "function") {
|
|
96
101
|
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(
|
|
102
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
98
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
99
104
|
}
|
|
100
105
|
else {
|
|
101
106
|
return this.send(command, optionsOrCb);
|
|
102
107
|
}
|
|
103
|
-
}
|
|
104
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
105
|
-
|
|
108
|
+
};
|
|
109
|
+
Schemas.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
|
|
110
|
+
var command = new DeleteResourcePolicyCommand(args);
|
|
106
111
|
if (typeof optionsOrCb === "function") {
|
|
107
112
|
this.send(command, optionsOrCb);
|
|
108
113
|
}
|
|
109
114
|
else if (typeof cb === "function") {
|
|
110
115
|
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(
|
|
116
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
112
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
113
118
|
}
|
|
114
119
|
else {
|
|
115
120
|
return this.send(command, optionsOrCb);
|
|
116
121
|
}
|
|
117
|
-
}
|
|
118
|
-
deleteSchema(args, optionsOrCb, cb) {
|
|
119
|
-
|
|
122
|
+
};
|
|
123
|
+
Schemas.prototype.deleteSchema = function (args, optionsOrCb, cb) {
|
|
124
|
+
var command = new DeleteSchemaCommand(args);
|
|
120
125
|
if (typeof optionsOrCb === "function") {
|
|
121
126
|
this.send(command, optionsOrCb);
|
|
122
127
|
}
|
|
123
128
|
else if (typeof cb === "function") {
|
|
124
129
|
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(
|
|
130
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
126
131
|
this.send(command, optionsOrCb || {}, cb);
|
|
127
132
|
}
|
|
128
133
|
else {
|
|
129
134
|
return this.send(command, optionsOrCb);
|
|
130
135
|
}
|
|
131
|
-
}
|
|
132
|
-
deleteSchemaVersion(args, optionsOrCb, cb) {
|
|
133
|
-
|
|
136
|
+
};
|
|
137
|
+
Schemas.prototype.deleteSchemaVersion = function (args, optionsOrCb, cb) {
|
|
138
|
+
var command = new DeleteSchemaVersionCommand(args);
|
|
134
139
|
if (typeof optionsOrCb === "function") {
|
|
135
140
|
this.send(command, optionsOrCb);
|
|
136
141
|
}
|
|
137
142
|
else if (typeof cb === "function") {
|
|
138
143
|
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(
|
|
144
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
140
145
|
this.send(command, optionsOrCb || {}, cb);
|
|
141
146
|
}
|
|
142
147
|
else {
|
|
143
148
|
return this.send(command, optionsOrCb);
|
|
144
149
|
}
|
|
145
|
-
}
|
|
146
|
-
describeCodeBinding(args, optionsOrCb, cb) {
|
|
147
|
-
|
|
150
|
+
};
|
|
151
|
+
Schemas.prototype.describeCodeBinding = function (args, optionsOrCb, cb) {
|
|
152
|
+
var command = new DescribeCodeBindingCommand(args);
|
|
148
153
|
if (typeof optionsOrCb === "function") {
|
|
149
154
|
this.send(command, optionsOrCb);
|
|
150
155
|
}
|
|
151
156
|
else if (typeof cb === "function") {
|
|
152
157
|
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(
|
|
158
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
154
159
|
this.send(command, optionsOrCb || {}, cb);
|
|
155
160
|
}
|
|
156
161
|
else {
|
|
157
162
|
return this.send(command, optionsOrCb);
|
|
158
163
|
}
|
|
159
|
-
}
|
|
160
|
-
describeDiscoverer(args, optionsOrCb, cb) {
|
|
161
|
-
|
|
164
|
+
};
|
|
165
|
+
Schemas.prototype.describeDiscoverer = function (args, optionsOrCb, cb) {
|
|
166
|
+
var command = new DescribeDiscovererCommand(args);
|
|
162
167
|
if (typeof optionsOrCb === "function") {
|
|
163
168
|
this.send(command, optionsOrCb);
|
|
164
169
|
}
|
|
165
170
|
else if (typeof cb === "function") {
|
|
166
171
|
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(
|
|
172
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
168
173
|
this.send(command, optionsOrCb || {}, cb);
|
|
169
174
|
}
|
|
170
175
|
else {
|
|
171
176
|
return this.send(command, optionsOrCb);
|
|
172
177
|
}
|
|
173
|
-
}
|
|
174
|
-
describeRegistry(args, optionsOrCb, cb) {
|
|
175
|
-
|
|
178
|
+
};
|
|
179
|
+
Schemas.prototype.describeRegistry = function (args, optionsOrCb, cb) {
|
|
180
|
+
var command = new DescribeRegistryCommand(args);
|
|
176
181
|
if (typeof optionsOrCb === "function") {
|
|
177
182
|
this.send(command, optionsOrCb);
|
|
178
183
|
}
|
|
179
184
|
else if (typeof cb === "function") {
|
|
180
185
|
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(
|
|
186
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
182
187
|
this.send(command, optionsOrCb || {}, cb);
|
|
183
188
|
}
|
|
184
189
|
else {
|
|
185
190
|
return this.send(command, optionsOrCb);
|
|
186
191
|
}
|
|
187
|
-
}
|
|
188
|
-
describeSchema(args, optionsOrCb, cb) {
|
|
189
|
-
|
|
192
|
+
};
|
|
193
|
+
Schemas.prototype.describeSchema = function (args, optionsOrCb, cb) {
|
|
194
|
+
var command = new DescribeSchemaCommand(args);
|
|
190
195
|
if (typeof optionsOrCb === "function") {
|
|
191
196
|
this.send(command, optionsOrCb);
|
|
192
197
|
}
|
|
193
198
|
else if (typeof cb === "function") {
|
|
194
199
|
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(
|
|
200
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
196
201
|
this.send(command, optionsOrCb || {}, cb);
|
|
197
202
|
}
|
|
198
203
|
else {
|
|
199
204
|
return this.send(command, optionsOrCb);
|
|
200
205
|
}
|
|
201
|
-
}
|
|
202
|
-
exportSchema(args, optionsOrCb, cb) {
|
|
203
|
-
|
|
206
|
+
};
|
|
207
|
+
Schemas.prototype.exportSchema = function (args, optionsOrCb, cb) {
|
|
208
|
+
var command = new ExportSchemaCommand(args);
|
|
204
209
|
if (typeof optionsOrCb === "function") {
|
|
205
210
|
this.send(command, optionsOrCb);
|
|
206
211
|
}
|
|
207
212
|
else if (typeof cb === "function") {
|
|
208
213
|
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(
|
|
214
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
210
215
|
this.send(command, optionsOrCb || {}, cb);
|
|
211
216
|
}
|
|
212
217
|
else {
|
|
213
218
|
return this.send(command, optionsOrCb);
|
|
214
219
|
}
|
|
215
|
-
}
|
|
216
|
-
getCodeBindingSource(args, optionsOrCb, cb) {
|
|
217
|
-
|
|
220
|
+
};
|
|
221
|
+
Schemas.prototype.getCodeBindingSource = function (args, optionsOrCb, cb) {
|
|
222
|
+
var command = new GetCodeBindingSourceCommand(args);
|
|
218
223
|
if (typeof optionsOrCb === "function") {
|
|
219
224
|
this.send(command, optionsOrCb);
|
|
220
225
|
}
|
|
221
226
|
else if (typeof cb === "function") {
|
|
222
227
|
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(
|
|
228
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
224
229
|
this.send(command, optionsOrCb || {}, cb);
|
|
225
230
|
}
|
|
226
231
|
else {
|
|
227
232
|
return this.send(command, optionsOrCb);
|
|
228
233
|
}
|
|
229
|
-
}
|
|
230
|
-
getDiscoveredSchema(args, optionsOrCb, cb) {
|
|
231
|
-
|
|
234
|
+
};
|
|
235
|
+
Schemas.prototype.getDiscoveredSchema = function (args, optionsOrCb, cb) {
|
|
236
|
+
var command = new GetDiscoveredSchemaCommand(args);
|
|
232
237
|
if (typeof optionsOrCb === "function") {
|
|
233
238
|
this.send(command, optionsOrCb);
|
|
234
239
|
}
|
|
235
240
|
else if (typeof cb === "function") {
|
|
236
241
|
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(
|
|
242
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
238
243
|
this.send(command, optionsOrCb || {}, cb);
|
|
239
244
|
}
|
|
240
245
|
else {
|
|
241
246
|
return this.send(command, optionsOrCb);
|
|
242
247
|
}
|
|
243
|
-
}
|
|
244
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
245
|
-
|
|
248
|
+
};
|
|
249
|
+
Schemas.prototype.getResourcePolicy = function (args, optionsOrCb, cb) {
|
|
250
|
+
var command = new GetResourcePolicyCommand(args);
|
|
246
251
|
if (typeof optionsOrCb === "function") {
|
|
247
252
|
this.send(command, optionsOrCb);
|
|
248
253
|
}
|
|
249
254
|
else if (typeof cb === "function") {
|
|
250
255
|
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(
|
|
256
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
252
257
|
this.send(command, optionsOrCb || {}, cb);
|
|
253
258
|
}
|
|
254
259
|
else {
|
|
255
260
|
return this.send(command, optionsOrCb);
|
|
256
261
|
}
|
|
257
|
-
}
|
|
258
|
-
listDiscoverers(args, optionsOrCb, cb) {
|
|
259
|
-
|
|
262
|
+
};
|
|
263
|
+
Schemas.prototype.listDiscoverers = function (args, optionsOrCb, cb) {
|
|
264
|
+
var command = new ListDiscoverersCommand(args);
|
|
260
265
|
if (typeof optionsOrCb === "function") {
|
|
261
266
|
this.send(command, optionsOrCb);
|
|
262
267
|
}
|
|
263
268
|
else if (typeof cb === "function") {
|
|
264
269
|
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(
|
|
270
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
266
271
|
this.send(command, optionsOrCb || {}, cb);
|
|
267
272
|
}
|
|
268
273
|
else {
|
|
269
274
|
return this.send(command, optionsOrCb);
|
|
270
275
|
}
|
|
271
|
-
}
|
|
272
|
-
listRegistries(args, optionsOrCb, cb) {
|
|
273
|
-
|
|
276
|
+
};
|
|
277
|
+
Schemas.prototype.listRegistries = function (args, optionsOrCb, cb) {
|
|
278
|
+
var command = new ListRegistriesCommand(args);
|
|
274
279
|
if (typeof optionsOrCb === "function") {
|
|
275
280
|
this.send(command, optionsOrCb);
|
|
276
281
|
}
|
|
277
282
|
else if (typeof cb === "function") {
|
|
278
283
|
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(
|
|
284
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
280
285
|
this.send(command, optionsOrCb || {}, cb);
|
|
281
286
|
}
|
|
282
287
|
else {
|
|
283
288
|
return this.send(command, optionsOrCb);
|
|
284
289
|
}
|
|
285
|
-
}
|
|
286
|
-
listSchemas(args, optionsOrCb, cb) {
|
|
287
|
-
|
|
290
|
+
};
|
|
291
|
+
Schemas.prototype.listSchemas = function (args, optionsOrCb, cb) {
|
|
292
|
+
var command = new ListSchemasCommand(args);
|
|
288
293
|
if (typeof optionsOrCb === "function") {
|
|
289
294
|
this.send(command, optionsOrCb);
|
|
290
295
|
}
|
|
291
296
|
else if (typeof cb === "function") {
|
|
292
297
|
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(
|
|
298
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
294
299
|
this.send(command, optionsOrCb || {}, cb);
|
|
295
300
|
}
|
|
296
301
|
else {
|
|
297
302
|
return this.send(command, optionsOrCb);
|
|
298
303
|
}
|
|
299
|
-
}
|
|
300
|
-
listSchemaVersions(args, optionsOrCb, cb) {
|
|
301
|
-
|
|
304
|
+
};
|
|
305
|
+
Schemas.prototype.listSchemaVersions = function (args, optionsOrCb, cb) {
|
|
306
|
+
var command = new ListSchemaVersionsCommand(args);
|
|
302
307
|
if (typeof optionsOrCb === "function") {
|
|
303
308
|
this.send(command, optionsOrCb);
|
|
304
309
|
}
|
|
305
310
|
else if (typeof cb === "function") {
|
|
306
311
|
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(
|
|
312
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
308
313
|
this.send(command, optionsOrCb || {}, cb);
|
|
309
314
|
}
|
|
310
315
|
else {
|
|
311
316
|
return this.send(command, optionsOrCb);
|
|
312
317
|
}
|
|
313
|
-
}
|
|
314
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
315
|
-
|
|
318
|
+
};
|
|
319
|
+
Schemas.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
320
|
+
var command = new ListTagsForResourceCommand(args);
|
|
316
321
|
if (typeof optionsOrCb === "function") {
|
|
317
322
|
this.send(command, optionsOrCb);
|
|
318
323
|
}
|
|
319
324
|
else if (typeof cb === "function") {
|
|
320
325
|
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(
|
|
326
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
322
327
|
this.send(command, optionsOrCb || {}, cb);
|
|
323
328
|
}
|
|
324
329
|
else {
|
|
325
330
|
return this.send(command, optionsOrCb);
|
|
326
331
|
}
|
|
327
|
-
}
|
|
328
|
-
putCodeBinding(args, optionsOrCb, cb) {
|
|
329
|
-
|
|
332
|
+
};
|
|
333
|
+
Schemas.prototype.putCodeBinding = function (args, optionsOrCb, cb) {
|
|
334
|
+
var command = new PutCodeBindingCommand(args);
|
|
330
335
|
if (typeof optionsOrCb === "function") {
|
|
331
336
|
this.send(command, optionsOrCb);
|
|
332
337
|
}
|
|
333
338
|
else if (typeof cb === "function") {
|
|
334
339
|
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(
|
|
340
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
336
341
|
this.send(command, optionsOrCb || {}, cb);
|
|
337
342
|
}
|
|
338
343
|
else {
|
|
339
344
|
return this.send(command, optionsOrCb);
|
|
340
345
|
}
|
|
341
|
-
}
|
|
342
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
343
|
-
|
|
346
|
+
};
|
|
347
|
+
Schemas.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
|
|
348
|
+
var command = new PutResourcePolicyCommand(args);
|
|
344
349
|
if (typeof optionsOrCb === "function") {
|
|
345
350
|
this.send(command, optionsOrCb);
|
|
346
351
|
}
|
|
347
352
|
else if (typeof cb === "function") {
|
|
348
353
|
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(
|
|
354
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
350
355
|
this.send(command, optionsOrCb || {}, cb);
|
|
351
356
|
}
|
|
352
357
|
else {
|
|
353
358
|
return this.send(command, optionsOrCb);
|
|
354
359
|
}
|
|
355
|
-
}
|
|
356
|
-
searchSchemas(args, optionsOrCb, cb) {
|
|
357
|
-
|
|
360
|
+
};
|
|
361
|
+
Schemas.prototype.searchSchemas = function (args, optionsOrCb, cb) {
|
|
362
|
+
var command = new SearchSchemasCommand(args);
|
|
358
363
|
if (typeof optionsOrCb === "function") {
|
|
359
364
|
this.send(command, optionsOrCb);
|
|
360
365
|
}
|
|
361
366
|
else if (typeof cb === "function") {
|
|
362
367
|
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(
|
|
368
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
364
369
|
this.send(command, optionsOrCb || {}, cb);
|
|
365
370
|
}
|
|
366
371
|
else {
|
|
367
372
|
return this.send(command, optionsOrCb);
|
|
368
373
|
}
|
|
369
|
-
}
|
|
370
|
-
startDiscoverer(args, optionsOrCb, cb) {
|
|
371
|
-
|
|
374
|
+
};
|
|
375
|
+
Schemas.prototype.startDiscoverer = function (args, optionsOrCb, cb) {
|
|
376
|
+
var command = new StartDiscovererCommand(args);
|
|
372
377
|
if (typeof optionsOrCb === "function") {
|
|
373
378
|
this.send(command, optionsOrCb);
|
|
374
379
|
}
|
|
375
380
|
else if (typeof cb === "function") {
|
|
376
381
|
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(
|
|
382
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
378
383
|
this.send(command, optionsOrCb || {}, cb);
|
|
379
384
|
}
|
|
380
385
|
else {
|
|
381
386
|
return this.send(command, optionsOrCb);
|
|
382
387
|
}
|
|
383
|
-
}
|
|
384
|
-
stopDiscoverer(args, optionsOrCb, cb) {
|
|
385
|
-
|
|
388
|
+
};
|
|
389
|
+
Schemas.prototype.stopDiscoverer = function (args, optionsOrCb, cb) {
|
|
390
|
+
var command = new StopDiscovererCommand(args);
|
|
386
391
|
if (typeof optionsOrCb === "function") {
|
|
387
392
|
this.send(command, optionsOrCb);
|
|
388
393
|
}
|
|
389
394
|
else if (typeof cb === "function") {
|
|
390
395
|
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(
|
|
396
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
392
397
|
this.send(command, optionsOrCb || {}, cb);
|
|
393
398
|
}
|
|
394
399
|
else {
|
|
395
400
|
return this.send(command, optionsOrCb);
|
|
396
401
|
}
|
|
397
|
-
}
|
|
398
|
-
tagResource(args, optionsOrCb, cb) {
|
|
399
|
-
|
|
402
|
+
};
|
|
403
|
+
Schemas.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
404
|
+
var command = new TagResourceCommand(args);
|
|
400
405
|
if (typeof optionsOrCb === "function") {
|
|
401
406
|
this.send(command, optionsOrCb);
|
|
402
407
|
}
|
|
403
408
|
else if (typeof cb === "function") {
|
|
404
409
|
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(
|
|
410
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
406
411
|
this.send(command, optionsOrCb || {}, cb);
|
|
407
412
|
}
|
|
408
413
|
else {
|
|
409
414
|
return this.send(command, optionsOrCb);
|
|
410
415
|
}
|
|
411
|
-
}
|
|
412
|
-
untagResource(args, optionsOrCb, cb) {
|
|
413
|
-
|
|
416
|
+
};
|
|
417
|
+
Schemas.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
418
|
+
var command = new UntagResourceCommand(args);
|
|
414
419
|
if (typeof optionsOrCb === "function") {
|
|
415
420
|
this.send(command, optionsOrCb);
|
|
416
421
|
}
|
|
417
422
|
else if (typeof cb === "function") {
|
|
418
423
|
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(
|
|
424
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
420
425
|
this.send(command, optionsOrCb || {}, cb);
|
|
421
426
|
}
|
|
422
427
|
else {
|
|
423
428
|
return this.send(command, optionsOrCb);
|
|
424
429
|
}
|
|
425
|
-
}
|
|
426
|
-
updateDiscoverer(args, optionsOrCb, cb) {
|
|
427
|
-
|
|
430
|
+
};
|
|
431
|
+
Schemas.prototype.updateDiscoverer = function (args, optionsOrCb, cb) {
|
|
432
|
+
var command = new UpdateDiscovererCommand(args);
|
|
428
433
|
if (typeof optionsOrCb === "function") {
|
|
429
434
|
this.send(command, optionsOrCb);
|
|
430
435
|
}
|
|
431
436
|
else if (typeof cb === "function") {
|
|
432
437
|
if (typeof optionsOrCb !== "object")
|
|
433
|
-
throw new Error(
|
|
438
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
434
439
|
this.send(command, optionsOrCb || {}, cb);
|
|
435
440
|
}
|
|
436
441
|
else {
|
|
437
442
|
return this.send(command, optionsOrCb);
|
|
438
443
|
}
|
|
439
|
-
}
|
|
440
|
-
updateRegistry(args, optionsOrCb, cb) {
|
|
441
|
-
|
|
444
|
+
};
|
|
445
|
+
Schemas.prototype.updateRegistry = function (args, optionsOrCb, cb) {
|
|
446
|
+
var command = new UpdateRegistryCommand(args);
|
|
442
447
|
if (typeof optionsOrCb === "function") {
|
|
443
448
|
this.send(command, optionsOrCb);
|
|
444
449
|
}
|
|
445
450
|
else if (typeof cb === "function") {
|
|
446
451
|
if (typeof optionsOrCb !== "object")
|
|
447
|
-
throw new Error(
|
|
452
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
448
453
|
this.send(command, optionsOrCb || {}, cb);
|
|
449
454
|
}
|
|
450
455
|
else {
|
|
451
456
|
return this.send(command, optionsOrCb);
|
|
452
457
|
}
|
|
453
|
-
}
|
|
454
|
-
updateSchema(args, optionsOrCb, cb) {
|
|
455
|
-
|
|
458
|
+
};
|
|
459
|
+
Schemas.prototype.updateSchema = function (args, optionsOrCb, cb) {
|
|
460
|
+
var command = new UpdateSchemaCommand(args);
|
|
456
461
|
if (typeof optionsOrCb === "function") {
|
|
457
462
|
this.send(command, optionsOrCb);
|
|
458
463
|
}
|
|
459
464
|
else if (typeof cb === "function") {
|
|
460
465
|
if (typeof optionsOrCb !== "object")
|
|
461
|
-
throw new Error(
|
|
466
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
462
467
|
this.send(command, optionsOrCb || {}, cb);
|
|
463
468
|
}
|
|
464
469
|
else {
|
|
465
470
|
return this.send(command, optionsOrCb);
|
|
466
471
|
}
|
|
467
|
-
}
|
|
468
|
-
|
|
472
|
+
};
|
|
473
|
+
return Schemas;
|
|
474
|
+
}(SchemasClient));
|
|
475
|
+
export { Schemas };
|