@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
package/src/operations/tasks.ts
CHANGED
@@ -1,27 +1,45 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import * as
|
14
|
-
import * as Mappers from "../models/
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { Tasks } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
15
13
|
import * as Parameters from "../models/parameters";
|
16
14
|
import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
|
+
import { LroImpl } from "../lroImpl";
|
17
|
+
import {
|
18
|
+
Task,
|
19
|
+
TasksListNextOptionalParams,
|
20
|
+
TasksListOptionalParams,
|
21
|
+
TasksListResponse,
|
22
|
+
TasksGetOptionalParams,
|
23
|
+
TasksGetResponse,
|
24
|
+
TasksCreateOptionalParams,
|
25
|
+
TasksCreateResponse,
|
26
|
+
TasksDeleteOptionalParams,
|
27
|
+
TaskUpdateParameters,
|
28
|
+
TasksUpdateOptionalParams,
|
29
|
+
TasksUpdateResponse,
|
30
|
+
TasksGetDetailsOptionalParams,
|
31
|
+
TasksGetDetailsResponse,
|
32
|
+
TasksListNextResponse
|
33
|
+
} from "../models";
|
17
34
|
|
18
|
-
|
19
|
-
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
36
|
+
/** Class containing Tasks operations. */
|
37
|
+
export class TasksImpl implements Tasks {
|
20
38
|
private readonly client: ContainerRegistryManagementClientContext;
|
21
39
|
|
22
40
|
/**
|
23
|
-
*
|
24
|
-
* @param
|
41
|
+
* Initialize a new instance of the class Tasks class.
|
42
|
+
* @param client Reference to the service client
|
25
43
|
*/
|
26
44
|
constructor(client: ContainerRegistryManagementClientContext) {
|
27
45
|
this.client = client;
|
@@ -31,68 +49,168 @@ export class Tasks {
|
|
31
49
|
* Lists all the tasks for a specified container registry.
|
32
50
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
33
51
|
* @param registryName The name of the container registry.
|
34
|
-
* @param
|
35
|
-
* @returns Promise<Models.TasksListResponse>
|
52
|
+
* @param options The options parameters.
|
36
53
|
*/
|
37
|
-
list(
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
+
public list(
|
55
|
+
resourceGroupName: string,
|
56
|
+
registryName: string,
|
57
|
+
options?: TasksListOptionalParams
|
58
|
+
): PagedAsyncIterableIterator<Task> {
|
59
|
+
const iter = this.listPagingAll(resourceGroupName, registryName, options);
|
60
|
+
return {
|
61
|
+
next() {
|
62
|
+
return iter.next();
|
63
|
+
},
|
64
|
+
[Symbol.asyncIterator]() {
|
65
|
+
return this;
|
66
|
+
},
|
67
|
+
byPage: () => {
|
68
|
+
return this.listPagingPage(resourceGroupName, registryName, options);
|
69
|
+
}
|
70
|
+
};
|
71
|
+
}
|
72
|
+
|
73
|
+
private async *listPagingPage(
|
74
|
+
resourceGroupName: string,
|
75
|
+
registryName: string,
|
76
|
+
options?: TasksListOptionalParams
|
77
|
+
): AsyncIterableIterator<Task[]> {
|
78
|
+
let result = await this._list(resourceGroupName, registryName, options);
|
79
|
+
yield result.value || [];
|
80
|
+
let continuationToken = result.nextLink;
|
81
|
+
while (continuationToken) {
|
82
|
+
result = await this._listNext(
|
54
83
|
resourceGroupName,
|
55
84
|
registryName,
|
85
|
+
continuationToken,
|
56
86
|
options
|
57
|
-
|
58
|
-
|
59
|
-
|
87
|
+
);
|
88
|
+
continuationToken = result.nextLink;
|
89
|
+
yield result.value || [];
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
private async *listPagingAll(
|
94
|
+
resourceGroupName: string,
|
95
|
+
registryName: string,
|
96
|
+
options?: TasksListOptionalParams
|
97
|
+
): AsyncIterableIterator<Task> {
|
98
|
+
for await (const page of this.listPagingPage(
|
99
|
+
resourceGroupName,
|
100
|
+
registryName,
|
101
|
+
options
|
102
|
+
)) {
|
103
|
+
yield* page;
|
104
|
+
}
|
60
105
|
}
|
61
106
|
|
62
107
|
/**
|
63
|
-
*
|
108
|
+
* Lists all the tasks for a specified container registry.
|
64
109
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
65
110
|
* @param registryName The name of the container registry.
|
66
|
-
* @param
|
67
|
-
* @param [options] The optional parameters
|
68
|
-
* @returns Promise<Models.TasksGetResponse>
|
111
|
+
* @param options The options parameters.
|
69
112
|
*/
|
70
|
-
|
113
|
+
private _list(
|
114
|
+
resourceGroupName: string,
|
115
|
+
registryName: string,
|
116
|
+
options?: TasksListOptionalParams
|
117
|
+
): Promise<TasksListResponse> {
|
118
|
+
return this.client.sendOperationRequest(
|
119
|
+
{ resourceGroupName, registryName, options },
|
120
|
+
listOperationSpec
|
121
|
+
);
|
122
|
+
}
|
123
|
+
|
71
124
|
/**
|
125
|
+
* Get the properties of a specified task.
|
72
126
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
73
127
|
* @param registryName The name of the container registry.
|
74
128
|
* @param taskName The name of the container registry task.
|
75
|
-
* @param
|
129
|
+
* @param options The options parameters.
|
76
130
|
*/
|
77
|
-
get(
|
131
|
+
get(
|
132
|
+
resourceGroupName: string,
|
133
|
+
registryName: string,
|
134
|
+
taskName: string,
|
135
|
+
options?: TasksGetOptionalParams
|
136
|
+
): Promise<TasksGetResponse> {
|
137
|
+
return this.client.sendOperationRequest(
|
138
|
+
{ resourceGroupName, registryName, taskName, options },
|
139
|
+
getOperationSpec
|
140
|
+
);
|
141
|
+
}
|
142
|
+
|
78
143
|
/**
|
144
|
+
* Creates a task for a container registry with the specified parameters.
|
79
145
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
80
146
|
* @param registryName The name of the container registry.
|
81
147
|
* @param taskName The name of the container registry task.
|
82
|
-
* @param
|
83
|
-
* @param
|
148
|
+
* @param taskCreateParameters The parameters for creating a task.
|
149
|
+
* @param options The options parameters.
|
84
150
|
*/
|
85
|
-
|
86
|
-
|
87
|
-
|
151
|
+
async beginCreate(
|
152
|
+
resourceGroupName: string,
|
153
|
+
registryName: string,
|
154
|
+
taskName: string,
|
155
|
+
taskCreateParameters: Task,
|
156
|
+
options?: TasksCreateOptionalParams
|
157
|
+
): Promise<
|
158
|
+
PollerLike<PollOperationState<TasksCreateResponse>, TasksCreateResponse>
|
159
|
+
> {
|
160
|
+
const directSendOperation = async (
|
161
|
+
args: coreClient.OperationArguments,
|
162
|
+
spec: coreClient.OperationSpec
|
163
|
+
): Promise<TasksCreateResponse> => {
|
164
|
+
return this.client.sendOperationRequest(args, spec);
|
165
|
+
};
|
166
|
+
const sendOperation = async (
|
167
|
+
args: coreClient.OperationArguments,
|
168
|
+
spec: coreClient.OperationSpec
|
169
|
+
) => {
|
170
|
+
let currentRawResponse:
|
171
|
+
| coreClient.FullOperationResponse
|
172
|
+
| undefined = undefined;
|
173
|
+
const providedCallback = args.options?.onResponse;
|
174
|
+
const callback: coreClient.RawResponseCallback = (
|
175
|
+
rawResponse: coreClient.FullOperationResponse,
|
176
|
+
flatResponse: unknown
|
177
|
+
) => {
|
178
|
+
currentRawResponse = rawResponse;
|
179
|
+
providedCallback?.(rawResponse, flatResponse);
|
180
|
+
};
|
181
|
+
const updatedArgs = {
|
182
|
+
...args,
|
183
|
+
options: {
|
184
|
+
...args.options,
|
185
|
+
onResponse: callback
|
186
|
+
}
|
187
|
+
};
|
188
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
189
|
+
return {
|
190
|
+
flatResponse,
|
191
|
+
rawResponse: {
|
192
|
+
statusCode: currentRawResponse!.status,
|
193
|
+
body: currentRawResponse!.parsedBody,
|
194
|
+
headers: currentRawResponse!.headers.toJSON()
|
195
|
+
}
|
196
|
+
};
|
197
|
+
};
|
198
|
+
|
199
|
+
const lro = new LroImpl(
|
200
|
+
sendOperation,
|
88
201
|
{
|
89
202
|
resourceGroupName,
|
90
203
|
registryName,
|
91
204
|
taskName,
|
205
|
+
taskCreateParameters,
|
92
206
|
options
|
93
207
|
},
|
94
|
-
|
95
|
-
|
208
|
+
createOperationSpec
|
209
|
+
);
|
210
|
+
return new LroEngine(lro, {
|
211
|
+
resumeFrom: options?.resumeFrom,
|
212
|
+
intervalInMs: options?.updateIntervalInMs
|
213
|
+
});
|
96
214
|
}
|
97
215
|
|
98
216
|
/**
|
@@ -101,12 +219,23 @@ export class Tasks {
|
|
101
219
|
* @param registryName The name of the container registry.
|
102
220
|
* @param taskName The name of the container registry task.
|
103
221
|
* @param taskCreateParameters The parameters for creating a task.
|
104
|
-
* @param
|
105
|
-
* @returns Promise<Models.TasksCreateResponse>
|
222
|
+
* @param options The options parameters.
|
106
223
|
*/
|
107
|
-
|
108
|
-
|
109
|
-
|
224
|
+
async beginCreateAndWait(
|
225
|
+
resourceGroupName: string,
|
226
|
+
registryName: string,
|
227
|
+
taskName: string,
|
228
|
+
taskCreateParameters: Task,
|
229
|
+
options?: TasksCreateOptionalParams
|
230
|
+
): Promise<TasksCreateResponse> {
|
231
|
+
const poller = await this.beginCreate(
|
232
|
+
resourceGroupName,
|
233
|
+
registryName,
|
234
|
+
taskName,
|
235
|
+
taskCreateParameters,
|
236
|
+
options
|
237
|
+
);
|
238
|
+
return poller.pollUntilDone();
|
110
239
|
}
|
111
240
|
|
112
241
|
/**
|
@@ -114,258 +243,274 @@ export class Tasks {
|
|
114
243
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
115
244
|
* @param registryName The name of the container registry.
|
116
245
|
* @param taskName The name of the container registry task.
|
117
|
-
* @param
|
118
|
-
* @returns Promise<msRest.RestResponse>
|
246
|
+
* @param options The options parameters.
|
119
247
|
*/
|
120
|
-
|
121
|
-
|
122
|
-
|
248
|
+
async beginDelete(
|
249
|
+
resourceGroupName: string,
|
250
|
+
registryName: string,
|
251
|
+
taskName: string,
|
252
|
+
options?: TasksDeleteOptionalParams
|
253
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
254
|
+
const directSendOperation = async (
|
255
|
+
args: coreClient.OperationArguments,
|
256
|
+
spec: coreClient.OperationSpec
|
257
|
+
): Promise<void> => {
|
258
|
+
return this.client.sendOperationRequest(args, spec);
|
259
|
+
};
|
260
|
+
const sendOperation = async (
|
261
|
+
args: coreClient.OperationArguments,
|
262
|
+
spec: coreClient.OperationSpec
|
263
|
+
) => {
|
264
|
+
let currentRawResponse:
|
265
|
+
| coreClient.FullOperationResponse
|
266
|
+
| undefined = undefined;
|
267
|
+
const providedCallback = args.options?.onResponse;
|
268
|
+
const callback: coreClient.RawResponseCallback = (
|
269
|
+
rawResponse: coreClient.FullOperationResponse,
|
270
|
+
flatResponse: unknown
|
271
|
+
) => {
|
272
|
+
currentRawResponse = rawResponse;
|
273
|
+
providedCallback?.(rawResponse, flatResponse);
|
274
|
+
};
|
275
|
+
const updatedArgs = {
|
276
|
+
...args,
|
277
|
+
options: {
|
278
|
+
...args.options,
|
279
|
+
onResponse: callback
|
280
|
+
}
|
281
|
+
};
|
282
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
283
|
+
return {
|
284
|
+
flatResponse,
|
285
|
+
rawResponse: {
|
286
|
+
statusCode: currentRawResponse!.status,
|
287
|
+
body: currentRawResponse!.parsedBody,
|
288
|
+
headers: currentRawResponse!.headers.toJSON()
|
289
|
+
}
|
290
|
+
};
|
291
|
+
};
|
292
|
+
|
293
|
+
const lro = new LroImpl(
|
294
|
+
sendOperation,
|
295
|
+
{ resourceGroupName, registryName, taskName, options },
|
296
|
+
deleteOperationSpec
|
297
|
+
);
|
298
|
+
return new LroEngine(lro, {
|
299
|
+
resumeFrom: options?.resumeFrom,
|
300
|
+
intervalInMs: options?.updateIntervalInMs
|
301
|
+
});
|
123
302
|
}
|
124
303
|
|
125
304
|
/**
|
126
|
-
*
|
305
|
+
* Deletes a specified task.
|
127
306
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
128
307
|
* @param registryName The name of the container registry.
|
129
308
|
* @param taskName The name of the container registry task.
|
130
|
-
* @param
|
131
|
-
* @param [options] The optional parameters
|
132
|
-
* @returns Promise<Models.TasksUpdateResponse>
|
309
|
+
* @param options The options parameters.
|
133
310
|
*/
|
134
|
-
|
135
|
-
|
136
|
-
|
311
|
+
async beginDeleteAndWait(
|
312
|
+
resourceGroupName: string,
|
313
|
+
registryName: string,
|
314
|
+
taskName: string,
|
315
|
+
options?: TasksDeleteOptionalParams
|
316
|
+
): Promise<void> {
|
317
|
+
const poller = await this.beginDelete(
|
318
|
+
resourceGroupName,
|
319
|
+
registryName,
|
320
|
+
taskName,
|
321
|
+
options
|
322
|
+
);
|
323
|
+
return poller.pollUntilDone();
|
137
324
|
}
|
138
325
|
|
139
326
|
/**
|
140
|
-
*
|
141
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
142
|
-
* @param registryName The name of the container registry.
|
143
|
-
* @param taskName The name of the container registry task.
|
144
|
-
* @param [options] The optional parameters
|
145
|
-
* @returns Promise<Models.TasksGetDetailsResponse>
|
146
|
-
*/
|
147
|
-
getDetails(resourceGroupName: string, registryName: string, taskName: string, options?: msRest.RequestOptionsBase): Promise<Models.TasksGetDetailsResponse>;
|
148
|
-
/**
|
149
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
150
|
-
* @param registryName The name of the container registry.
|
151
|
-
* @param taskName The name of the container registry task.
|
152
|
-
* @param callback The callback
|
153
|
-
*/
|
154
|
-
getDetails(resourceGroupName: string, registryName: string, taskName: string, callback: msRest.ServiceCallback<Models.Task>): void;
|
155
|
-
/**
|
327
|
+
* Updates a task with the specified parameters.
|
156
328
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
157
329
|
* @param registryName The name of the container registry.
|
158
330
|
* @param taskName The name of the container registry task.
|
159
|
-
* @param
|
160
|
-
* @param
|
331
|
+
* @param taskUpdateParameters The parameters for updating a task.
|
332
|
+
* @param options The options parameters.
|
161
333
|
*/
|
162
|
-
|
163
|
-
|
164
|
-
|
334
|
+
async beginUpdate(
|
335
|
+
resourceGroupName: string,
|
336
|
+
registryName: string,
|
337
|
+
taskName: string,
|
338
|
+
taskUpdateParameters: TaskUpdateParameters,
|
339
|
+
options?: TasksUpdateOptionalParams
|
340
|
+
): Promise<
|
341
|
+
PollerLike<PollOperationState<TasksUpdateResponse>, TasksUpdateResponse>
|
342
|
+
> {
|
343
|
+
const directSendOperation = async (
|
344
|
+
args: coreClient.OperationArguments,
|
345
|
+
spec: coreClient.OperationSpec
|
346
|
+
): Promise<TasksUpdateResponse> => {
|
347
|
+
return this.client.sendOperationRequest(args, spec);
|
348
|
+
};
|
349
|
+
const sendOperation = async (
|
350
|
+
args: coreClient.OperationArguments,
|
351
|
+
spec: coreClient.OperationSpec
|
352
|
+
) => {
|
353
|
+
let currentRawResponse:
|
354
|
+
| coreClient.FullOperationResponse
|
355
|
+
| undefined = undefined;
|
356
|
+
const providedCallback = args.options?.onResponse;
|
357
|
+
const callback: coreClient.RawResponseCallback = (
|
358
|
+
rawResponse: coreClient.FullOperationResponse,
|
359
|
+
flatResponse: unknown
|
360
|
+
) => {
|
361
|
+
currentRawResponse = rawResponse;
|
362
|
+
providedCallback?.(rawResponse, flatResponse);
|
363
|
+
};
|
364
|
+
const updatedArgs = {
|
365
|
+
...args,
|
366
|
+
options: {
|
367
|
+
...args.options,
|
368
|
+
onResponse: callback
|
369
|
+
}
|
370
|
+
};
|
371
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
372
|
+
return {
|
373
|
+
flatResponse,
|
374
|
+
rawResponse: {
|
375
|
+
statusCode: currentRawResponse!.status,
|
376
|
+
body: currentRawResponse!.parsedBody,
|
377
|
+
headers: currentRawResponse!.headers.toJSON()
|
378
|
+
}
|
379
|
+
};
|
380
|
+
};
|
381
|
+
|
382
|
+
const lro = new LroImpl(
|
383
|
+
sendOperation,
|
165
384
|
{
|
166
385
|
resourceGroupName,
|
167
386
|
registryName,
|
168
387
|
taskName,
|
388
|
+
taskUpdateParameters,
|
169
389
|
options
|
170
390
|
},
|
171
|
-
|
172
|
-
|
391
|
+
updateOperationSpec
|
392
|
+
);
|
393
|
+
return new LroEngine(lro, {
|
394
|
+
resumeFrom: options?.resumeFrom,
|
395
|
+
intervalInMs: options?.updateIntervalInMs
|
396
|
+
});
|
173
397
|
}
|
174
398
|
|
175
399
|
/**
|
176
|
-
*
|
400
|
+
* Updates a task with the specified parameters.
|
177
401
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
178
402
|
* @param registryName The name of the container registry.
|
179
403
|
* @param taskName The name of the container registry task.
|
180
|
-
* @param
|
181
|
-
* @param
|
182
|
-
* @returns Promise<msRestAzure.LROPoller>
|
404
|
+
* @param taskUpdateParameters The parameters for updating a task.
|
405
|
+
* @param options The options parameters.
|
183
406
|
*/
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
407
|
+
async beginUpdateAndWait(
|
408
|
+
resourceGroupName: string,
|
409
|
+
registryName: string,
|
410
|
+
taskName: string,
|
411
|
+
taskUpdateParameters: TaskUpdateParameters,
|
412
|
+
options?: TasksUpdateOptionalParams
|
413
|
+
): Promise<TasksUpdateResponse> {
|
414
|
+
const poller = await this.beginUpdate(
|
415
|
+
resourceGroupName,
|
416
|
+
registryName,
|
417
|
+
taskName,
|
418
|
+
taskUpdateParameters,
|
419
|
+
options
|
420
|
+
);
|
421
|
+
return poller.pollUntilDone();
|
195
422
|
}
|
196
423
|
|
197
424
|
/**
|
198
|
-
*
|
425
|
+
* Returns a task with extended information that includes all secrets.
|
199
426
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
200
427
|
* @param registryName The name of the container registry.
|
201
428
|
* @param taskName The name of the container registry task.
|
202
|
-
* @param
|
203
|
-
* @returns Promise<msRestAzure.LROPoller>
|
429
|
+
* @param options The options parameters.
|
204
430
|
*/
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
},
|
213
|
-
|
214
|
-
|
431
|
+
getDetails(
|
432
|
+
resourceGroupName: string,
|
433
|
+
registryName: string,
|
434
|
+
taskName: string,
|
435
|
+
options?: TasksGetDetailsOptionalParams
|
436
|
+
): Promise<TasksGetDetailsResponse> {
|
437
|
+
return this.client.sendOperationRequest(
|
438
|
+
{ resourceGroupName, registryName, taskName, options },
|
439
|
+
getDetailsOperationSpec
|
440
|
+
);
|
215
441
|
}
|
216
442
|
|
217
443
|
/**
|
218
|
-
*
|
444
|
+
* ListNext
|
219
445
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
220
446
|
* @param registryName The name of the container registry.
|
221
|
-
* @param
|
222
|
-
* @param
|
223
|
-
* @param [options] The optional parameters
|
224
|
-
* @returns Promise<msRestAzure.LROPoller>
|
447
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
448
|
+
* @param options The options parameters.
|
225
449
|
*/
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
taskUpdateParameters,
|
233
|
-
options
|
234
|
-
},
|
235
|
-
beginUpdateOperationSpec,
|
236
|
-
options);
|
237
|
-
}
|
238
|
-
|
239
|
-
/**
|
240
|
-
* Lists all the tasks for a specified container registry.
|
241
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
242
|
-
* @param [options] The optional parameters
|
243
|
-
* @returns Promise<Models.TasksListNextResponse>
|
244
|
-
*/
|
245
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.TasksListNextResponse>;
|
246
|
-
/**
|
247
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
248
|
-
* @param callback The callback
|
249
|
-
*/
|
250
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.TaskListResult>): void;
|
251
|
-
/**
|
252
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
253
|
-
* @param options The optional parameters
|
254
|
-
* @param callback The callback
|
255
|
-
*/
|
256
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TaskListResult>): void;
|
257
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.TaskListResult>, callback?: msRest.ServiceCallback<Models.TaskListResult>): Promise<Models.TasksListNextResponse> {
|
450
|
+
private _listNext(
|
451
|
+
resourceGroupName: string,
|
452
|
+
registryName: string,
|
453
|
+
nextLink: string,
|
454
|
+
options?: TasksListNextOptionalParams
|
455
|
+
): Promise<TasksListNextResponse> {
|
258
456
|
return this.client.sendOperationRequest(
|
259
|
-
{
|
260
|
-
|
261
|
-
|
262
|
-
},
|
263
|
-
listNextOperationSpec,
|
264
|
-
callback) as Promise<Models.TasksListNextResponse>;
|
457
|
+
{ resourceGroupName, registryName, nextLink, options },
|
458
|
+
listNextOperationSpec
|
459
|
+
);
|
265
460
|
}
|
266
461
|
}
|
267
|
-
|
268
462
|
// Operation Specifications
|
269
|
-
const serializer =
|
270
|
-
|
463
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
464
|
+
|
465
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
466
|
+
path:
|
467
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks",
|
271
468
|
httpMethod: "GET",
|
272
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks",
|
273
|
-
urlParameters: [
|
274
|
-
Parameters.subscriptionId,
|
275
|
-
Parameters.resourceGroupName,
|
276
|
-
Parameters.registryName
|
277
|
-
],
|
278
|
-
queryParameters: [
|
279
|
-
Parameters.apiVersion1
|
280
|
-
],
|
281
|
-
headerParameters: [
|
282
|
-
Parameters.acceptLanguage
|
283
|
-
],
|
284
469
|
responses: {
|
285
470
|
200: {
|
286
471
|
bodyMapper: Mappers.TaskListResult
|
287
472
|
},
|
288
473
|
default: {
|
289
|
-
bodyMapper: Mappers.
|
474
|
+
bodyMapper: Mappers.ErrorResponse
|
290
475
|
}
|
291
476
|
},
|
292
|
-
|
293
|
-
};
|
294
|
-
|
295
|
-
const getOperationSpec: msRest.OperationSpec = {
|
296
|
-
httpMethod: "GET",
|
297
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
477
|
+
queryParameters: [Parameters.apiVersion1],
|
298
478
|
urlParameters: [
|
479
|
+
Parameters.$host,
|
299
480
|
Parameters.subscriptionId,
|
300
481
|
Parameters.resourceGroupName,
|
301
|
-
Parameters.registryName
|
302
|
-
Parameters.taskName
|
303
|
-
],
|
304
|
-
queryParameters: [
|
305
|
-
Parameters.apiVersion1
|
306
|
-
],
|
307
|
-
headerParameters: [
|
308
|
-
Parameters.acceptLanguage
|
482
|
+
Parameters.registryName
|
309
483
|
],
|
484
|
+
headerParameters: [Parameters.accept],
|
485
|
+
serializer
|
486
|
+
};
|
487
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
488
|
+
path:
|
489
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
490
|
+
httpMethod: "GET",
|
310
491
|
responses: {
|
311
492
|
200: {
|
312
493
|
bodyMapper: Mappers.Task
|
313
494
|
},
|
314
495
|
default: {
|
315
|
-
bodyMapper: Mappers.
|
496
|
+
bodyMapper: Mappers.ErrorResponse
|
316
497
|
}
|
317
498
|
},
|
318
|
-
|
319
|
-
};
|
320
|
-
|
321
|
-
const getDetailsOperationSpec: msRest.OperationSpec = {
|
322
|
-
httpMethod: "POST",
|
323
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails",
|
499
|
+
queryParameters: [Parameters.apiVersion1],
|
324
500
|
urlParameters: [
|
501
|
+
Parameters.$host,
|
325
502
|
Parameters.subscriptionId,
|
326
503
|
Parameters.resourceGroupName,
|
327
504
|
Parameters.registryName,
|
328
505
|
Parameters.taskName
|
329
506
|
],
|
330
|
-
|
331
|
-
Parameters.apiVersion1
|
332
|
-
],
|
333
|
-
headerParameters: [
|
334
|
-
Parameters.acceptLanguage
|
335
|
-
],
|
336
|
-
responses: {
|
337
|
-
200: {
|
338
|
-
bodyMapper: Mappers.Task
|
339
|
-
},
|
340
|
-
default: {
|
341
|
-
bodyMapper: Mappers.CloudError
|
342
|
-
}
|
343
|
-
},
|
507
|
+
headerParameters: [Parameters.accept],
|
344
508
|
serializer
|
345
509
|
};
|
346
|
-
|
347
|
-
|
510
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
511
|
+
path:
|
512
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
348
513
|
httpMethod: "PUT",
|
349
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
350
|
-
urlParameters: [
|
351
|
-
Parameters.subscriptionId,
|
352
|
-
Parameters.resourceGroupName,
|
353
|
-
Parameters.registryName,
|
354
|
-
Parameters.taskName
|
355
|
-
],
|
356
|
-
queryParameters: [
|
357
|
-
Parameters.apiVersion1
|
358
|
-
],
|
359
|
-
headerParameters: [
|
360
|
-
Parameters.acceptLanguage
|
361
|
-
],
|
362
|
-
requestBody: {
|
363
|
-
parameterPath: "taskCreateParameters",
|
364
|
-
mapper: {
|
365
|
-
...Mappers.Task,
|
366
|
-
required: true
|
367
|
-
}
|
368
|
-
},
|
369
514
|
responses: {
|
370
515
|
200: {
|
371
516
|
bodyMapper: Mappers.Task
|
@@ -373,61 +518,57 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
373
518
|
201: {
|
374
519
|
bodyMapper: Mappers.Task
|
375
520
|
},
|
521
|
+
202: {
|
522
|
+
bodyMapper: Mappers.Task
|
523
|
+
},
|
524
|
+
204: {
|
525
|
+
bodyMapper: Mappers.Task
|
526
|
+
},
|
376
527
|
default: {
|
377
|
-
bodyMapper: Mappers.
|
528
|
+
bodyMapper: Mappers.ErrorResponse
|
378
529
|
}
|
379
530
|
},
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
384
|
-
httpMethod: "DELETE",
|
385
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
531
|
+
requestBody: Parameters.taskCreateParameters,
|
532
|
+
queryParameters: [Parameters.apiVersion1],
|
386
533
|
urlParameters: [
|
534
|
+
Parameters.$host,
|
387
535
|
Parameters.subscriptionId,
|
388
536
|
Parameters.resourceGroupName,
|
389
537
|
Parameters.registryName,
|
390
538
|
Parameters.taskName
|
391
539
|
],
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
540
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
541
|
+
mediaType: "json",
|
542
|
+
serializer
|
543
|
+
};
|
544
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
545
|
+
path:
|
546
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
547
|
+
httpMethod: "DELETE",
|
398
548
|
responses: {
|
399
549
|
200: {},
|
550
|
+
201: {},
|
400
551
|
202: {},
|
401
552
|
204: {},
|
402
553
|
default: {
|
403
|
-
bodyMapper: Mappers.
|
554
|
+
bodyMapper: Mappers.ErrorResponse
|
404
555
|
}
|
405
556
|
},
|
406
|
-
|
407
|
-
};
|
408
|
-
|
409
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
410
|
-
httpMethod: "PATCH",
|
411
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
557
|
+
queryParameters: [Parameters.apiVersion1],
|
412
558
|
urlParameters: [
|
559
|
+
Parameters.$host,
|
413
560
|
Parameters.subscriptionId,
|
414
561
|
Parameters.resourceGroupName,
|
415
562
|
Parameters.registryName,
|
416
563
|
Parameters.taskName
|
417
564
|
],
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
parameterPath: "taskUpdateParameters",
|
426
|
-
mapper: {
|
427
|
-
...Mappers.TaskUpdateParameters,
|
428
|
-
required: true
|
429
|
-
}
|
430
|
-
},
|
565
|
+
headerParameters: [Parameters.accept],
|
566
|
+
serializer
|
567
|
+
};
|
568
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
569
|
+
path:
|
570
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}",
|
571
|
+
httpMethod: "PATCH",
|
431
572
|
responses: {
|
432
573
|
200: {
|
433
574
|
bodyMapper: Mappers.Task
|
@@ -435,30 +576,71 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
435
576
|
201: {
|
436
577
|
bodyMapper: Mappers.Task
|
437
578
|
},
|
579
|
+
202: {
|
580
|
+
bodyMapper: Mappers.Task
|
581
|
+
},
|
582
|
+
204: {
|
583
|
+
bodyMapper: Mappers.Task
|
584
|
+
},
|
438
585
|
default: {
|
439
|
-
bodyMapper: Mappers.
|
586
|
+
bodyMapper: Mappers.ErrorResponse
|
440
587
|
}
|
441
588
|
},
|
589
|
+
requestBody: Parameters.taskUpdateParameters,
|
590
|
+
queryParameters: [Parameters.apiVersion1],
|
591
|
+
urlParameters: [
|
592
|
+
Parameters.$host,
|
593
|
+
Parameters.subscriptionId,
|
594
|
+
Parameters.resourceGroupName,
|
595
|
+
Parameters.registryName,
|
596
|
+
Parameters.taskName
|
597
|
+
],
|
598
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
599
|
+
mediaType: "json",
|
442
600
|
serializer
|
443
601
|
};
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
602
|
+
const getDetailsOperationSpec: coreClient.OperationSpec = {
|
603
|
+
path:
|
604
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails",
|
605
|
+
httpMethod: "POST",
|
606
|
+
responses: {
|
607
|
+
200: {
|
608
|
+
bodyMapper: Mappers.Task
|
609
|
+
},
|
610
|
+
default: {
|
611
|
+
bodyMapper: Mappers.ErrorResponse
|
612
|
+
}
|
613
|
+
},
|
614
|
+
queryParameters: [Parameters.apiVersion1],
|
449
615
|
urlParameters: [
|
450
|
-
Parameters
|
451
|
-
|
452
|
-
|
453
|
-
Parameters.
|
616
|
+
Parameters.$host,
|
617
|
+
Parameters.subscriptionId,
|
618
|
+
Parameters.resourceGroupName,
|
619
|
+
Parameters.registryName,
|
620
|
+
Parameters.taskName
|
454
621
|
],
|
622
|
+
headerParameters: [Parameters.accept],
|
623
|
+
serializer
|
624
|
+
};
|
625
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
626
|
+
path: "{nextLink}",
|
627
|
+
httpMethod: "GET",
|
455
628
|
responses: {
|
456
629
|
200: {
|
457
630
|
bodyMapper: Mappers.TaskListResult
|
458
631
|
},
|
459
632
|
default: {
|
460
|
-
bodyMapper: Mappers.
|
633
|
+
bodyMapper: Mappers.ErrorResponse
|
461
634
|
}
|
462
635
|
},
|
636
|
+
queryParameters: [Parameters.apiVersion1],
|
637
|
+
urlParameters: [
|
638
|
+
Parameters.$host,
|
639
|
+
Parameters.subscriptionId,
|
640
|
+
Parameters.resourceGroupName,
|
641
|
+
Parameters.registryName,
|
642
|
+
Parameters.nextLink
|
643
|
+
],
|
644
|
+
headerParameters: [Parameters.accept],
|
463
645
|
serializer
|
464
646
|
};
|