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