@azure/arm-containerregistry 7.0.0 → 9.0.0-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/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +68 -76
- package/dist/index.js +12640 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/containerRegistryManagementClient.d.ts +29 -0
- package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -0
- package/dist-esm/src/containerRegistryManagementClient.js +36 -0
- package/dist-esm/src/containerRegistryManagementClient.js.map +1 -0
- package/dist-esm/src/containerRegistryManagementClientContext.d.ts +15 -0
- package/dist-esm/src/containerRegistryManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/containerRegistryManagementClientContext.js +48 -0
- package/dist-esm/src/containerRegistryManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +3421 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +339 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +177 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +3696 -2199
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +54 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +428 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/agentPools.d.ts +107 -0
- package/dist-esm/src/operations/agentPools.d.ts.map +1 -0
- package/dist-esm/src/operations/agentPools.js +455 -0
- package/dist-esm/src/operations/agentPools.js.map +1 -0
- package/dist-esm/src/operations/connectedRegistries.d.ts +115 -0
- package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -0
- package/dist-esm/src/operations/connectedRegistries.js +503 -0
- package/dist-esm/src/operations/connectedRegistries.js.map +1 -0
- package/dist-esm/src/operations/exportPipelines.d.ts +81 -0
- package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -0
- package/dist-esm/src/operations/exportPipelines.js +316 -0
- package/dist-esm/src/operations/exportPipelines.js.map +1 -0
- package/dist-esm/src/operations/importPipelines.d.ts +81 -0
- package/dist-esm/src/operations/importPipelines.d.ts.map +1 -0
- package/dist-esm/src/operations/importPipelines.js +316 -0
- package/dist-esm/src/operations/importPipelines.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +16 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +23 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +114 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/pipelineRuns.d.ts +81 -0
- package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -0
- package/dist-esm/src/operations/pipelineRuns.js +316 -0
- package/dist-esm/src/operations/pipelineRuns.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +326 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/registries.d.ts +217 -0
- package/dist-esm/src/operations/registries.d.ts.map +1 -0
- package/dist-esm/src/operations/registries.js +956 -0
- package/dist-esm/src/operations/registries.js.map +1 -0
- package/dist-esm/src/operations/replications.d.ts +99 -0
- package/dist-esm/src/operations/replications.d.ts.map +1 -0
- package/dist-esm/src/operations/replications.js +405 -0
- package/dist-esm/src/operations/replications.js.map +1 -0
- package/dist-esm/src/operations/runs.d.ts +89 -0
- package/dist-esm/src/operations/runs.d.ts.map +1 -0
- package/dist-esm/src/operations/runs.js +363 -0
- package/dist-esm/src/operations/runs.js.map +1 -0
- package/dist-esm/src/operations/scopeMaps.d.ts +99 -0
- package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -0
- package/dist-esm/src/operations/scopeMaps.js +405 -0
- package/dist-esm/src/operations/scopeMaps.js.map +1 -0
- package/dist-esm/src/operations/taskRuns.d.ts +107 -0
- package/dist-esm/src/operations/taskRuns.d.ts.map +1 -0
- package/dist-esm/src/operations/taskRuns.js +455 -0
- package/dist-esm/src/operations/taskRuns.js.map +1 -0
- package/dist-esm/src/operations/tasks.d.ts +107 -0
- package/dist-esm/src/operations/tasks.d.ts.map +1 -0
- package/dist-esm/src/operations/tasks.js +461 -0
- package/dist-esm/src/operations/tasks.js.map +1 -0
- package/dist-esm/src/operations/tokens.d.ts +99 -0
- package/dist-esm/src/operations/tokens.d.ts.map +1 -0
- package/dist-esm/src/operations/tokens.js +405 -0
- package/dist-esm/src/operations/tokens.js.map +1 -0
- package/dist-esm/src/operations/webhooks.d.ts +142 -0
- package/dist-esm/src/operations/webhooks.d.ts.map +1 -0
- package/dist-esm/src/operations/webhooks.js +574 -0
- package/dist-esm/src/operations/webhooks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/agentPools.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/agentPools.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/agentPools.js +9 -0
- package/dist-esm/src/operationsInterfaces/agentPools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/connectedRegistries.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/connectedRegistries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/connectedRegistries.js +9 -0
- package/dist-esm/src/operationsInterfaces/connectedRegistries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/exportPipelines.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/exportPipelines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/exportPipelines.js +9 -0
- package/dist-esm/src/operationsInterfaces/exportPipelines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/importPipelines.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/importPipelines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/importPipelines.js +9 -0
- package/dist-esm/src/operationsInterfaces/importPipelines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +23 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pipelineRuns.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/pipelineRuns.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/pipelineRuns.js +9 -0
- package/dist-esm/src/operationsInterfaces/pipelineRuns.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/registries.d.ts +163 -0
- package/dist-esm/src/operationsInterfaces/registries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/registries.js +9 -0
- package/dist-esm/src/operationsInterfaces/registries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replications.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/replications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replications.js +9 -0
- package/dist-esm/src/operationsInterfaces/replications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/runs.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/runs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/runs.js +9 -0
- package/dist-esm/src/operationsInterfaces/runs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scopeMaps.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/scopeMaps.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scopeMaps.js +9 -0
- package/dist-esm/src/operationsInterfaces/scopeMaps.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/taskRuns.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/taskRuns.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/taskRuns.js +9 -0
- package/dist-esm/src/operationsInterfaces/taskRuns.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tasks.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tokens.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/tokens.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tokens.js +9 -0
- package/dist-esm/src/operationsInterfaces/tokens.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/webhooks.d.ts +98 -0
- package/dist-esm/src/operationsInterfaces/webhooks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/webhooks.js +9 -0
- package/dist-esm/src/operationsInterfaces/webhooks.js.map +1 -0
- package/dist-esm/test/containerregistry_examples.d.ts +2 -0
- package/dist-esm/test/containerregistry_examples.d.ts.map +1 -0
- package/dist-esm/test/containerregistry_examples.js +326 -0
- package/dist-esm/test/containerregistry_examples.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-containerregistry.api.md +2912 -0
- package/rollup.config.js +181 -30
- package/src/containerRegistryManagementClient.ts +78 -42
- package/src/containerRegistryManagementClientContext.ts +45 -37
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3217 -3457
- package/src/models/mappers.ts +3831 -2214
- package/src/models/parameters.ts +379 -81
- package/src/operations/agentPools.ts +646 -0
- package/src/operations/connectedRegistries.ts +718 -0
- package/src/operations/exportPipelines.ts +449 -0
- package/src/operations/importPipelines.ts +449 -0
- package/src/operations/index.ts +12 -7
- package/src/operations/operations.ts +84 -76
- package/src/operations/pipelineRuns.ts +449 -0
- package/src/operations/privateEndpointConnections.ts +460 -0
- package/src/operations/registries.ts +1031 -653
- package/src/operations/replications.ts +433 -251
- package/src/operations/runs.ts +356 -243
- package/src/operations/scopeMaps.ts +433 -251
- package/src/operations/taskRuns.ts +646 -0
- package/src/operations/tasks.ts +459 -277
- package/src/operations/tokens.ts +427 -251
- package/src/operations/webhooks.ts +614 -419
- package/src/operationsInterfaces/agentPools.ts +162 -0
- package/src/operationsInterfaces/connectedRegistries.ts +174 -0
- package/src/operationsInterfaces/exportPipelines.ts +109 -0
- package/src/operationsInterfaces/importPipelines.ts +109 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +13 -8
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/pipelineRuns.ts +109 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/registries.ts +317 -0
- package/src/operationsInterfaces/replications.ts +147 -0
- package/src/operationsInterfaces/runs.ts +122 -0
- package/src/operationsInterfaces/scopeMaps.ts +147 -0
- package/src/operationsInterfaces/taskRuns.ts +162 -0
- package/src/operationsInterfaces/tasks.ts +156 -0
- package/src/operationsInterfaces/tokens.ts +141 -0
- package/src/operationsInterfaces/webhooks.ts +193 -0
- package/tsconfig.json +4 -4
- package/types/arm-containerregistry.d.ts +4991 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-containerregistry.js +0 -7529
- package/dist/arm-containerregistry.js.map +0 -1
- package/dist/arm-containerregistry.min.js +0 -1
- package/dist/arm-containerregistry.min.js.map +0 -1
- package/esm/containerRegistryManagementClient.d.ts +0 -25
- package/esm/containerRegistryManagementClient.d.ts.map +0 -1
- package/esm/containerRegistryManagementClient.js +0 -40
- package/esm/containerRegistryManagementClient.js.map +0 -1
- package/esm/containerRegistryManagementClientContext.d.ts +0 -15
- package/esm/containerRegistryManagementClientContext.d.ts.map +0 -1
- package/esm/containerRegistryManagementClientContext.js +0 -55
- package/esm/containerRegistryManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -3884
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -129
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -214
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/registriesMappers.d.ts +0 -2
- package/esm/models/registriesMappers.d.ts.map +0 -1
- package/esm/models/registriesMappers.js +0 -9
- package/esm/models/registriesMappers.js.map +0 -1
- package/esm/models/replicationsMappers.d.ts +0 -2
- package/esm/models/replicationsMappers.d.ts.map +0 -1
- package/esm/models/replicationsMappers.js +0 -9
- package/esm/models/replicationsMappers.js.map +0 -1
- package/esm/models/runsMappers.d.ts +0 -2
- package/esm/models/runsMappers.d.ts.map +0 -1
- package/esm/models/runsMappers.js +0 -9
- package/esm/models/runsMappers.js.map +0 -1
- package/esm/models/scopeMapsMappers.d.ts +0 -2
- package/esm/models/scopeMapsMappers.d.ts.map +0 -1
- package/esm/models/scopeMapsMappers.js +0 -9
- package/esm/models/scopeMapsMappers.js.map +0 -1
- package/esm/models/tasksMappers.d.ts +0 -2
- package/esm/models/tasksMappers.d.ts.map +0 -1
- package/esm/models/tasksMappers.js +0 -9
- package/esm/models/tasksMappers.js.map +0 -1
- package/esm/models/tokensMappers.d.ts +0 -2
- package/esm/models/tokensMappers.d.ts.map +0 -1
- package/esm/models/tokensMappers.js +0 -9
- package/esm/models/tokensMappers.js.map +0 -1
- package/esm/models/webhooksMappers.d.ts +0 -2
- package/esm/models/webhooksMappers.d.ts.map +0 -1
- package/esm/models/webhooksMappers.js +0 -9
- package/esm/models/webhooksMappers.js.map +0 -1
- package/esm/operations/index.d.ts +0 -9
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/registries.d.ts +0 -319
- package/esm/operations/registries.d.ts.map +0 -1
- package/esm/operations/registries.js +0 -664
- package/esm/operations/registries.js.map +0 -1
- package/esm/operations/replications.d.ts +0 -135
- package/esm/operations/replications.d.ts.map +0 -1
- package/esm/operations/replications.js +0 -297
- package/esm/operations/replications.js.map +0 -1
- package/esm/operations/runs.d.ts +0 -139
- package/esm/operations/runs.d.ts.map +0 -1
- package/esm/operations/runs.js +0 -268
- package/esm/operations/runs.js.map +0 -1
- package/esm/operations/scopeMaps.d.ts +0 -135
- package/esm/operations/scopeMaps.d.ts.map +0 -1
- package/esm/operations/scopeMaps.js +0 -297
- package/esm/operations/scopeMaps.js.map +0 -1
- package/esm/operations/tasks.d.ts +0 -159
- package/esm/operations/tasks.d.ts.map +0 -1
- package/esm/operations/tasks.js +0 -330
- package/esm/operations/tasks.js.map +0 -1
- package/esm/operations/tokens.d.ts +0 -135
- package/esm/operations/tokens.d.ts.map +0 -1
- package/esm/operations/tokens.js +0 -297
- package/esm/operations/tokens.js.map +0 -1
- package/esm/operations/webhooks.d.ts +0 -225
- package/esm/operations/webhooks.d.ts.map +0 -1
- package/esm/operations/webhooks.js +0 -422
- package/esm/operations/webhooks.js.map +0 -1
- package/src/models/operationsMappers.ts +0 -17
- package/src/models/registriesMappers.ts +0 -81
- package/src/models/replicationsMappers.ts +0 -62
- package/src/models/runsMappers.ts +0 -63
- package/src/models/scopeMapsMappers.ts +0 -62
- package/src/models/tasksMappers.ts +0 -73
- package/src/models/tokensMappers.ts +0 -62
- package/src/models/webhooksMappers.ts +0 -74
@@ -0,0 +1,956 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
13
|
+
import { LroImpl } from "../lroImpl";
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
15
|
+
/** Class containing Registries operations. */
|
16
|
+
export class RegistriesImpl {
|
17
|
+
/**
|
18
|
+
* Initialize a new instance of the class Registries class.
|
19
|
+
* @param client Reference to the service client
|
20
|
+
*/
|
21
|
+
constructor(client) {
|
22
|
+
this.client = client;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* Lists all the container registries under the specified resource group.
|
26
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
27
|
+
* @param options The options parameters.
|
28
|
+
*/
|
29
|
+
listByResourceGroup(resourceGroupName, options) {
|
30
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
31
|
+
return {
|
32
|
+
next() {
|
33
|
+
return iter.next();
|
34
|
+
},
|
35
|
+
[Symbol.asyncIterator]() {
|
36
|
+
return this;
|
37
|
+
},
|
38
|
+
byPage: () => {
|
39
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
40
|
+
}
|
41
|
+
};
|
42
|
+
}
|
43
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
44
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
45
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
46
|
+
yield yield __await(result.value || []);
|
47
|
+
let continuationToken = result.nextLink;
|
48
|
+
while (continuationToken) {
|
49
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
50
|
+
continuationToken = result.nextLink;
|
51
|
+
yield yield __await(result.value || []);
|
52
|
+
}
|
53
|
+
});
|
54
|
+
}
|
55
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
56
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
57
|
+
var e_1, _a;
|
58
|
+
try {
|
59
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
60
|
+
const page = _c.value;
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
62
|
+
}
|
63
|
+
}
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
65
|
+
finally {
|
66
|
+
try {
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
68
|
+
}
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
70
|
+
}
|
71
|
+
});
|
72
|
+
}
|
73
|
+
/**
|
74
|
+
* Lists all the container registries under the specified subscription.
|
75
|
+
* @param options The options parameters.
|
76
|
+
*/
|
77
|
+
list(options) {
|
78
|
+
const iter = this.listPagingAll(options);
|
79
|
+
return {
|
80
|
+
next() {
|
81
|
+
return iter.next();
|
82
|
+
},
|
83
|
+
[Symbol.asyncIterator]() {
|
84
|
+
return this;
|
85
|
+
},
|
86
|
+
byPage: () => {
|
87
|
+
return this.listPagingPage(options);
|
88
|
+
}
|
89
|
+
};
|
90
|
+
}
|
91
|
+
listPagingPage(options) {
|
92
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
93
|
+
let result = yield __await(this._list(options));
|
94
|
+
yield yield __await(result.value || []);
|
95
|
+
let continuationToken = result.nextLink;
|
96
|
+
while (continuationToken) {
|
97
|
+
result = yield __await(this._listNext(continuationToken, options));
|
98
|
+
continuationToken = result.nextLink;
|
99
|
+
yield yield __await(result.value || []);
|
100
|
+
}
|
101
|
+
});
|
102
|
+
}
|
103
|
+
listPagingAll(options) {
|
104
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
105
|
+
var e_2, _a;
|
106
|
+
try {
|
107
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
108
|
+
const page = _c.value;
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
110
|
+
}
|
111
|
+
}
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
113
|
+
finally {
|
114
|
+
try {
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
116
|
+
}
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* Lists the private link resources for a container registry.
|
123
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
124
|
+
* @param registryName The name of the container registry.
|
125
|
+
* @param options The options parameters.
|
126
|
+
*/
|
127
|
+
listPrivateLinkResources(resourceGroupName, registryName, options) {
|
128
|
+
const iter = this.listPrivateLinkResourcesPagingAll(resourceGroupName, registryName, options);
|
129
|
+
return {
|
130
|
+
next() {
|
131
|
+
return iter.next();
|
132
|
+
},
|
133
|
+
[Symbol.asyncIterator]() {
|
134
|
+
return this;
|
135
|
+
},
|
136
|
+
byPage: () => {
|
137
|
+
return this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options);
|
138
|
+
}
|
139
|
+
};
|
140
|
+
}
|
141
|
+
listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options) {
|
142
|
+
return __asyncGenerator(this, arguments, function* listPrivateLinkResourcesPagingPage_1() {
|
143
|
+
let result = yield __await(this._listPrivateLinkResources(resourceGroupName, registryName, options));
|
144
|
+
yield yield __await(result.value || []);
|
145
|
+
let continuationToken = result.nextLink;
|
146
|
+
while (continuationToken) {
|
147
|
+
result = yield __await(this._listPrivateLinkResourcesNext(resourceGroupName, registryName, continuationToken, options));
|
148
|
+
continuationToken = result.nextLink;
|
149
|
+
yield yield __await(result.value || []);
|
150
|
+
}
|
151
|
+
});
|
152
|
+
}
|
153
|
+
listPrivateLinkResourcesPagingAll(resourceGroupName, registryName, options) {
|
154
|
+
return __asyncGenerator(this, arguments, function* listPrivateLinkResourcesPagingAll_1() {
|
155
|
+
var e_3, _a;
|
156
|
+
try {
|
157
|
+
for (var _b = __asyncValues(this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
158
|
+
const page = _c.value;
|
159
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
160
|
+
}
|
161
|
+
}
|
162
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
163
|
+
finally {
|
164
|
+
try {
|
165
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
166
|
+
}
|
167
|
+
finally { if (e_3) throw e_3.error; }
|
168
|
+
}
|
169
|
+
});
|
170
|
+
}
|
171
|
+
/**
|
172
|
+
* Copies an image to this container registry from the specified container registry.
|
173
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
174
|
+
* @param registryName The name of the container registry.
|
175
|
+
* @param parameters The parameters specifying the image to copy and the source container registry.
|
176
|
+
* @param options The options parameters.
|
177
|
+
*/
|
178
|
+
beginImportImage(resourceGroupName, registryName, parameters, options) {
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
180
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
181
|
+
return this.client.sendOperationRequest(args, spec);
|
182
|
+
});
|
183
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
184
|
+
var _a;
|
185
|
+
let currentRawResponse = undefined;
|
186
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
187
|
+
const callback = (rawResponse, flatResponse) => {
|
188
|
+
currentRawResponse = rawResponse;
|
189
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
190
|
+
};
|
191
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
192
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
193
|
+
return {
|
194
|
+
flatResponse,
|
195
|
+
rawResponse: {
|
196
|
+
statusCode: currentRawResponse.status,
|
197
|
+
body: currentRawResponse.parsedBody,
|
198
|
+
headers: currentRawResponse.headers.toJSON()
|
199
|
+
}
|
200
|
+
};
|
201
|
+
});
|
202
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, parameters, options }, importImageOperationSpec);
|
203
|
+
return new LroEngine(lro, {
|
204
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
205
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
206
|
+
});
|
207
|
+
});
|
208
|
+
}
|
209
|
+
/**
|
210
|
+
* Copies an image to this container registry from the specified container registry.
|
211
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
212
|
+
* @param registryName The name of the container registry.
|
213
|
+
* @param parameters The parameters specifying the image to copy and the source container registry.
|
214
|
+
* @param options The options parameters.
|
215
|
+
*/
|
216
|
+
beginImportImageAndWait(resourceGroupName, registryName, parameters, options) {
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
218
|
+
const poller = yield this.beginImportImage(resourceGroupName, registryName, parameters, options);
|
219
|
+
return poller.pollUntilDone();
|
220
|
+
});
|
221
|
+
}
|
222
|
+
/**
|
223
|
+
* Checks whether the container registry name is available for use. The name must contain only
|
224
|
+
* alphanumeric characters, be globally unique, and between 5 and 50 characters in length.
|
225
|
+
* @param registryNameCheckRequest The object containing information for the availability request.
|
226
|
+
* @param options The options parameters.
|
227
|
+
*/
|
228
|
+
checkNameAvailability(registryNameCheckRequest, options) {
|
229
|
+
return this.client.sendOperationRequest({ registryNameCheckRequest, options }, checkNameAvailabilityOperationSpec);
|
230
|
+
}
|
231
|
+
/**
|
232
|
+
* Gets the properties of the specified container registry.
|
233
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
234
|
+
* @param registryName The name of the container registry.
|
235
|
+
* @param options The options parameters.
|
236
|
+
*/
|
237
|
+
get(resourceGroupName, registryName, options) {
|
238
|
+
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, getOperationSpec);
|
239
|
+
}
|
240
|
+
/**
|
241
|
+
* Creates a container registry with the specified parameters.
|
242
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
243
|
+
* @param registryName The name of the container registry.
|
244
|
+
* @param registry The parameters for creating a container registry.
|
245
|
+
* @param options The options parameters.
|
246
|
+
*/
|
247
|
+
beginCreate(resourceGroupName, registryName, registry, options) {
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
249
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
250
|
+
return this.client.sendOperationRequest(args, spec);
|
251
|
+
});
|
252
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
253
|
+
var _a;
|
254
|
+
let currentRawResponse = undefined;
|
255
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
256
|
+
const callback = (rawResponse, flatResponse) => {
|
257
|
+
currentRawResponse = rawResponse;
|
258
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
259
|
+
};
|
260
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
261
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
262
|
+
return {
|
263
|
+
flatResponse,
|
264
|
+
rawResponse: {
|
265
|
+
statusCode: currentRawResponse.status,
|
266
|
+
body: currentRawResponse.parsedBody,
|
267
|
+
headers: currentRawResponse.headers.toJSON()
|
268
|
+
}
|
269
|
+
};
|
270
|
+
});
|
271
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, registry, options }, createOperationSpec);
|
272
|
+
return new LroEngine(lro, {
|
273
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
275
|
+
});
|
276
|
+
});
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* Creates a container registry with the specified parameters.
|
280
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
281
|
+
* @param registryName The name of the container registry.
|
282
|
+
* @param registry The parameters for creating a container registry.
|
283
|
+
* @param options The options parameters.
|
284
|
+
*/
|
285
|
+
beginCreateAndWait(resourceGroupName, registryName, registry, options) {
|
286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
287
|
+
const poller = yield this.beginCreate(resourceGroupName, registryName, registry, options);
|
288
|
+
return poller.pollUntilDone();
|
289
|
+
});
|
290
|
+
}
|
291
|
+
/**
|
292
|
+
* Deletes a container registry.
|
293
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
294
|
+
* @param registryName The name of the container registry.
|
295
|
+
* @param options The options parameters.
|
296
|
+
*/
|
297
|
+
beginDelete(resourceGroupName, registryName, options) {
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
299
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
300
|
+
return this.client.sendOperationRequest(args, spec);
|
301
|
+
});
|
302
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
303
|
+
var _a;
|
304
|
+
let currentRawResponse = undefined;
|
305
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
306
|
+
const callback = (rawResponse, flatResponse) => {
|
307
|
+
currentRawResponse = rawResponse;
|
308
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
309
|
+
};
|
310
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
311
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
312
|
+
return {
|
313
|
+
flatResponse,
|
314
|
+
rawResponse: {
|
315
|
+
statusCode: currentRawResponse.status,
|
316
|
+
body: currentRawResponse.parsedBody,
|
317
|
+
headers: currentRawResponse.headers.toJSON()
|
318
|
+
}
|
319
|
+
};
|
320
|
+
});
|
321
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, options }, deleteOperationSpec);
|
322
|
+
return new LroEngine(lro, {
|
323
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
324
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
325
|
+
});
|
326
|
+
});
|
327
|
+
}
|
328
|
+
/**
|
329
|
+
* Deletes a container registry.
|
330
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
331
|
+
* @param registryName The name of the container registry.
|
332
|
+
* @param options The options parameters.
|
333
|
+
*/
|
334
|
+
beginDeleteAndWait(resourceGroupName, registryName, options) {
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
336
|
+
const poller = yield this.beginDelete(resourceGroupName, registryName, options);
|
337
|
+
return poller.pollUntilDone();
|
338
|
+
});
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* Updates a container registry with the specified parameters.
|
342
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
343
|
+
* @param registryName The name of the container registry.
|
344
|
+
* @param registryUpdateParameters The parameters for updating a container registry.
|
345
|
+
* @param options The options parameters.
|
346
|
+
*/
|
347
|
+
beginUpdate(resourceGroupName, registryName, registryUpdateParameters, options) {
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
349
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
350
|
+
return this.client.sendOperationRequest(args, spec);
|
351
|
+
});
|
352
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
353
|
+
var _a;
|
354
|
+
let currentRawResponse = undefined;
|
355
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
356
|
+
const callback = (rawResponse, flatResponse) => {
|
357
|
+
currentRawResponse = rawResponse;
|
358
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
359
|
+
};
|
360
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
361
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
362
|
+
return {
|
363
|
+
flatResponse,
|
364
|
+
rawResponse: {
|
365
|
+
statusCode: currentRawResponse.status,
|
366
|
+
body: currentRawResponse.parsedBody,
|
367
|
+
headers: currentRawResponse.headers.toJSON()
|
368
|
+
}
|
369
|
+
};
|
370
|
+
});
|
371
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, registryUpdateParameters, options }, updateOperationSpec);
|
372
|
+
return new LroEngine(lro, {
|
373
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
374
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
375
|
+
});
|
376
|
+
});
|
377
|
+
}
|
378
|
+
/**
|
379
|
+
* Updates a container registry with the specified parameters.
|
380
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
381
|
+
* @param registryName The name of the container registry.
|
382
|
+
* @param registryUpdateParameters The parameters for updating a container registry.
|
383
|
+
* @param options The options parameters.
|
384
|
+
*/
|
385
|
+
beginUpdateAndWait(resourceGroupName, registryName, registryUpdateParameters, options) {
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
387
|
+
const poller = yield this.beginUpdate(resourceGroupName, registryName, registryUpdateParameters, options);
|
388
|
+
return poller.pollUntilDone();
|
389
|
+
});
|
390
|
+
}
|
391
|
+
/**
|
392
|
+
* Lists all the container registries under the specified resource group.
|
393
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
394
|
+
* @param options The options parameters.
|
395
|
+
*/
|
396
|
+
_listByResourceGroup(resourceGroupName, options) {
|
397
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
398
|
+
}
|
399
|
+
/**
|
400
|
+
* Lists all the container registries under the specified subscription.
|
401
|
+
* @param options The options parameters.
|
402
|
+
*/
|
403
|
+
_list(options) {
|
404
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
405
|
+
}
|
406
|
+
/**
|
407
|
+
* Lists the login credentials for the specified container registry.
|
408
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
409
|
+
* @param registryName The name of the container registry.
|
410
|
+
* @param options The options parameters.
|
411
|
+
*/
|
412
|
+
listCredentials(resourceGroupName, registryName, options) {
|
413
|
+
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listCredentialsOperationSpec);
|
414
|
+
}
|
415
|
+
/**
|
416
|
+
* Regenerates one of the login credentials for the specified container registry.
|
417
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
418
|
+
* @param registryName The name of the container registry.
|
419
|
+
* @param regenerateCredentialParameters Specifies name of the password which should be regenerated --
|
420
|
+
* password or password2.
|
421
|
+
* @param options The options parameters.
|
422
|
+
*/
|
423
|
+
regenerateCredential(resourceGroupName, registryName, regenerateCredentialParameters, options) {
|
424
|
+
return this.client.sendOperationRequest({
|
425
|
+
resourceGroupName,
|
426
|
+
registryName,
|
427
|
+
regenerateCredentialParameters,
|
428
|
+
options
|
429
|
+
}, regenerateCredentialOperationSpec);
|
430
|
+
}
|
431
|
+
/**
|
432
|
+
* Gets the quota usages for the specified container registry.
|
433
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
434
|
+
* @param registryName The name of the container registry.
|
435
|
+
* @param options The options parameters.
|
436
|
+
*/
|
437
|
+
listUsages(resourceGroupName, registryName, options) {
|
438
|
+
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listUsagesOperationSpec);
|
439
|
+
}
|
440
|
+
/**
|
441
|
+
* Lists the private link resources for a container registry.
|
442
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
443
|
+
* @param registryName The name of the container registry.
|
444
|
+
* @param options The options parameters.
|
445
|
+
*/
|
446
|
+
_listPrivateLinkResources(resourceGroupName, registryName, options) {
|
447
|
+
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listPrivateLinkResourcesOperationSpec);
|
448
|
+
}
|
449
|
+
/**
|
450
|
+
* Generate keys for a token of a specified container registry.
|
451
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
452
|
+
* @param registryName The name of the container registry.
|
453
|
+
* @param generateCredentialsParameters The parameters for generating credentials.
|
454
|
+
* @param options The options parameters.
|
455
|
+
*/
|
456
|
+
beginGenerateCredentials(resourceGroupName, registryName, generateCredentialsParameters, options) {
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
458
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
459
|
+
return this.client.sendOperationRequest(args, spec);
|
460
|
+
});
|
461
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
462
|
+
var _a;
|
463
|
+
let currentRawResponse = undefined;
|
464
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
465
|
+
const callback = (rawResponse, flatResponse) => {
|
466
|
+
currentRawResponse = rawResponse;
|
467
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
468
|
+
};
|
469
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
470
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
471
|
+
return {
|
472
|
+
flatResponse,
|
473
|
+
rawResponse: {
|
474
|
+
statusCode: currentRawResponse.status,
|
475
|
+
body: currentRawResponse.parsedBody,
|
476
|
+
headers: currentRawResponse.headers.toJSON()
|
477
|
+
}
|
478
|
+
};
|
479
|
+
});
|
480
|
+
const lro = new LroImpl(sendOperation, {
|
481
|
+
resourceGroupName,
|
482
|
+
registryName,
|
483
|
+
generateCredentialsParameters,
|
484
|
+
options
|
485
|
+
}, generateCredentialsOperationSpec);
|
486
|
+
return new LroEngine(lro, {
|
487
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
488
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
489
|
+
});
|
490
|
+
});
|
491
|
+
}
|
492
|
+
/**
|
493
|
+
* Generate keys for a token of a specified container registry.
|
494
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
495
|
+
* @param registryName The name of the container registry.
|
496
|
+
* @param generateCredentialsParameters The parameters for generating credentials.
|
497
|
+
* @param options The options parameters.
|
498
|
+
*/
|
499
|
+
beginGenerateCredentialsAndWait(resourceGroupName, registryName, generateCredentialsParameters, options) {
|
500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
501
|
+
const poller = yield this.beginGenerateCredentials(resourceGroupName, registryName, generateCredentialsParameters, options);
|
502
|
+
return poller.pollUntilDone();
|
503
|
+
});
|
504
|
+
}
|
505
|
+
/**
|
506
|
+
* Schedules a new run based on the request parameters and add it to the run queue.
|
507
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
508
|
+
* @param registryName The name of the container registry.
|
509
|
+
* @param runRequest The parameters of a run that needs to scheduled.
|
510
|
+
* @param options The options parameters.
|
511
|
+
*/
|
512
|
+
beginScheduleRun(resourceGroupName, registryName, runRequest, options) {
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
514
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
515
|
+
return this.client.sendOperationRequest(args, spec);
|
516
|
+
});
|
517
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
518
|
+
var _a;
|
519
|
+
let currentRawResponse = undefined;
|
520
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
521
|
+
const callback = (rawResponse, flatResponse) => {
|
522
|
+
currentRawResponse = rawResponse;
|
523
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
524
|
+
};
|
525
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
526
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
527
|
+
return {
|
528
|
+
flatResponse,
|
529
|
+
rawResponse: {
|
530
|
+
statusCode: currentRawResponse.status,
|
531
|
+
body: currentRawResponse.parsedBody,
|
532
|
+
headers: currentRawResponse.headers.toJSON()
|
533
|
+
}
|
534
|
+
};
|
535
|
+
});
|
536
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, runRequest, options }, scheduleRunOperationSpec);
|
537
|
+
return new LroEngine(lro, {
|
538
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
539
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
540
|
+
});
|
541
|
+
});
|
542
|
+
}
|
543
|
+
/**
|
544
|
+
* Schedules a new run based on the request parameters and add it to the run queue.
|
545
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
546
|
+
* @param registryName The name of the container registry.
|
547
|
+
* @param runRequest The parameters of a run that needs to scheduled.
|
548
|
+
* @param options The options parameters.
|
549
|
+
*/
|
550
|
+
beginScheduleRunAndWait(resourceGroupName, registryName, runRequest, options) {
|
551
|
+
return __awaiter(this, void 0, void 0, function* () {
|
552
|
+
const poller = yield this.beginScheduleRun(resourceGroupName, registryName, runRequest, options);
|
553
|
+
return poller.pollUntilDone();
|
554
|
+
});
|
555
|
+
}
|
556
|
+
/**
|
557
|
+
* Get the upload location for the user to be able to upload the source.
|
558
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
559
|
+
* @param registryName The name of the container registry.
|
560
|
+
* @param options The options parameters.
|
561
|
+
*/
|
562
|
+
getBuildSourceUploadUrl(resourceGroupName, registryName, options) {
|
563
|
+
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, getBuildSourceUploadUrlOperationSpec);
|
564
|
+
}
|
565
|
+
/**
|
566
|
+
* ListByResourceGroupNext
|
567
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
568
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
569
|
+
* @param options The options parameters.
|
570
|
+
*/
|
571
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
572
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
573
|
+
}
|
574
|
+
/**
|
575
|
+
* ListNext
|
576
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
577
|
+
* @param options The options parameters.
|
578
|
+
*/
|
579
|
+
_listNext(nextLink, options) {
|
580
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
581
|
+
}
|
582
|
+
/**
|
583
|
+
* ListPrivateLinkResourcesNext
|
584
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
585
|
+
* @param registryName The name of the container registry.
|
586
|
+
* @param nextLink The nextLink from the previous successful call to the ListPrivateLinkResources
|
587
|
+
* method.
|
588
|
+
* @param options The options parameters.
|
589
|
+
*/
|
590
|
+
_listPrivateLinkResourcesNext(resourceGroupName, registryName, nextLink, options) {
|
591
|
+
return this.client.sendOperationRequest({ resourceGroupName, registryName, nextLink, options }, listPrivateLinkResourcesNextOperationSpec);
|
592
|
+
}
|
593
|
+
}
|
594
|
+
// Operation Specifications
|
595
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
596
|
+
const importImageOperationSpec = {
|
597
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importImage",
|
598
|
+
httpMethod: "POST",
|
599
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
600
|
+
requestBody: Parameters.parameters,
|
601
|
+
queryParameters: [Parameters.apiVersion],
|
602
|
+
urlParameters: [
|
603
|
+
Parameters.$host,
|
604
|
+
Parameters.subscriptionId,
|
605
|
+
Parameters.resourceGroupName,
|
606
|
+
Parameters.registryName
|
607
|
+
],
|
608
|
+
headerParameters: [Parameters.contentType],
|
609
|
+
mediaType: "json",
|
610
|
+
serializer
|
611
|
+
};
|
612
|
+
const checkNameAvailabilityOperationSpec = {
|
613
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability",
|
614
|
+
httpMethod: "POST",
|
615
|
+
responses: {
|
616
|
+
200: {
|
617
|
+
bodyMapper: Mappers.RegistryNameStatus
|
618
|
+
}
|
619
|
+
},
|
620
|
+
requestBody: Parameters.registryNameCheckRequest,
|
621
|
+
queryParameters: [Parameters.apiVersion],
|
622
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
623
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
624
|
+
mediaType: "json",
|
625
|
+
serializer
|
626
|
+
};
|
627
|
+
const getOperationSpec = {
|
628
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
629
|
+
httpMethod: "GET",
|
630
|
+
responses: {
|
631
|
+
200: {
|
632
|
+
bodyMapper: Mappers.Registry
|
633
|
+
}
|
634
|
+
},
|
635
|
+
queryParameters: [Parameters.apiVersion],
|
636
|
+
urlParameters: [
|
637
|
+
Parameters.$host,
|
638
|
+
Parameters.subscriptionId,
|
639
|
+
Parameters.resourceGroupName,
|
640
|
+
Parameters.registryName
|
641
|
+
],
|
642
|
+
headerParameters: [Parameters.accept],
|
643
|
+
serializer
|
644
|
+
};
|
645
|
+
const createOperationSpec = {
|
646
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
647
|
+
httpMethod: "PUT",
|
648
|
+
responses: {
|
649
|
+
200: {
|
650
|
+
bodyMapper: Mappers.Registry
|
651
|
+
},
|
652
|
+
201: {
|
653
|
+
bodyMapper: Mappers.Registry
|
654
|
+
},
|
655
|
+
202: {
|
656
|
+
bodyMapper: Mappers.Registry
|
657
|
+
},
|
658
|
+
204: {
|
659
|
+
bodyMapper: Mappers.Registry
|
660
|
+
}
|
661
|
+
},
|
662
|
+
requestBody: Parameters.registry,
|
663
|
+
queryParameters: [Parameters.apiVersion],
|
664
|
+
urlParameters: [
|
665
|
+
Parameters.$host,
|
666
|
+
Parameters.subscriptionId,
|
667
|
+
Parameters.resourceGroupName,
|
668
|
+
Parameters.registryName
|
669
|
+
],
|
670
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
671
|
+
mediaType: "json",
|
672
|
+
serializer
|
673
|
+
};
|
674
|
+
const deleteOperationSpec = {
|
675
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
676
|
+
httpMethod: "DELETE",
|
677
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
678
|
+
queryParameters: [Parameters.apiVersion],
|
679
|
+
urlParameters: [
|
680
|
+
Parameters.$host,
|
681
|
+
Parameters.subscriptionId,
|
682
|
+
Parameters.resourceGroupName,
|
683
|
+
Parameters.registryName
|
684
|
+
],
|
685
|
+
serializer
|
686
|
+
};
|
687
|
+
const updateOperationSpec = {
|
688
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
689
|
+
httpMethod: "PATCH",
|
690
|
+
responses: {
|
691
|
+
200: {
|
692
|
+
bodyMapper: Mappers.Registry
|
693
|
+
},
|
694
|
+
201: {
|
695
|
+
bodyMapper: Mappers.Registry
|
696
|
+
},
|
697
|
+
202: {
|
698
|
+
bodyMapper: Mappers.Registry
|
699
|
+
},
|
700
|
+
204: {
|
701
|
+
bodyMapper: Mappers.Registry
|
702
|
+
}
|
703
|
+
},
|
704
|
+
requestBody: Parameters.registryUpdateParameters,
|
705
|
+
queryParameters: [Parameters.apiVersion],
|
706
|
+
urlParameters: [
|
707
|
+
Parameters.$host,
|
708
|
+
Parameters.subscriptionId,
|
709
|
+
Parameters.resourceGroupName,
|
710
|
+
Parameters.registryName
|
711
|
+
],
|
712
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
713
|
+
mediaType: "json",
|
714
|
+
serializer
|
715
|
+
};
|
716
|
+
const listByResourceGroupOperationSpec = {
|
717
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries",
|
718
|
+
httpMethod: "GET",
|
719
|
+
responses: {
|
720
|
+
200: {
|
721
|
+
bodyMapper: Mappers.RegistryListResult
|
722
|
+
}
|
723
|
+
},
|
724
|
+
queryParameters: [Parameters.apiVersion],
|
725
|
+
urlParameters: [
|
726
|
+
Parameters.$host,
|
727
|
+
Parameters.subscriptionId,
|
728
|
+
Parameters.resourceGroupName
|
729
|
+
],
|
730
|
+
headerParameters: [Parameters.accept],
|
731
|
+
serializer
|
732
|
+
};
|
733
|
+
const listOperationSpec = {
|
734
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries",
|
735
|
+
httpMethod: "GET",
|
736
|
+
responses: {
|
737
|
+
200: {
|
738
|
+
bodyMapper: Mappers.RegistryListResult
|
739
|
+
}
|
740
|
+
},
|
741
|
+
queryParameters: [Parameters.apiVersion],
|
742
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
743
|
+
headerParameters: [Parameters.accept],
|
744
|
+
serializer
|
745
|
+
};
|
746
|
+
const listCredentialsOperationSpec = {
|
747
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials",
|
748
|
+
httpMethod: "POST",
|
749
|
+
responses: {
|
750
|
+
200: {
|
751
|
+
bodyMapper: Mappers.RegistryListCredentialsResult
|
752
|
+
}
|
753
|
+
},
|
754
|
+
queryParameters: [Parameters.apiVersion],
|
755
|
+
urlParameters: [
|
756
|
+
Parameters.$host,
|
757
|
+
Parameters.subscriptionId,
|
758
|
+
Parameters.resourceGroupName,
|
759
|
+
Parameters.registryName
|
760
|
+
],
|
761
|
+
headerParameters: [Parameters.accept],
|
762
|
+
serializer
|
763
|
+
};
|
764
|
+
const regenerateCredentialOperationSpec = {
|
765
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential",
|
766
|
+
httpMethod: "POST",
|
767
|
+
responses: {
|
768
|
+
200: {
|
769
|
+
bodyMapper: Mappers.RegistryListCredentialsResult
|
770
|
+
}
|
771
|
+
},
|
772
|
+
requestBody: Parameters.regenerateCredentialParameters,
|
773
|
+
queryParameters: [Parameters.apiVersion],
|
774
|
+
urlParameters: [
|
775
|
+
Parameters.$host,
|
776
|
+
Parameters.subscriptionId,
|
777
|
+
Parameters.resourceGroupName,
|
778
|
+
Parameters.registryName
|
779
|
+
],
|
780
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
781
|
+
mediaType: "json",
|
782
|
+
serializer
|
783
|
+
};
|
784
|
+
const listUsagesOperationSpec = {
|
785
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages",
|
786
|
+
httpMethod: "GET",
|
787
|
+
responses: {
|
788
|
+
200: {
|
789
|
+
bodyMapper: Mappers.RegistryUsageListResult
|
790
|
+
}
|
791
|
+
},
|
792
|
+
queryParameters: [Parameters.apiVersion],
|
793
|
+
urlParameters: [
|
794
|
+
Parameters.$host,
|
795
|
+
Parameters.subscriptionId,
|
796
|
+
Parameters.resourceGroupName,
|
797
|
+
Parameters.registryName
|
798
|
+
],
|
799
|
+
headerParameters: [Parameters.accept],
|
800
|
+
serializer
|
801
|
+
};
|
802
|
+
const listPrivateLinkResourcesOperationSpec = {
|
803
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources",
|
804
|
+
httpMethod: "GET",
|
805
|
+
responses: {
|
806
|
+
200: {
|
807
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
808
|
+
}
|
809
|
+
},
|
810
|
+
queryParameters: [Parameters.apiVersion],
|
811
|
+
urlParameters: [
|
812
|
+
Parameters.$host,
|
813
|
+
Parameters.subscriptionId,
|
814
|
+
Parameters.resourceGroupName,
|
815
|
+
Parameters.registryName
|
816
|
+
],
|
817
|
+
headerParameters: [Parameters.accept],
|
818
|
+
serializer
|
819
|
+
};
|
820
|
+
const generateCredentialsOperationSpec = {
|
821
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials",
|
822
|
+
httpMethod: "POST",
|
823
|
+
responses: {
|
824
|
+
200: {
|
825
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
826
|
+
},
|
827
|
+
201: {
|
828
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
829
|
+
},
|
830
|
+
202: {
|
831
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
832
|
+
},
|
833
|
+
204: {
|
834
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
835
|
+
}
|
836
|
+
},
|
837
|
+
requestBody: Parameters.generateCredentialsParameters,
|
838
|
+
queryParameters: [Parameters.apiVersion],
|
839
|
+
urlParameters: [
|
840
|
+
Parameters.$host,
|
841
|
+
Parameters.subscriptionId,
|
842
|
+
Parameters.resourceGroupName,
|
843
|
+
Parameters.registryName
|
844
|
+
],
|
845
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
846
|
+
mediaType: "json",
|
847
|
+
serializer
|
848
|
+
};
|
849
|
+
const scheduleRunOperationSpec = {
|
850
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun",
|
851
|
+
httpMethod: "POST",
|
852
|
+
responses: {
|
853
|
+
200: {
|
854
|
+
bodyMapper: Mappers.Run
|
855
|
+
},
|
856
|
+
201: {
|
857
|
+
bodyMapper: Mappers.Run
|
858
|
+
},
|
859
|
+
202: {
|
860
|
+
bodyMapper: Mappers.Run
|
861
|
+
},
|
862
|
+
204: {
|
863
|
+
bodyMapper: Mappers.Run
|
864
|
+
},
|
865
|
+
default: {
|
866
|
+
bodyMapper: Mappers.ErrorResponse
|
867
|
+
}
|
868
|
+
},
|
869
|
+
requestBody: Parameters.runRequest,
|
870
|
+
queryParameters: [Parameters.apiVersion1],
|
871
|
+
urlParameters: [
|
872
|
+
Parameters.$host,
|
873
|
+
Parameters.subscriptionId,
|
874
|
+
Parameters.resourceGroupName,
|
875
|
+
Parameters.registryName
|
876
|
+
],
|
877
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
878
|
+
mediaType: "json",
|
879
|
+
serializer
|
880
|
+
};
|
881
|
+
const getBuildSourceUploadUrlOperationSpec = {
|
882
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl",
|
883
|
+
httpMethod: "POST",
|
884
|
+
responses: {
|
885
|
+
200: {
|
886
|
+
bodyMapper: Mappers.SourceUploadDefinition
|
887
|
+
},
|
888
|
+
default: {
|
889
|
+
bodyMapper: Mappers.ErrorResponse
|
890
|
+
}
|
891
|
+
},
|
892
|
+
queryParameters: [Parameters.apiVersion1],
|
893
|
+
urlParameters: [
|
894
|
+
Parameters.$host,
|
895
|
+
Parameters.subscriptionId,
|
896
|
+
Parameters.resourceGroupName,
|
897
|
+
Parameters.registryName
|
898
|
+
],
|
899
|
+
headerParameters: [Parameters.accept],
|
900
|
+
serializer
|
901
|
+
};
|
902
|
+
const listByResourceGroupNextOperationSpec = {
|
903
|
+
path: "{nextLink}",
|
904
|
+
httpMethod: "GET",
|
905
|
+
responses: {
|
906
|
+
200: {
|
907
|
+
bodyMapper: Mappers.RegistryListResult
|
908
|
+
}
|
909
|
+
},
|
910
|
+
queryParameters: [Parameters.apiVersion],
|
911
|
+
urlParameters: [
|
912
|
+
Parameters.$host,
|
913
|
+
Parameters.subscriptionId,
|
914
|
+
Parameters.resourceGroupName,
|
915
|
+
Parameters.nextLink
|
916
|
+
],
|
917
|
+
headerParameters: [Parameters.accept],
|
918
|
+
serializer
|
919
|
+
};
|
920
|
+
const listNextOperationSpec = {
|
921
|
+
path: "{nextLink}",
|
922
|
+
httpMethod: "GET",
|
923
|
+
responses: {
|
924
|
+
200: {
|
925
|
+
bodyMapper: Mappers.RegistryListResult
|
926
|
+
}
|
927
|
+
},
|
928
|
+
queryParameters: [Parameters.apiVersion],
|
929
|
+
urlParameters: [
|
930
|
+
Parameters.$host,
|
931
|
+
Parameters.subscriptionId,
|
932
|
+
Parameters.nextLink
|
933
|
+
],
|
934
|
+
headerParameters: [Parameters.accept],
|
935
|
+
serializer
|
936
|
+
};
|
937
|
+
const listPrivateLinkResourcesNextOperationSpec = {
|
938
|
+
path: "{nextLink}",
|
939
|
+
httpMethod: "GET",
|
940
|
+
responses: {
|
941
|
+
200: {
|
942
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
943
|
+
}
|
944
|
+
},
|
945
|
+
queryParameters: [Parameters.apiVersion],
|
946
|
+
urlParameters: [
|
947
|
+
Parameters.$host,
|
948
|
+
Parameters.subscriptionId,
|
949
|
+
Parameters.resourceGroupName,
|
950
|
+
Parameters.registryName,
|
951
|
+
Parameters.nextLink
|
952
|
+
],
|
953
|
+
headerParameters: [Parameters.accept],
|
954
|
+
serializer
|
955
|
+
};
|
956
|
+
//# sourceMappingURL=registries.js.map
|