@azure/arm-containerregistry 9.0.0 → 10.0.0-alpha.20211214.3
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 +25 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +66 -84
- package/dist/index.js +12663 -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 +3429 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +341 -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 +2391 -2652
- 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/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- 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/{esm/models/index.js → dist-esm/src/operationsInterfaces/runs.js} +2 -1
- 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 +4 -0
- package/dist-esm/test/containerregistry_examples.d.ts.map +1 -0
- package/dist-esm/test/containerregistry_examples.js +329 -0
- package/dist-esm/test/containerregistry_examples.js.map +1 -0
- package/package.json +63 -21
- package/review/arm-containerregistry.api.md +2919 -0
- package/rollup.config.js +181 -30
- package/src/containerRegistryManagementClient.ts +76 -59
- package/src/containerRegistryManagementClientContext.ts +43 -40
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2806 -5317
- package/src/models/mappers.ts +2531 -2790
- package/src/models/parameters.ts +335 -124
- package/src/operations/agentPools.ts +465 -285
- package/src/operations/connectedRegistries.ts +507 -253
- package/src/operations/exportPipelines.ts +318 -201
- package/src/operations/importPipelines.ts +318 -201
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +82 -76
- package/src/operations/pipelineRuns.ts +318 -201
- package/src/operations/privateEndpointConnections.ts +322 -196
- package/src/operations/registries.ts +1008 -744
- package/src/operations/replications.ts +418 -238
- package/src/operations/runs.ts +348 -239
- package/src/operations/scopeMaps.ts +418 -238
- package/src/operations/taskRuns.ts +462 -282
- package/src/operations/tasks.ts +451 -271
- package/src/operations/tokens.ts +412 -238
- package/src/operations/webhooks.ts +604 -414
- 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/src/operationsInterfaces/index.ts +23 -0
- 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 +3 -3
- package/types/arm-containerregistry.d.ts +5001 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-containerregistry.js +0 -12452
- 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 -38
- package/esm/containerRegistryManagementClient.d.ts.map +0 -1
- package/esm/containerRegistryManagementClient.js +0 -51
- package/esm/containerRegistryManagementClient.js.map +0 -1
- package/esm/containerRegistryManagementClientContext.d.ts +0 -21
- package/esm/containerRegistryManagementClientContext.d.ts.map +0 -1
- package/esm/containerRegistryManagementClientContext.js +0 -59
- package/esm/containerRegistryManagementClientContext.js.map +0 -1
- package/esm/models/agentPoolsMappers.d.ts +0 -2
- package/esm/models/agentPoolsMappers.d.ts.map +0 -1
- package/esm/models/agentPoolsMappers.js +0 -9
- package/esm/models/agentPoolsMappers.js.map +0 -1
- package/esm/models/connectedRegistriesMappers.d.ts +0 -2
- package/esm/models/connectedRegistriesMappers.d.ts.map +0 -1
- package/esm/models/connectedRegistriesMappers.js +0 -9
- package/esm/models/connectedRegistriesMappers.js.map +0 -1
- package/esm/models/exportPipelinesMappers.d.ts +0 -2
- package/esm/models/exportPipelinesMappers.d.ts.map +0 -1
- package/esm/models/exportPipelinesMappers.js +0 -9
- package/esm/models/exportPipelinesMappers.js.map +0 -1
- package/esm/models/importPipelinesMappers.d.ts +0 -2
- package/esm/models/importPipelinesMappers.d.ts.map +0 -1
- package/esm/models/importPipelinesMappers.js +0 -9
- package/esm/models/importPipelinesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -6004
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -179
- 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 -24
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -301
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/pipelineRunsMappers.d.ts +0 -2
- package/esm/models/pipelineRunsMappers.d.ts.map +0 -1
- package/esm/models/pipelineRunsMappers.js +0 -9
- package/esm/models/pipelineRunsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.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/taskRunsMappers.d.ts +0 -2
- package/esm/models/taskRunsMappers.d.ts.map +0 -1
- package/esm/models/taskRunsMappers.js +0 -9
- package/esm/models/taskRunsMappers.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/agentPools.d.ts +0 -159
- package/esm/operations/agentPools.d.ts.map +0 -1
- package/esm/operations/agentPools.js +0 -332
- package/esm/operations/agentPools.js.map +0 -1
- package/esm/operations/connectedRegistries.d.ts +0 -153
- package/esm/operations/connectedRegistries.d.ts.map +0 -1
- package/esm/operations/connectedRegistries.js +0 -353
- package/esm/operations/connectedRegistries.js.map +0 -1
- package/esm/operations/exportPipelines.d.ts +0 -115
- package/esm/operations/exportPipelines.d.ts.map +0 -1
- package/esm/operations/exportPipelines.js +0 -236
- package/esm/operations/exportPipelines.js.map +0 -1
- package/esm/operations/importPipelines.d.ts +0 -115
- package/esm/operations/importPipelines.d.ts.map +0 -1
- package/esm/operations/importPipelines.js +0 -236
- package/esm/operations/importPipelines.js.map +0 -1
- 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 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/pipelineRuns.d.ts +0 -115
- package/esm/operations/pipelineRuns.d.ts.map +0 -1
- package/esm/operations/pipelineRuns.js +0 -236
- package/esm/operations/pipelineRuns.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -117
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -238
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/registries.d.ts +0 -358
- package/esm/operations/registries.d.ts.map +0 -1
- package/esm/operations/registries.js +0 -729
- 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 -299
- 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 -272
- 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 -299
- package/esm/operations/scopeMaps.js.map +0 -1
- package/esm/operations/taskRuns.d.ts +0 -159
- package/esm/operations/taskRuns.d.ts.map +0 -1
- package/esm/operations/taskRuns.js +0 -332
- package/esm/operations/taskRuns.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 -332
- 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 -299
- 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 -427
- package/esm/operations/webhooks.js.map +0 -1
- package/src/models/agentPoolsMappers.ts +0 -102
- package/src/models/connectedRegistriesMappers.ts +0 -102
- package/src/models/exportPipelinesMappers.ts +0 -98
- package/src/models/importPipelinesMappers.ts +0 -98
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/pipelineRunsMappers.ts +0 -98
- package/src/models/privateEndpointConnectionsMappers.ts +0 -98
- package/src/models/registriesMappers.ts +0 -117
- package/src/models/replicationsMappers.ts +0 -99
- package/src/models/runsMappers.ts +0 -102
- package/src/models/scopeMapsMappers.ts +0 -99
- package/src/models/taskRunsMappers.ts +0 -101
- package/src/models/tasksMappers.ts +0 -112
- package/src/models/tokensMappers.ts +0 -99
- package/src/models/webhooksMappers.ts +0 -111
package/src/operations/runs.ts
CHANGED
@@ -3,24 +3,41 @@
|
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
7
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
*/
|
9
8
|
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import * as
|
13
|
-
import * as Mappers from "../models/
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { Runs } 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
|
+
import { LroImpl } from "../lroImpl";
|
17
|
+
import {
|
18
|
+
Run,
|
19
|
+
RunsListNextOptionalParams,
|
20
|
+
RunsListOptionalParams,
|
21
|
+
RunsListResponse,
|
22
|
+
RunsGetOptionalParams,
|
23
|
+
RunsGetResponse,
|
24
|
+
RunUpdateParameters,
|
25
|
+
RunsUpdateOptionalParams,
|
26
|
+
RunsUpdateResponse,
|
27
|
+
RunsGetLogSasUrlOptionalParams,
|
28
|
+
RunsGetLogSasUrlResponse,
|
29
|
+
RunsCancelOptionalParams,
|
30
|
+
RunsListNextResponse
|
31
|
+
} from "../models";
|
16
32
|
|
17
|
-
|
18
|
-
|
33
|
+
/// <reference lib="esnext.asynciterable" />
|
34
|
+
/** Class containing Runs operations. */
|
35
|
+
export class RunsImpl implements Runs {
|
19
36
|
private readonly client: ContainerRegistryManagementClientContext;
|
20
37
|
|
21
38
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
39
|
+
* Initialize a new instance of the class Runs class.
|
40
|
+
* @param client Reference to the service client
|
24
41
|
*/
|
25
42
|
constructor(client: ContainerRegistryManagementClientContext) {
|
26
43
|
this.client = client;
|
@@ -30,68 +47,95 @@ export class Runs {
|
|
30
47
|
* Gets all the runs for a registry.
|
31
48
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
32
49
|
* @param registryName The name of the container registry.
|
33
|
-
* @param
|
34
|
-
* @returns Promise<Models.RunsListResponse>
|
50
|
+
* @param options The options parameters.
|
35
51
|
*/
|
36
|
-
list(
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
52
|
+
public list(
|
53
|
+
resourceGroupName: string,
|
54
|
+
registryName: string,
|
55
|
+
options?: RunsListOptionalParams
|
56
|
+
): PagedAsyncIterableIterator<Run> {
|
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?: RunsListOptionalParams
|
75
|
+
): AsyncIterableIterator<Run[]> {
|
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(
|
53
81
|
resourceGroupName,
|
54
82
|
registryName,
|
83
|
+
continuationToken,
|
55
84
|
options
|
56
|
-
|
57
|
-
|
58
|
-
|
85
|
+
);
|
86
|
+
continuationToken = result.nextLink;
|
87
|
+
yield result.value || [];
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
private async *listPagingAll(
|
92
|
+
resourceGroupName: string,
|
93
|
+
registryName: string,
|
94
|
+
options?: RunsListOptionalParams
|
95
|
+
): AsyncIterableIterator<Run> {
|
96
|
+
for await (const page of this.listPagingPage(
|
97
|
+
resourceGroupName,
|
98
|
+
registryName,
|
99
|
+
options
|
100
|
+
)) {
|
101
|
+
yield* page;
|
102
|
+
}
|
59
103
|
}
|
60
104
|
|
61
105
|
/**
|
62
|
-
* Gets the
|
63
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
64
|
-
* @param registryName The name of the container registry.
|
65
|
-
* @param runId The run ID.
|
66
|
-
* @param [options] The optional parameters
|
67
|
-
* @returns Promise<Models.RunsGetResponse>
|
68
|
-
*/
|
69
|
-
get(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase): Promise<Models.RunsGetResponse>;
|
70
|
-
/**
|
106
|
+
* Gets all the runs for a registry.
|
71
107
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
72
108
|
* @param registryName The name of the container registry.
|
73
|
-
* @param
|
74
|
-
* @param callback The callback
|
109
|
+
* @param options The options parameters.
|
75
110
|
*/
|
76
|
-
|
111
|
+
private _list(
|
112
|
+
resourceGroupName: string,
|
113
|
+
registryName: string,
|
114
|
+
options?: RunsListOptionalParams
|
115
|
+
): Promise<RunsListResponse> {
|
116
|
+
return this.client.sendOperationRequest(
|
117
|
+
{ resourceGroupName, registryName, options },
|
118
|
+
listOperationSpec
|
119
|
+
);
|
120
|
+
}
|
121
|
+
|
77
122
|
/**
|
123
|
+
* Gets the detailed information for a given run.
|
78
124
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
79
125
|
* @param registryName The name of the container registry.
|
80
126
|
* @param runId The run ID.
|
81
|
-
* @param options The
|
82
|
-
* @param callback The callback
|
127
|
+
* @param options The options parameters.
|
83
128
|
*/
|
84
|
-
get(
|
85
|
-
|
129
|
+
get(
|
130
|
+
resourceGroupName: string,
|
131
|
+
registryName: string,
|
132
|
+
runId: string,
|
133
|
+
options?: RunsGetOptionalParams
|
134
|
+
): Promise<RunsGetResponse> {
|
86
135
|
return this.client.sendOperationRequest(
|
87
|
-
{
|
88
|
-
|
89
|
-
|
90
|
-
runId,
|
91
|
-
options
|
92
|
-
},
|
93
|
-
getOperationSpec,
|
94
|
-
callback) as Promise<Models.RunsGetResponse>;
|
136
|
+
{ resourceGroupName, registryName, runId, options },
|
137
|
+
getOperationSpec
|
138
|
+
);
|
95
139
|
}
|
96
140
|
|
97
141
|
/**
|
@@ -100,48 +144,109 @@ export class Runs {
|
|
100
144
|
* @param registryName The name of the container registry.
|
101
145
|
* @param runId The run ID.
|
102
146
|
* @param runUpdateParameters The run update properties.
|
103
|
-
* @param
|
104
|
-
* @returns Promise<Models.RunsUpdateResponse>
|
147
|
+
* @param options The options parameters.
|
105
148
|
*/
|
106
|
-
|
107
|
-
|
108
|
-
|
149
|
+
async beginUpdate(
|
150
|
+
resourceGroupName: string,
|
151
|
+
registryName: string,
|
152
|
+
runId: string,
|
153
|
+
runUpdateParameters: RunUpdateParameters,
|
154
|
+
options?: RunsUpdateOptionalParams
|
155
|
+
): Promise<
|
156
|
+
PollerLike<PollOperationState<RunsUpdateResponse>, RunsUpdateResponse>
|
157
|
+
> {
|
158
|
+
const directSendOperation = async (
|
159
|
+
args: coreClient.OperationArguments,
|
160
|
+
spec: coreClient.OperationSpec
|
161
|
+
): Promise<RunsUpdateResponse> => {
|
162
|
+
return this.client.sendOperationRequest(args, spec);
|
163
|
+
};
|
164
|
+
const sendOperation = async (
|
165
|
+
args: coreClient.OperationArguments,
|
166
|
+
spec: coreClient.OperationSpec
|
167
|
+
) => {
|
168
|
+
let currentRawResponse:
|
169
|
+
| coreClient.FullOperationResponse
|
170
|
+
| undefined = undefined;
|
171
|
+
const providedCallback = args.options?.onResponse;
|
172
|
+
const callback: coreClient.RawResponseCallback = (
|
173
|
+
rawResponse: coreClient.FullOperationResponse,
|
174
|
+
flatResponse: unknown
|
175
|
+
) => {
|
176
|
+
currentRawResponse = rawResponse;
|
177
|
+
providedCallback?.(rawResponse, flatResponse);
|
178
|
+
};
|
179
|
+
const updatedArgs = {
|
180
|
+
...args,
|
181
|
+
options: {
|
182
|
+
...args.options,
|
183
|
+
onResponse: callback
|
184
|
+
}
|
185
|
+
};
|
186
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
187
|
+
return {
|
188
|
+
flatResponse,
|
189
|
+
rawResponse: {
|
190
|
+
statusCode: currentRawResponse!.status,
|
191
|
+
body: currentRawResponse!.parsedBody,
|
192
|
+
headers: currentRawResponse!.headers.toJSON()
|
193
|
+
}
|
194
|
+
};
|
195
|
+
};
|
196
|
+
|
197
|
+
const lro = new LroImpl(
|
198
|
+
sendOperation,
|
199
|
+
{ resourceGroupName, registryName, runId, runUpdateParameters, options },
|
200
|
+
updateOperationSpec
|
201
|
+
);
|
202
|
+
return new LroEngine(lro, {
|
203
|
+
resumeFrom: options?.resumeFrom,
|
204
|
+
intervalInMs: options?.updateIntervalInMs
|
205
|
+
});
|
109
206
|
}
|
110
207
|
|
111
208
|
/**
|
112
|
-
*
|
113
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
114
|
-
* @param registryName The name of the container registry.
|
115
|
-
* @param runId The run ID.
|
116
|
-
* @param [options] The optional parameters
|
117
|
-
* @returns Promise<Models.RunsGetLogSasUrlResponse>
|
118
|
-
*/
|
119
|
-
getLogSasUrl(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase): Promise<Models.RunsGetLogSasUrlResponse>;
|
120
|
-
/**
|
209
|
+
* Patch the run properties.
|
121
210
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
122
211
|
* @param registryName The name of the container registry.
|
123
212
|
* @param runId The run ID.
|
124
|
-
* @param
|
213
|
+
* @param runUpdateParameters The run update properties.
|
214
|
+
* @param options The options parameters.
|
125
215
|
*/
|
126
|
-
|
216
|
+
async beginUpdateAndWait(
|
217
|
+
resourceGroupName: string,
|
218
|
+
registryName: string,
|
219
|
+
runId: string,
|
220
|
+
runUpdateParameters: RunUpdateParameters,
|
221
|
+
options?: RunsUpdateOptionalParams
|
222
|
+
): Promise<RunsUpdateResponse> {
|
223
|
+
const poller = await this.beginUpdate(
|
224
|
+
resourceGroupName,
|
225
|
+
registryName,
|
226
|
+
runId,
|
227
|
+
runUpdateParameters,
|
228
|
+
options
|
229
|
+
);
|
230
|
+
return poller.pollUntilDone();
|
231
|
+
}
|
232
|
+
|
127
233
|
/**
|
234
|
+
* Gets a link to download the run logs.
|
128
235
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
129
236
|
* @param registryName The name of the container registry.
|
130
237
|
* @param runId The run ID.
|
131
|
-
* @param options The
|
132
|
-
* @param callback The callback
|
238
|
+
* @param options The options parameters.
|
133
239
|
*/
|
134
|
-
getLogSasUrl(
|
135
|
-
|
240
|
+
getLogSasUrl(
|
241
|
+
resourceGroupName: string,
|
242
|
+
registryName: string,
|
243
|
+
runId: string,
|
244
|
+
options?: RunsGetLogSasUrlOptionalParams
|
245
|
+
): Promise<RunsGetLogSasUrlResponse> {
|
136
246
|
return this.client.sendOperationRequest(
|
137
|
-
{
|
138
|
-
|
139
|
-
|
140
|
-
runId,
|
141
|
-
options
|
142
|
-
},
|
143
|
-
getLogSasUrlOperationSpec,
|
144
|
-
callback) as Promise<Models.RunsGetLogSasUrlResponse>;
|
247
|
+
{ resourceGroupName, registryName, runId, options },
|
248
|
+
getLogSasUrlOperationSpec
|
249
|
+
);
|
145
250
|
}
|
146
251
|
|
147
252
|
/**
|
@@ -149,34 +254,62 @@ export class Runs {
|
|
149
254
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
150
255
|
* @param registryName The name of the container registry.
|
151
256
|
* @param runId The run ID.
|
152
|
-
* @param
|
153
|
-
* @returns Promise<msRest.RestResponse>
|
257
|
+
* @param options The options parameters.
|
154
258
|
*/
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
259
|
+
async beginCancel(
|
260
|
+
resourceGroupName: string,
|
261
|
+
registryName: string,
|
262
|
+
runId: string,
|
263
|
+
options?: RunsCancelOptionalParams
|
264
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
265
|
+
const directSendOperation = async (
|
266
|
+
args: coreClient.OperationArguments,
|
267
|
+
spec: coreClient.OperationSpec
|
268
|
+
): Promise<void> => {
|
269
|
+
return this.client.sendOperationRequest(args, spec);
|
270
|
+
};
|
271
|
+
const sendOperation = async (
|
272
|
+
args: coreClient.OperationArguments,
|
273
|
+
spec: coreClient.OperationSpec
|
274
|
+
) => {
|
275
|
+
let currentRawResponse:
|
276
|
+
| coreClient.FullOperationResponse
|
277
|
+
| undefined = undefined;
|
278
|
+
const providedCallback = args.options?.onResponse;
|
279
|
+
const callback: coreClient.RawResponseCallback = (
|
280
|
+
rawResponse: coreClient.FullOperationResponse,
|
281
|
+
flatResponse: unknown
|
282
|
+
) => {
|
283
|
+
currentRawResponse = rawResponse;
|
284
|
+
providedCallback?.(rawResponse, flatResponse);
|
285
|
+
};
|
286
|
+
const updatedArgs = {
|
287
|
+
...args,
|
288
|
+
options: {
|
289
|
+
...args.options,
|
290
|
+
onResponse: callback
|
291
|
+
}
|
292
|
+
};
|
293
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
294
|
+
return {
|
295
|
+
flatResponse,
|
296
|
+
rawResponse: {
|
297
|
+
statusCode: currentRawResponse!.status,
|
298
|
+
body: currentRawResponse!.parsedBody,
|
299
|
+
headers: currentRawResponse!.headers.toJSON()
|
300
|
+
}
|
301
|
+
};
|
302
|
+
};
|
159
303
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
beginUpdate(resourceGroupName: string, registryName: string, runId: string, runUpdateParameters: Models.RunUpdateParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
170
|
-
return this.client.sendLRORequest(
|
171
|
-
{
|
172
|
-
resourceGroupName,
|
173
|
-
registryName,
|
174
|
-
runId,
|
175
|
-
runUpdateParameters,
|
176
|
-
options
|
177
|
-
},
|
178
|
-
beginUpdateOperationSpec,
|
179
|
-
options);
|
304
|
+
const lro = new LroImpl(
|
305
|
+
sendOperation,
|
306
|
+
{ resourceGroupName, registryName, runId, options },
|
307
|
+
cancelOperationSpec
|
308
|
+
);
|
309
|
+
return new LroEngine(lro, {
|
310
|
+
resumeFrom: options?.resumeFrom,
|
311
|
+
intervalInMs: options?.updateIntervalInMs
|
312
|
+
});
|
180
313
|
}
|
181
314
|
|
182
315
|
/**
|
@@ -184,68 +317,49 @@ export class Runs {
|
|
184
317
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
185
318
|
* @param registryName The name of the container registry.
|
186
319
|
* @param runId The run ID.
|
187
|
-
* @param
|
188
|
-
* @returns Promise<msRestAzure.LROPoller>
|
320
|
+
* @param options The options parameters.
|
189
321
|
*/
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
322
|
+
async beginCancelAndWait(
|
323
|
+
resourceGroupName: string,
|
324
|
+
registryName: string,
|
325
|
+
runId: string,
|
326
|
+
options?: RunsCancelOptionalParams
|
327
|
+
): Promise<void> {
|
328
|
+
const poller = await this.beginCancel(
|
329
|
+
resourceGroupName,
|
330
|
+
registryName,
|
331
|
+
runId,
|
332
|
+
options
|
333
|
+
);
|
334
|
+
return poller.pollUntilDone();
|
200
335
|
}
|
201
336
|
|
202
337
|
/**
|
203
|
-
*
|
204
|
-
* @param
|
205
|
-
* @param
|
206
|
-
* @
|
207
|
-
|
208
|
-
listNext(nextPageLink: string, options?: Models.RunsListNextOptionalParams): Promise<Models.RunsListNextResponse>;
|
209
|
-
/**
|
210
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
211
|
-
* @param callback The callback
|
212
|
-
*/
|
213
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RunListResult>): void;
|
214
|
-
/**
|
215
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
216
|
-
* @param options The optional parameters
|
217
|
-
* @param callback The callback
|
338
|
+
* ListNext
|
339
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
340
|
+
* @param registryName The name of the container registry.
|
341
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
342
|
+
* @param options The options parameters.
|
218
343
|
*/
|
219
|
-
|
220
|
-
|
344
|
+
private _listNext(
|
345
|
+
resourceGroupName: string,
|
346
|
+
registryName: string,
|
347
|
+
nextLink: string,
|
348
|
+
options?: RunsListNextOptionalParams
|
349
|
+
): Promise<RunsListNextResponse> {
|
221
350
|
return this.client.sendOperationRequest(
|
222
|
-
{
|
223
|
-
|
224
|
-
|
225
|
-
},
|
226
|
-
listNextOperationSpec,
|
227
|
-
callback) as Promise<Models.RunsListNextResponse>;
|
351
|
+
{ resourceGroupName, registryName, nextLink, options },
|
352
|
+
listNextOperationSpec
|
353
|
+
);
|
228
354
|
}
|
229
355
|
}
|
230
|
-
|
231
356
|
// Operation Specifications
|
232
|
-
const serializer =
|
233
|
-
|
357
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
358
|
+
|
359
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
360
|
+
path:
|
361
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs",
|
234
362
|
httpMethod: "GET",
|
235
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs",
|
236
|
-
urlParameters: [
|
237
|
-
Parameters.subscriptionId,
|
238
|
-
Parameters.resourceGroupName,
|
239
|
-
Parameters.registryName
|
240
|
-
],
|
241
|
-
queryParameters: [
|
242
|
-
Parameters.apiVersion1,
|
243
|
-
Parameters.filter,
|
244
|
-
Parameters.top
|
245
|
-
],
|
246
|
-
headerParameters: [
|
247
|
-
Parameters.acceptLanguage
|
248
|
-
],
|
249
363
|
responses: {
|
250
364
|
200: {
|
251
365
|
bodyMapper: Mappers.RunListResult
|
@@ -254,24 +368,20 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
254
368
|
bodyMapper: Mappers.ErrorResponse
|
255
369
|
}
|
256
370
|
},
|
257
|
-
|
258
|
-
};
|
259
|
-
|
260
|
-
const getOperationSpec: msRest.OperationSpec = {
|
261
|
-
httpMethod: "GET",
|
262
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}",
|
371
|
+
queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top],
|
263
372
|
urlParameters: [
|
373
|
+
Parameters.$host,
|
264
374
|
Parameters.subscriptionId,
|
265
375
|
Parameters.resourceGroupName,
|
266
|
-
Parameters.registryName
|
267
|
-
Parameters.runId
|
268
|
-
],
|
269
|
-
queryParameters: [
|
270
|
-
Parameters.apiVersion1
|
271
|
-
],
|
272
|
-
headerParameters: [
|
273
|
-
Parameters.acceptLanguage
|
376
|
+
Parameters.registryName
|
274
377
|
],
|
378
|
+
headerParameters: [Parameters.accept],
|
379
|
+
serializer
|
380
|
+
};
|
381
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
382
|
+
path:
|
383
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}",
|
384
|
+
httpMethod: "GET",
|
275
385
|
responses: {
|
276
386
|
200: {
|
277
387
|
bodyMapper: Mappers.Run
|
@@ -280,111 +390,101 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
280
390
|
bodyMapper: Mappers.ErrorResponse
|
281
391
|
}
|
282
392
|
},
|
283
|
-
|
284
|
-
};
|
285
|
-
|
286
|
-
const getLogSasUrlOperationSpec: msRest.OperationSpec = {
|
287
|
-
httpMethod: "POST",
|
288
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl",
|
393
|
+
queryParameters: [Parameters.apiVersion1],
|
289
394
|
urlParameters: [
|
395
|
+
Parameters.$host,
|
290
396
|
Parameters.subscriptionId,
|
291
397
|
Parameters.resourceGroupName,
|
292
398
|
Parameters.registryName,
|
293
399
|
Parameters.runId
|
294
400
|
],
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
401
|
+
headerParameters: [Parameters.accept],
|
402
|
+
serializer
|
403
|
+
};
|
404
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
405
|
+
path:
|
406
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}",
|
407
|
+
httpMethod: "PATCH",
|
301
408
|
responses: {
|
302
409
|
200: {
|
303
|
-
bodyMapper: Mappers.
|
410
|
+
bodyMapper: Mappers.Run
|
411
|
+
},
|
412
|
+
201: {
|
413
|
+
bodyMapper: Mappers.Run
|
414
|
+
},
|
415
|
+
202: {
|
416
|
+
bodyMapper: Mappers.Run
|
417
|
+
},
|
418
|
+
204: {
|
419
|
+
bodyMapper: Mappers.Run
|
304
420
|
},
|
305
421
|
default: {
|
306
422
|
bodyMapper: Mappers.ErrorResponse
|
307
423
|
}
|
308
424
|
},
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
313
|
-
httpMethod: "PATCH",
|
314
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}",
|
425
|
+
requestBody: Parameters.runUpdateParameters,
|
426
|
+
queryParameters: [Parameters.apiVersion1],
|
315
427
|
urlParameters: [
|
428
|
+
Parameters.$host,
|
316
429
|
Parameters.subscriptionId,
|
317
430
|
Parameters.resourceGroupName,
|
318
431
|
Parameters.registryName,
|
319
432
|
Parameters.runId
|
320
433
|
],
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
mapper: {
|
330
|
-
...Mappers.RunUpdateParameters,
|
331
|
-
required: true
|
332
|
-
}
|
333
|
-
},
|
434
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
435
|
+
mediaType: "json",
|
436
|
+
serializer
|
437
|
+
};
|
438
|
+
const getLogSasUrlOperationSpec: coreClient.OperationSpec = {
|
439
|
+
path:
|
440
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl",
|
441
|
+
httpMethod: "POST",
|
334
442
|
responses: {
|
335
443
|
200: {
|
336
|
-
bodyMapper: Mappers.
|
337
|
-
},
|
338
|
-
201: {
|
339
|
-
bodyMapper: Mappers.Run
|
444
|
+
bodyMapper: Mappers.RunGetLogResult
|
340
445
|
},
|
341
446
|
default: {
|
342
447
|
bodyMapper: Mappers.ErrorResponse
|
343
448
|
}
|
344
449
|
},
|
345
|
-
|
346
|
-
};
|
347
|
-
|
348
|
-
const beginCancelOperationSpec: msRest.OperationSpec = {
|
349
|
-
httpMethod: "POST",
|
350
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel",
|
450
|
+
queryParameters: [Parameters.apiVersion1],
|
351
451
|
urlParameters: [
|
452
|
+
Parameters.$host,
|
352
453
|
Parameters.subscriptionId,
|
353
454
|
Parameters.resourceGroupName,
|
354
455
|
Parameters.registryName,
|
355
456
|
Parameters.runId
|
356
457
|
],
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
458
|
+
headerParameters: [Parameters.accept],
|
459
|
+
serializer
|
460
|
+
};
|
461
|
+
const cancelOperationSpec: coreClient.OperationSpec = {
|
462
|
+
path:
|
463
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel",
|
464
|
+
httpMethod: "POST",
|
363
465
|
responses: {
|
364
466
|
200: {},
|
467
|
+
201: {},
|
365
468
|
202: {},
|
469
|
+
204: {},
|
366
470
|
default: {
|
367
471
|
bodyMapper: Mappers.ErrorResponse
|
368
472
|
}
|
369
473
|
},
|
474
|
+
queryParameters: [Parameters.apiVersion1],
|
475
|
+
urlParameters: [
|
476
|
+
Parameters.$host,
|
477
|
+
Parameters.subscriptionId,
|
478
|
+
Parameters.resourceGroupName,
|
479
|
+
Parameters.registryName,
|
480
|
+
Parameters.runId
|
481
|
+
],
|
482
|
+
headerParameters: [Parameters.accept],
|
370
483
|
serializer
|
371
484
|
};
|
372
|
-
|
373
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
374
|
-
httpMethod: "GET",
|
375
|
-
baseUrl: "https://management.azure.com",
|
485
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
376
486
|
path: "{nextLink}",
|
377
|
-
|
378
|
-
Parameters.nextPageLink
|
379
|
-
],
|
380
|
-
queryParameters: [
|
381
|
-
Parameters.apiVersion1,
|
382
|
-
Parameters.filter,
|
383
|
-
Parameters.top
|
384
|
-
],
|
385
|
-
headerParameters: [
|
386
|
-
Parameters.acceptLanguage
|
387
|
-
],
|
487
|
+
httpMethod: "GET",
|
388
488
|
responses: {
|
389
489
|
200: {
|
390
490
|
bodyMapper: Mappers.RunListResult
|
@@ -393,5 +493,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
393
493
|
bodyMapper: Mappers.ErrorResponse
|
394
494
|
}
|
395
495
|
},
|
496
|
+
queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top],
|
497
|
+
urlParameters: [
|
498
|
+
Parameters.$host,
|
499
|
+
Parameters.subscriptionId,
|
500
|
+
Parameters.resourceGroupName,
|
501
|
+
Parameters.registryName,
|
502
|
+
Parameters.nextLink
|
503
|
+
],
|
504
|
+
headerParameters: [Parameters.accept],
|
396
505
|
serializer
|
397
506
|
};
|