@aws-sdk/client-glacier 3.476.0 → 3.478.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/dist-cjs/pagination/ListJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMultipartUploadsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPartsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVaultsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +278 -501
- package/dist-es/pagination/ListJobsPaginator.js +2 -23
- package/dist-es/pagination/ListMultipartUploadsPaginator.js +2 -23
- package/dist-es/pagination/ListPartsPaginator.js +2 -23
- package/dist-es/pagination/ListVaultsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +279 -502
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMultipartUploadsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPartsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVaultsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMultipartUploadsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPartsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVaultsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListJobsCommand_1 = require("../commands/ListJobsCommand");
|
|
5
6
|
const GlacierClient_1 = require("../GlacierClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListJobsCommand_1.ListJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListJobs(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.marker = token;
|
|
15
|
-
input["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GlacierClient_1.GlacierClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Glacier | GlacierClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListJobs = paginateListJobs;
|
|
7
|
+
exports.paginateListJobs = (0, core_1.createPaginator)(GlacierClient_1.GlacierClient, ListJobsCommand_1.ListJobsCommand, "marker", "Marker", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMultipartUploads = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMultipartUploadsCommand_1 = require("../commands/ListMultipartUploadsCommand");
|
|
5
6
|
const GlacierClient_1 = require("../GlacierClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMultipartUploadsCommand_1.ListMultipartUploadsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMultipartUploads(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.marker = token;
|
|
15
|
-
input["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GlacierClient_1.GlacierClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Glacier | GlacierClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMultipartUploads = paginateListMultipartUploads;
|
|
7
|
+
exports.paginateListMultipartUploads = (0, core_1.createPaginator)(GlacierClient_1.GlacierClient, ListMultipartUploadsCommand_1.ListMultipartUploadsCommand, "marker", "Marker", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListParts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPartsCommand_1 = require("../commands/ListPartsCommand");
|
|
5
6
|
const GlacierClient_1 = require("../GlacierClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPartsCommand_1.ListPartsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListParts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.marker = token;
|
|
15
|
-
input["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GlacierClient_1.GlacierClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Glacier | GlacierClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListParts = paginateListParts;
|
|
7
|
+
exports.paginateListParts = (0, core_1.createPaginator)(GlacierClient_1.GlacierClient, ListPartsCommand_1.ListPartsCommand, "marker", "Marker", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListVaults = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListVaultsCommand_1 = require("../commands/ListVaultsCommand");
|
|
5
6
|
const GlacierClient_1 = require("../GlacierClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListVaultsCommand_1.ListVaultsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListVaults(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.marker = token;
|
|
15
|
-
input["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GlacierClient_1.GlacierClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Glacier | GlacierClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListVaults = paginateListVaults;
|
|
7
|
+
exports.paginateListVaults = (0, core_1.createPaginator)(GlacierClient_1.GlacierClient, ListVaultsCommand_1.ListVaultsCommand, "marker", "Marker", "limit");
|