@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,449 @@
|
|
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
|
+
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { ImportPipelines } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
13
|
+
import * as Parameters from "../models/parameters";
|
14
|
+
import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
|
+
import { LroImpl } from "../lroImpl";
|
17
|
+
import {
|
18
|
+
ImportPipeline,
|
19
|
+
ImportPipelinesListNextOptionalParams,
|
20
|
+
ImportPipelinesListOptionalParams,
|
21
|
+
ImportPipelinesGetOptionalParams,
|
22
|
+
ImportPipelinesGetResponse,
|
23
|
+
ImportPipelinesCreateOptionalParams,
|
24
|
+
ImportPipelinesCreateResponse,
|
25
|
+
ImportPipelinesDeleteOptionalParams,
|
26
|
+
ImportPipelinesListResponse,
|
27
|
+
ImportPipelinesListNextResponse
|
28
|
+
} from "../models";
|
29
|
+
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
31
|
+
/** Class containing ImportPipelines operations. */
|
32
|
+
export class ImportPipelinesImpl implements ImportPipelines {
|
33
|
+
private readonly client: ContainerRegistryManagementClientContext;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Initialize a new instance of the class ImportPipelines class.
|
37
|
+
* @param client Reference to the service client
|
38
|
+
*/
|
39
|
+
constructor(client: ContainerRegistryManagementClientContext) {
|
40
|
+
this.client = client;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Lists all import pipelines for the specified container registry.
|
45
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
46
|
+
* @param registryName The name of the container registry.
|
47
|
+
* @param options The options parameters.
|
48
|
+
*/
|
49
|
+
public list(
|
50
|
+
resourceGroupName: string,
|
51
|
+
registryName: string,
|
52
|
+
options?: ImportPipelinesListOptionalParams
|
53
|
+
): PagedAsyncIterableIterator<ImportPipeline> {
|
54
|
+
const iter = this.listPagingAll(resourceGroupName, registryName, options);
|
55
|
+
return {
|
56
|
+
next() {
|
57
|
+
return iter.next();
|
58
|
+
},
|
59
|
+
[Symbol.asyncIterator]() {
|
60
|
+
return this;
|
61
|
+
},
|
62
|
+
byPage: () => {
|
63
|
+
return this.listPagingPage(resourceGroupName, registryName, options);
|
64
|
+
}
|
65
|
+
};
|
66
|
+
}
|
67
|
+
|
68
|
+
private async *listPagingPage(
|
69
|
+
resourceGroupName: string,
|
70
|
+
registryName: string,
|
71
|
+
options?: ImportPipelinesListOptionalParams
|
72
|
+
): AsyncIterableIterator<ImportPipeline[]> {
|
73
|
+
let result = await this._list(resourceGroupName, registryName, options);
|
74
|
+
yield result.value || [];
|
75
|
+
let continuationToken = result.nextLink;
|
76
|
+
while (continuationToken) {
|
77
|
+
result = await this._listNext(
|
78
|
+
resourceGroupName,
|
79
|
+
registryName,
|
80
|
+
continuationToken,
|
81
|
+
options
|
82
|
+
);
|
83
|
+
continuationToken = result.nextLink;
|
84
|
+
yield result.value || [];
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
private async *listPagingAll(
|
89
|
+
resourceGroupName: string,
|
90
|
+
registryName: string,
|
91
|
+
options?: ImportPipelinesListOptionalParams
|
92
|
+
): AsyncIterableIterator<ImportPipeline> {
|
93
|
+
for await (const page of this.listPagingPage(
|
94
|
+
resourceGroupName,
|
95
|
+
registryName,
|
96
|
+
options
|
97
|
+
)) {
|
98
|
+
yield* page;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Gets the properties of the import pipeline.
|
104
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
105
|
+
* @param registryName The name of the container registry.
|
106
|
+
* @param importPipelineName The name of the import pipeline.
|
107
|
+
* @param options The options parameters.
|
108
|
+
*/
|
109
|
+
get(
|
110
|
+
resourceGroupName: string,
|
111
|
+
registryName: string,
|
112
|
+
importPipelineName: string,
|
113
|
+
options?: ImportPipelinesGetOptionalParams
|
114
|
+
): Promise<ImportPipelinesGetResponse> {
|
115
|
+
return this.client.sendOperationRequest(
|
116
|
+
{ resourceGroupName, registryName, importPipelineName, options },
|
117
|
+
getOperationSpec
|
118
|
+
);
|
119
|
+
}
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Creates an import pipeline for a container registry with the specified parameters.
|
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 importPipelineName The name of the import pipeline.
|
126
|
+
* @param importPipelineCreateParameters The parameters for creating an import pipeline.
|
127
|
+
* @param options The options parameters.
|
128
|
+
*/
|
129
|
+
async beginCreate(
|
130
|
+
resourceGroupName: string,
|
131
|
+
registryName: string,
|
132
|
+
importPipelineName: string,
|
133
|
+
importPipelineCreateParameters: ImportPipeline,
|
134
|
+
options?: ImportPipelinesCreateOptionalParams
|
135
|
+
): Promise<
|
136
|
+
PollerLike<
|
137
|
+
PollOperationState<ImportPipelinesCreateResponse>,
|
138
|
+
ImportPipelinesCreateResponse
|
139
|
+
>
|
140
|
+
> {
|
141
|
+
const directSendOperation = async (
|
142
|
+
args: coreClient.OperationArguments,
|
143
|
+
spec: coreClient.OperationSpec
|
144
|
+
): Promise<ImportPipelinesCreateResponse> => {
|
145
|
+
return this.client.sendOperationRequest(args, spec);
|
146
|
+
};
|
147
|
+
const sendOperation = async (
|
148
|
+
args: coreClient.OperationArguments,
|
149
|
+
spec: coreClient.OperationSpec
|
150
|
+
) => {
|
151
|
+
let currentRawResponse:
|
152
|
+
| coreClient.FullOperationResponse
|
153
|
+
| undefined = undefined;
|
154
|
+
const providedCallback = args.options?.onResponse;
|
155
|
+
const callback: coreClient.RawResponseCallback = (
|
156
|
+
rawResponse: coreClient.FullOperationResponse,
|
157
|
+
flatResponse: unknown
|
158
|
+
) => {
|
159
|
+
currentRawResponse = rawResponse;
|
160
|
+
providedCallback?.(rawResponse, flatResponse);
|
161
|
+
};
|
162
|
+
const updatedArgs = {
|
163
|
+
...args,
|
164
|
+
options: {
|
165
|
+
...args.options,
|
166
|
+
onResponse: callback
|
167
|
+
}
|
168
|
+
};
|
169
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
170
|
+
return {
|
171
|
+
flatResponse,
|
172
|
+
rawResponse: {
|
173
|
+
statusCode: currentRawResponse!.status,
|
174
|
+
body: currentRawResponse!.parsedBody,
|
175
|
+
headers: currentRawResponse!.headers.toJSON()
|
176
|
+
}
|
177
|
+
};
|
178
|
+
};
|
179
|
+
|
180
|
+
const lro = new LroImpl(
|
181
|
+
sendOperation,
|
182
|
+
{
|
183
|
+
resourceGroupName,
|
184
|
+
registryName,
|
185
|
+
importPipelineName,
|
186
|
+
importPipelineCreateParameters,
|
187
|
+
options
|
188
|
+
},
|
189
|
+
createOperationSpec
|
190
|
+
);
|
191
|
+
return new LroEngine(lro, {
|
192
|
+
resumeFrom: options?.resumeFrom,
|
193
|
+
intervalInMs: options?.updateIntervalInMs
|
194
|
+
});
|
195
|
+
}
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Creates an import pipeline for a container registry with the specified parameters.
|
199
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
200
|
+
* @param registryName The name of the container registry.
|
201
|
+
* @param importPipelineName The name of the import pipeline.
|
202
|
+
* @param importPipelineCreateParameters The parameters for creating an import pipeline.
|
203
|
+
* @param options The options parameters.
|
204
|
+
*/
|
205
|
+
async beginCreateAndWait(
|
206
|
+
resourceGroupName: string,
|
207
|
+
registryName: string,
|
208
|
+
importPipelineName: string,
|
209
|
+
importPipelineCreateParameters: ImportPipeline,
|
210
|
+
options?: ImportPipelinesCreateOptionalParams
|
211
|
+
): Promise<ImportPipelinesCreateResponse> {
|
212
|
+
const poller = await this.beginCreate(
|
213
|
+
resourceGroupName,
|
214
|
+
registryName,
|
215
|
+
importPipelineName,
|
216
|
+
importPipelineCreateParameters,
|
217
|
+
options
|
218
|
+
);
|
219
|
+
return poller.pollUntilDone();
|
220
|
+
}
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Deletes an import pipeline from a container registry.
|
224
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
225
|
+
* @param registryName The name of the container registry.
|
226
|
+
* @param importPipelineName The name of the import pipeline.
|
227
|
+
* @param options The options parameters.
|
228
|
+
*/
|
229
|
+
async beginDelete(
|
230
|
+
resourceGroupName: string,
|
231
|
+
registryName: string,
|
232
|
+
importPipelineName: string,
|
233
|
+
options?: ImportPipelinesDeleteOptionalParams
|
234
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
235
|
+
const directSendOperation = async (
|
236
|
+
args: coreClient.OperationArguments,
|
237
|
+
spec: coreClient.OperationSpec
|
238
|
+
): Promise<void> => {
|
239
|
+
return this.client.sendOperationRequest(args, spec);
|
240
|
+
};
|
241
|
+
const sendOperation = async (
|
242
|
+
args: coreClient.OperationArguments,
|
243
|
+
spec: coreClient.OperationSpec
|
244
|
+
) => {
|
245
|
+
let currentRawResponse:
|
246
|
+
| coreClient.FullOperationResponse
|
247
|
+
| undefined = undefined;
|
248
|
+
const providedCallback = args.options?.onResponse;
|
249
|
+
const callback: coreClient.RawResponseCallback = (
|
250
|
+
rawResponse: coreClient.FullOperationResponse,
|
251
|
+
flatResponse: unknown
|
252
|
+
) => {
|
253
|
+
currentRawResponse = rawResponse;
|
254
|
+
providedCallback?.(rawResponse, flatResponse);
|
255
|
+
};
|
256
|
+
const updatedArgs = {
|
257
|
+
...args,
|
258
|
+
options: {
|
259
|
+
...args.options,
|
260
|
+
onResponse: callback
|
261
|
+
}
|
262
|
+
};
|
263
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
264
|
+
return {
|
265
|
+
flatResponse,
|
266
|
+
rawResponse: {
|
267
|
+
statusCode: currentRawResponse!.status,
|
268
|
+
body: currentRawResponse!.parsedBody,
|
269
|
+
headers: currentRawResponse!.headers.toJSON()
|
270
|
+
}
|
271
|
+
};
|
272
|
+
};
|
273
|
+
|
274
|
+
const lro = new LroImpl(
|
275
|
+
sendOperation,
|
276
|
+
{ resourceGroupName, registryName, importPipelineName, options },
|
277
|
+
deleteOperationSpec
|
278
|
+
);
|
279
|
+
return new LroEngine(lro, {
|
280
|
+
resumeFrom: options?.resumeFrom,
|
281
|
+
intervalInMs: options?.updateIntervalInMs
|
282
|
+
});
|
283
|
+
}
|
284
|
+
|
285
|
+
/**
|
286
|
+
* Deletes an import pipeline from a container registry.
|
287
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
288
|
+
* @param registryName The name of the container registry.
|
289
|
+
* @param importPipelineName The name of the import pipeline.
|
290
|
+
* @param options The options parameters.
|
291
|
+
*/
|
292
|
+
async beginDeleteAndWait(
|
293
|
+
resourceGroupName: string,
|
294
|
+
registryName: string,
|
295
|
+
importPipelineName: string,
|
296
|
+
options?: ImportPipelinesDeleteOptionalParams
|
297
|
+
): Promise<void> {
|
298
|
+
const poller = await this.beginDelete(
|
299
|
+
resourceGroupName,
|
300
|
+
registryName,
|
301
|
+
importPipelineName,
|
302
|
+
options
|
303
|
+
);
|
304
|
+
return poller.pollUntilDone();
|
305
|
+
}
|
306
|
+
|
307
|
+
/**
|
308
|
+
* Lists all import pipelines for the specified container registry.
|
309
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
310
|
+
* @param registryName The name of the container registry.
|
311
|
+
* @param options The options parameters.
|
312
|
+
*/
|
313
|
+
private _list(
|
314
|
+
resourceGroupName: string,
|
315
|
+
registryName: string,
|
316
|
+
options?: ImportPipelinesListOptionalParams
|
317
|
+
): Promise<ImportPipelinesListResponse> {
|
318
|
+
return this.client.sendOperationRequest(
|
319
|
+
{ resourceGroupName, registryName, options },
|
320
|
+
listOperationSpec
|
321
|
+
);
|
322
|
+
}
|
323
|
+
|
324
|
+
/**
|
325
|
+
* ListNext
|
326
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
327
|
+
* @param registryName The name of the container registry.
|
328
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
329
|
+
* @param options The options parameters.
|
330
|
+
*/
|
331
|
+
private _listNext(
|
332
|
+
resourceGroupName: string,
|
333
|
+
registryName: string,
|
334
|
+
nextLink: string,
|
335
|
+
options?: ImportPipelinesListNextOptionalParams
|
336
|
+
): Promise<ImportPipelinesListNextResponse> {
|
337
|
+
return this.client.sendOperationRequest(
|
338
|
+
{ resourceGroupName, registryName, nextLink, options },
|
339
|
+
listNextOperationSpec
|
340
|
+
);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
// Operation Specifications
|
344
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
345
|
+
|
346
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
347
|
+
path:
|
348
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}",
|
349
|
+
httpMethod: "GET",
|
350
|
+
responses: {
|
351
|
+
200: {
|
352
|
+
bodyMapper: Mappers.ImportPipeline
|
353
|
+
}
|
354
|
+
},
|
355
|
+
queryParameters: [Parameters.apiVersion],
|
356
|
+
urlParameters: [
|
357
|
+
Parameters.$host,
|
358
|
+
Parameters.subscriptionId,
|
359
|
+
Parameters.resourceGroupName,
|
360
|
+
Parameters.registryName,
|
361
|
+
Parameters.importPipelineName
|
362
|
+
],
|
363
|
+
headerParameters: [Parameters.accept],
|
364
|
+
serializer
|
365
|
+
};
|
366
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
367
|
+
path:
|
368
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}",
|
369
|
+
httpMethod: "PUT",
|
370
|
+
responses: {
|
371
|
+
200: {
|
372
|
+
bodyMapper: Mappers.ImportPipeline
|
373
|
+
},
|
374
|
+
201: {
|
375
|
+
bodyMapper: Mappers.ImportPipeline
|
376
|
+
},
|
377
|
+
202: {
|
378
|
+
bodyMapper: Mappers.ImportPipeline
|
379
|
+
},
|
380
|
+
204: {
|
381
|
+
bodyMapper: Mappers.ImportPipeline
|
382
|
+
}
|
383
|
+
},
|
384
|
+
requestBody: Parameters.importPipelineCreateParameters,
|
385
|
+
queryParameters: [Parameters.apiVersion],
|
386
|
+
urlParameters: [
|
387
|
+
Parameters.$host,
|
388
|
+
Parameters.subscriptionId,
|
389
|
+
Parameters.resourceGroupName,
|
390
|
+
Parameters.registryName,
|
391
|
+
Parameters.importPipelineName
|
392
|
+
],
|
393
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
394
|
+
mediaType: "json",
|
395
|
+
serializer
|
396
|
+
};
|
397
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
398
|
+
path:
|
399
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}",
|
400
|
+
httpMethod: "DELETE",
|
401
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
402
|
+
queryParameters: [Parameters.apiVersion],
|
403
|
+
urlParameters: [
|
404
|
+
Parameters.$host,
|
405
|
+
Parameters.subscriptionId,
|
406
|
+
Parameters.resourceGroupName,
|
407
|
+
Parameters.registryName,
|
408
|
+
Parameters.importPipelineName
|
409
|
+
],
|
410
|
+
serializer
|
411
|
+
};
|
412
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
413
|
+
path:
|
414
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines",
|
415
|
+
httpMethod: "GET",
|
416
|
+
responses: {
|
417
|
+
200: {
|
418
|
+
bodyMapper: Mappers.ImportPipelineListResult
|
419
|
+
}
|
420
|
+
},
|
421
|
+
queryParameters: [Parameters.apiVersion],
|
422
|
+
urlParameters: [
|
423
|
+
Parameters.$host,
|
424
|
+
Parameters.subscriptionId,
|
425
|
+
Parameters.resourceGroupName,
|
426
|
+
Parameters.registryName
|
427
|
+
],
|
428
|
+
headerParameters: [Parameters.accept],
|
429
|
+
serializer
|
430
|
+
};
|
431
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
432
|
+
path: "{nextLink}",
|
433
|
+
httpMethod: "GET",
|
434
|
+
responses: {
|
435
|
+
200: {
|
436
|
+
bodyMapper: Mappers.ImportPipelineListResult
|
437
|
+
}
|
438
|
+
},
|
439
|
+
queryParameters: [Parameters.apiVersion],
|
440
|
+
urlParameters: [
|
441
|
+
Parameters.$host,
|
442
|
+
Parameters.subscriptionId,
|
443
|
+
Parameters.resourceGroupName,
|
444
|
+
Parameters.registryName,
|
445
|
+
Parameters.nextLink
|
446
|
+
],
|
447
|
+
headerParameters: [Parameters.accept],
|
448
|
+
serializer
|
449
|
+
};
|
package/src/operations/index.ts
CHANGED
@@ -1,18 +1,23 @@
|
|
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
|
|
9
|
+
export * from "./connectedRegistries";
|
10
|
+
export * from "./exportPipelines";
|
11
11
|
export * from "./registries";
|
12
|
+
export * from "./importPipelines";
|
12
13
|
export * from "./operations";
|
14
|
+
export * from "./pipelineRuns";
|
15
|
+
export * from "./privateEndpointConnections";
|
13
16
|
export * from "./replications";
|
17
|
+
export * from "./scopeMaps";
|
18
|
+
export * from "./tokens";
|
14
19
|
export * from "./webhooks";
|
20
|
+
export * from "./agentPools";
|
15
21
|
export * from "./runs";
|
22
|
+
export * from "./taskRuns";
|
16
23
|
export * from "./tasks";
|
17
|
-
export * from "./scopeMaps";
|
18
|
-
export * from "./tokens";
|
@@ -1,26 +1,33 @@
|
|
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
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
14
13
|
import * as Parameters from "../models/parameters";
|
15
14
|
import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
|
15
|
+
import {
|
16
|
+
OperationDefinition,
|
17
|
+
OperationsListNextOptionalParams,
|
18
|
+
OperationsListOptionalParams,
|
19
|
+
OperationsListResponse,
|
20
|
+
OperationsListNextResponse
|
21
|
+
} from "../models";
|
16
22
|
|
17
|
-
|
18
|
-
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
24
|
+
/** Class containing Operations operations. */
|
25
|
+
export class OperationsImpl implements Operations {
|
19
26
|
private readonly client: ContainerRegistryManagementClientContext;
|
20
27
|
|
21
28
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
29
|
+
* Initialize a new instance of the class Operations class.
|
30
|
+
* @param client Reference to the service client
|
24
31
|
*/
|
25
32
|
constructor(client: ContainerRegistryManagementClientContext) {
|
26
33
|
this.client = client;
|
@@ -28,96 +35,97 @@ export class Operations {
|
|
28
35
|
|
29
36
|
/**
|
30
37
|
* Lists all of the available Azure Container Registry REST API operations.
|
31
|
-
* @param
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
38
|
+
* @param options The options parameters.
|
33
39
|
*/
|
34
|
-
list(
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
45
|
-
return this.client.sendOperationRequest(
|
46
|
-
{
|
47
|
-
options
|
40
|
+
public list(
|
41
|
+
options?: OperationsListOptionalParams
|
42
|
+
): PagedAsyncIterableIterator<OperationDefinition> {
|
43
|
+
const iter = this.listPagingAll(options);
|
44
|
+
return {
|
45
|
+
next() {
|
46
|
+
return iter.next();
|
47
|
+
},
|
48
|
+
[Symbol.asyncIterator]() {
|
49
|
+
return this;
|
48
50
|
},
|
49
|
-
|
50
|
-
|
51
|
+
byPage: () => {
|
52
|
+
return this.listPagingPage(options);
|
53
|
+
}
|
54
|
+
};
|
55
|
+
}
|
56
|
+
|
57
|
+
private async *listPagingPage(
|
58
|
+
options?: OperationsListOptionalParams
|
59
|
+
): AsyncIterableIterator<OperationDefinition[]> {
|
60
|
+
let result = await this._list(options);
|
61
|
+
yield result.value || [];
|
62
|
+
let continuationToken = result.nextLink;
|
63
|
+
while (continuationToken) {
|
64
|
+
result = await this._listNext(continuationToken, options);
|
65
|
+
continuationToken = result.nextLink;
|
66
|
+
yield result.value || [];
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
private async *listPagingAll(
|
71
|
+
options?: OperationsListOptionalParams
|
72
|
+
): AsyncIterableIterator<OperationDefinition> {
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
74
|
+
yield* page;
|
75
|
+
}
|
51
76
|
}
|
52
77
|
|
53
78
|
/**
|
54
79
|
* Lists all of the available Azure Container Registry REST API operations.
|
55
|
-
* @param
|
56
|
-
* @param [options] The optional parameters
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
58
|
-
*/
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
60
|
-
/**
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
62
|
-
* @param callback The callback
|
80
|
+
* @param options The options parameters.
|
63
81
|
*/
|
64
|
-
|
82
|
+
private _list(
|
83
|
+
options?: OperationsListOptionalParams
|
84
|
+
): Promise<OperationsListResponse> {
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
86
|
+
}
|
87
|
+
|
65
88
|
/**
|
66
|
-
*
|
67
|
-
* @param
|
68
|
-
* @param
|
89
|
+
* ListNext
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
91
|
+
* @param options The options parameters.
|
69
92
|
*/
|
70
|
-
|
71
|
-
|
93
|
+
private _listNext(
|
94
|
+
nextLink: string,
|
95
|
+
options?: OperationsListNextOptionalParams
|
96
|
+
): Promise<OperationsListNextResponse> {
|
72
97
|
return this.client.sendOperationRequest(
|
73
|
-
{
|
74
|
-
|
75
|
-
|
76
|
-
},
|
77
|
-
listNextOperationSpec,
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
98
|
+
{ nextLink, options },
|
99
|
+
listNextOperationSpec
|
100
|
+
);
|
79
101
|
}
|
80
102
|
}
|
81
|
-
|
82
103
|
// Operation Specifications
|
83
|
-
const serializer =
|
84
|
-
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
105
|
+
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
107
|
+
path: "/providers/Microsoft.ContainerRegistry/operations",
|
85
108
|
httpMethod: "GET",
|
86
|
-
path: "providers/Microsoft.ContainerRegistry/operations",
|
87
|
-
queryParameters: [
|
88
|
-
Parameters.apiVersion0
|
89
|
-
],
|
90
|
-
headerParameters: [
|
91
|
-
Parameters.acceptLanguage
|
92
|
-
],
|
93
109
|
responses: {
|
94
110
|
200: {
|
95
111
|
bodyMapper: Mappers.OperationListResult
|
96
|
-
},
|
97
|
-
default: {
|
98
|
-
bodyMapper: Mappers.CloudError
|
99
112
|
}
|
100
113
|
},
|
114
|
+
queryParameters: [Parameters.apiVersion],
|
115
|
+
urlParameters: [Parameters.$host],
|
116
|
+
headerParameters: [Parameters.accept],
|
101
117
|
serializer
|
102
118
|
};
|
103
|
-
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
105
|
-
httpMethod: "GET",
|
106
|
-
baseUrl: "https://management.azure.com",
|
119
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
107
120
|
path: "{nextLink}",
|
108
|
-
|
109
|
-
Parameters.nextPageLink
|
110
|
-
],
|
111
|
-
headerParameters: [
|
112
|
-
Parameters.acceptLanguage
|
113
|
-
],
|
121
|
+
httpMethod: "GET",
|
114
122
|
responses: {
|
115
123
|
200: {
|
116
124
|
bodyMapper: Mappers.OperationListResult
|
117
|
-
},
|
118
|
-
default: {
|
119
|
-
bodyMapper: Mappers.CloudError
|
120
125
|
}
|
121
126
|
},
|
127
|
+
queryParameters: [Parameters.apiVersion],
|
128
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
129
|
+
headerParameters: [Parameters.accept],
|
122
130
|
serializer
|
123
131
|
};
|