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