@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,462 +3,791 @@
|
|
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 { Registries } 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
|
+
Registry,
|
19
|
+
RegistriesListNextOptionalParams,
|
20
|
+
RegistriesListOptionalParams,
|
21
|
+
RegistriesListByResourceGroupNextOptionalParams,
|
22
|
+
RegistriesListByResourceGroupOptionalParams,
|
23
|
+
PrivateLinkResource,
|
24
|
+
RegistriesListPrivateLinkResourcesNextOptionalParams,
|
25
|
+
RegistriesListPrivateLinkResourcesOptionalParams,
|
26
|
+
ImportImageParameters,
|
27
|
+
RegistriesImportImageOptionalParams,
|
28
|
+
RegistryNameCheckRequest,
|
29
|
+
RegistriesCheckNameAvailabilityOptionalParams,
|
30
|
+
RegistriesCheckNameAvailabilityResponse,
|
31
|
+
RegistriesListResponse,
|
32
|
+
RegistriesListByResourceGroupResponse,
|
33
|
+
RegistriesGetOptionalParams,
|
34
|
+
RegistriesGetResponse,
|
35
|
+
RegistriesCreateOptionalParams,
|
36
|
+
RegistriesCreateResponse,
|
37
|
+
RegistriesDeleteOptionalParams,
|
38
|
+
RegistryUpdateParameters,
|
39
|
+
RegistriesUpdateOptionalParams,
|
40
|
+
RegistriesUpdateResponse,
|
41
|
+
RegistriesListUsagesOptionalParams,
|
42
|
+
RegistriesListUsagesResponse,
|
43
|
+
RegistriesListPrivateLinkResourcesResponse,
|
44
|
+
RegistriesListCredentialsOptionalParams,
|
45
|
+
RegistriesListCredentialsResponse,
|
46
|
+
RegenerateCredentialParameters,
|
47
|
+
RegistriesRegenerateCredentialOptionalParams,
|
48
|
+
RegistriesRegenerateCredentialResponse,
|
49
|
+
GenerateCredentialsParameters,
|
50
|
+
RegistriesGenerateCredentialsOptionalParams,
|
51
|
+
RegistriesGenerateCredentialsResponse,
|
52
|
+
RunRequestUnion,
|
53
|
+
RegistriesScheduleRunOptionalParams,
|
54
|
+
RegistriesScheduleRunResponse,
|
55
|
+
RegistriesGetBuildSourceUploadUrlOptionalParams,
|
56
|
+
RegistriesGetBuildSourceUploadUrlResponse,
|
57
|
+
RegistriesListNextResponse,
|
58
|
+
RegistriesListByResourceGroupNextResponse,
|
59
|
+
RegistriesListPrivateLinkResourcesNextResponse
|
60
|
+
} from "../models";
|
16
61
|
|
17
|
-
|
18
|
-
|
62
|
+
/// <reference lib="esnext.asynciterable" />
|
63
|
+
/** Class containing Registries operations. */
|
64
|
+
export class RegistriesImpl implements Registries {
|
19
65
|
private readonly client: ContainerRegistryManagementClientContext;
|
20
66
|
|
21
67
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
68
|
+
* Initialize a new instance of the class Registries class.
|
69
|
+
* @param client Reference to the service client
|
24
70
|
*/
|
25
71
|
constructor(client: ContainerRegistryManagementClientContext) {
|
26
72
|
this.client = client;
|
27
73
|
}
|
28
74
|
|
29
75
|
/**
|
30
|
-
*
|
31
|
-
* @param
|
32
|
-
* @param registryName The name of the container registry.
|
33
|
-
* @param parameters The parameters specifying the image to copy and the source container registry.
|
34
|
-
* @param [options] The optional parameters
|
35
|
-
* @returns Promise<msRest.RestResponse>
|
76
|
+
* Lists all the container registries under the specified subscription.
|
77
|
+
* @param options The options parameters.
|
36
78
|
*/
|
37
|
-
|
38
|
-
|
39
|
-
|
79
|
+
public list(
|
80
|
+
options?: RegistriesListOptionalParams
|
81
|
+
): PagedAsyncIterableIterator<Registry> {
|
82
|
+
const iter = this.listPagingAll(options);
|
83
|
+
return {
|
84
|
+
next() {
|
85
|
+
return iter.next();
|
86
|
+
},
|
87
|
+
[Symbol.asyncIterator]() {
|
88
|
+
return this;
|
89
|
+
},
|
90
|
+
byPage: () => {
|
91
|
+
return this.listPagingPage(options);
|
92
|
+
}
|
93
|
+
};
|
40
94
|
}
|
41
95
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
*/
|
54
|
-
checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, callback: msRest.ServiceCallback<Models.RegistryNameStatus>): void;
|
55
|
-
/**
|
56
|
-
* @param registryNameCheckRequest The object containing information for the availability request.
|
57
|
-
* @param options The optional parameters
|
58
|
-
* @param callback The callback
|
59
|
-
*/
|
60
|
-
checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RegistryNameStatus>): void;
|
61
|
-
checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RegistryNameStatus>, callback?: msRest.ServiceCallback<Models.RegistryNameStatus>): Promise<Models.RegistriesCheckNameAvailabilityResponse> {
|
62
|
-
return this.client.sendOperationRequest(
|
63
|
-
{
|
64
|
-
registryNameCheckRequest,
|
65
|
-
options
|
66
|
-
},
|
67
|
-
checkNameAvailabilityOperationSpec,
|
68
|
-
callback) as Promise<Models.RegistriesCheckNameAvailabilityResponse>;
|
96
|
+
private async *listPagingPage(
|
97
|
+
options?: RegistriesListOptionalParams
|
98
|
+
): AsyncIterableIterator<Registry[]> {
|
99
|
+
let result = await this._list(options);
|
100
|
+
yield result.value || [];
|
101
|
+
let continuationToken = result.nextLink;
|
102
|
+
while (continuationToken) {
|
103
|
+
result = await this._listNext(continuationToken, options);
|
104
|
+
continuationToken = result.nextLink;
|
105
|
+
yield result.value || [];
|
106
|
+
}
|
69
107
|
}
|
70
108
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
/**
|
78
|
-
* @param callback The callback
|
79
|
-
*/
|
80
|
-
list(callback: msRest.ServiceCallback<Models.RegistryListResult>): void;
|
81
|
-
/**
|
82
|
-
* @param options The optional parameters
|
83
|
-
* @param callback The callback
|
84
|
-
*/
|
85
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RegistryListResult>): void;
|
86
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RegistryListResult>, callback?: msRest.ServiceCallback<Models.RegistryListResult>): Promise<Models.RegistriesListResponse> {
|
87
|
-
return this.client.sendOperationRequest(
|
88
|
-
{
|
89
|
-
options
|
90
|
-
},
|
91
|
-
listOperationSpec,
|
92
|
-
callback) as Promise<Models.RegistriesListResponse>;
|
109
|
+
private async *listPagingAll(
|
110
|
+
options?: RegistriesListOptionalParams
|
111
|
+
): AsyncIterableIterator<Registry> {
|
112
|
+
for await (const page of this.listPagingPage(options)) {
|
113
|
+
yield* page;
|
114
|
+
}
|
93
115
|
}
|
94
116
|
|
95
117
|
/**
|
96
118
|
* Lists all the container registries under the specified resource group.
|
97
119
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
98
|
-
* @param
|
99
|
-
* @returns Promise<Models.RegistriesListByResourceGroupResponse>
|
100
|
-
*/
|
101
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListByResourceGroupResponse>;
|
102
|
-
/**
|
103
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
104
|
-
* @param callback The callback
|
105
|
-
*/
|
106
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.RegistryListResult>): void;
|
107
|
-
/**
|
108
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
109
|
-
* @param options The optional parameters
|
110
|
-
* @param callback The callback
|
120
|
+
* @param options The options parameters.
|
111
121
|
*/
|
112
|
-
listByResourceGroup(
|
113
|
-
|
114
|
-
|
115
|
-
|
122
|
+
public listByResourceGroup(
|
123
|
+
resourceGroupName: string,
|
124
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
125
|
+
): PagedAsyncIterableIterator<Registry> {
|
126
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
127
|
+
return {
|
128
|
+
next() {
|
129
|
+
return iter.next();
|
130
|
+
},
|
131
|
+
[Symbol.asyncIterator]() {
|
132
|
+
return this;
|
133
|
+
},
|
134
|
+
byPage: () => {
|
135
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
136
|
+
}
|
137
|
+
};
|
138
|
+
}
|
139
|
+
|
140
|
+
private async *listByResourceGroupPagingPage(
|
141
|
+
resourceGroupName: string,
|
142
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
143
|
+
): AsyncIterableIterator<Registry[]> {
|
144
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
145
|
+
yield result.value || [];
|
146
|
+
let continuationToken = result.nextLink;
|
147
|
+
while (continuationToken) {
|
148
|
+
result = await this._listByResourceGroupNext(
|
116
149
|
resourceGroupName,
|
150
|
+
continuationToken,
|
117
151
|
options
|
118
|
-
|
119
|
-
|
120
|
-
|
152
|
+
);
|
153
|
+
continuationToken = result.nextLink;
|
154
|
+
yield result.value || [];
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
private async *listByResourceGroupPagingAll(
|
159
|
+
resourceGroupName: string,
|
160
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
161
|
+
): AsyncIterableIterator<Registry> {
|
162
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
163
|
+
resourceGroupName,
|
164
|
+
options
|
165
|
+
)) {
|
166
|
+
yield* page;
|
167
|
+
}
|
121
168
|
}
|
122
169
|
|
123
170
|
/**
|
124
|
-
*
|
125
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
126
|
-
* @param registryName The name of the container registry.
|
127
|
-
* @param [options] The optional parameters
|
128
|
-
* @returns Promise<Models.RegistriesGetResponse>
|
129
|
-
*/
|
130
|
-
get(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesGetResponse>;
|
131
|
-
/**
|
132
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
133
|
-
* @param registryName The name of the container registry.
|
134
|
-
* @param callback The callback
|
135
|
-
*/
|
136
|
-
get(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback<Models.Registry>): void;
|
137
|
-
/**
|
171
|
+
* Lists the private link resources for a container registry.
|
138
172
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
139
173
|
* @param registryName The name of the container registry.
|
140
|
-
* @param options The
|
141
|
-
* @param callback The callback
|
174
|
+
* @param options The options parameters.
|
142
175
|
*/
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
176
|
+
public listPrivateLinkResources(
|
177
|
+
resourceGroupName: string,
|
178
|
+
registryName: string,
|
179
|
+
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
180
|
+
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
181
|
+
const iter = this.listPrivateLinkResourcesPagingAll(
|
182
|
+
resourceGroupName,
|
183
|
+
registryName,
|
184
|
+
options
|
185
|
+
);
|
186
|
+
return {
|
187
|
+
next() {
|
188
|
+
return iter.next();
|
189
|
+
},
|
190
|
+
[Symbol.asyncIterator]() {
|
191
|
+
return this;
|
192
|
+
},
|
193
|
+
byPage: () => {
|
194
|
+
return this.listPrivateLinkResourcesPagingPage(
|
195
|
+
resourceGroupName,
|
196
|
+
registryName,
|
197
|
+
options
|
198
|
+
);
|
199
|
+
}
|
200
|
+
};
|
201
|
+
}
|
202
|
+
|
203
|
+
private async *listPrivateLinkResourcesPagingPage(
|
204
|
+
resourceGroupName: string,
|
205
|
+
registryName: string,
|
206
|
+
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
207
|
+
): AsyncIterableIterator<PrivateLinkResource[]> {
|
208
|
+
let result = await this._listPrivateLinkResources(
|
209
|
+
resourceGroupName,
|
210
|
+
registryName,
|
211
|
+
options
|
212
|
+
);
|
213
|
+
yield result.value || [];
|
214
|
+
let continuationToken = result.nextLink;
|
215
|
+
while (continuationToken) {
|
216
|
+
result = await this._listPrivateLinkResourcesNext(
|
147
217
|
resourceGroupName,
|
148
218
|
registryName,
|
219
|
+
continuationToken,
|
149
220
|
options
|
150
|
-
|
151
|
-
|
152
|
-
|
221
|
+
);
|
222
|
+
continuationToken = result.nextLink;
|
223
|
+
yield result.value || [];
|
224
|
+
}
|
153
225
|
}
|
154
226
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
227
|
+
private async *listPrivateLinkResourcesPagingAll(
|
228
|
+
resourceGroupName: string,
|
229
|
+
registryName: string,
|
230
|
+
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
231
|
+
): AsyncIterableIterator<PrivateLinkResource> {
|
232
|
+
for await (const page of this.listPrivateLinkResourcesPagingPage(
|
233
|
+
resourceGroupName,
|
234
|
+
registryName,
|
235
|
+
options
|
236
|
+
)) {
|
237
|
+
yield* page;
|
238
|
+
}
|
166
239
|
}
|
167
240
|
|
168
241
|
/**
|
169
|
-
*
|
242
|
+
* Copies an image to this container registry from the specified container registry.
|
170
243
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
171
244
|
* @param registryName The name of the container registry.
|
172
|
-
* @param
|
173
|
-
* @
|
245
|
+
* @param parameters The parameters specifying the image to copy and the source container registry.
|
246
|
+
* @param options The options parameters.
|
174
247
|
*/
|
175
|
-
|
176
|
-
|
177
|
-
|
248
|
+
async beginImportImage(
|
249
|
+
resourceGroupName: string,
|
250
|
+
registryName: string,
|
251
|
+
parameters: ImportImageParameters,
|
252
|
+
options?: RegistriesImportImageOptionalParams
|
253
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
254
|
+
const directSendOperation = async (
|
255
|
+
args: coreClient.OperationArguments,
|
256
|
+
spec: coreClient.OperationSpec
|
257
|
+
): Promise<void> => {
|
258
|
+
return this.client.sendOperationRequest(args, spec);
|
259
|
+
};
|
260
|
+
const sendOperation = async (
|
261
|
+
args: coreClient.OperationArguments,
|
262
|
+
spec: coreClient.OperationSpec
|
263
|
+
) => {
|
264
|
+
let currentRawResponse:
|
265
|
+
| coreClient.FullOperationResponse
|
266
|
+
| undefined = undefined;
|
267
|
+
const providedCallback = args.options?.onResponse;
|
268
|
+
const callback: coreClient.RawResponseCallback = (
|
269
|
+
rawResponse: coreClient.FullOperationResponse,
|
270
|
+
flatResponse: unknown
|
271
|
+
) => {
|
272
|
+
currentRawResponse = rawResponse;
|
273
|
+
providedCallback?.(rawResponse, flatResponse);
|
274
|
+
};
|
275
|
+
const updatedArgs = {
|
276
|
+
...args,
|
277
|
+
options: {
|
278
|
+
...args.options,
|
279
|
+
onResponse: callback
|
280
|
+
}
|
281
|
+
};
|
282
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
283
|
+
return {
|
284
|
+
flatResponse,
|
285
|
+
rawResponse: {
|
286
|
+
statusCode: currentRawResponse!.status,
|
287
|
+
body: currentRawResponse!.parsedBody,
|
288
|
+
headers: currentRawResponse!.headers.toJSON()
|
289
|
+
}
|
290
|
+
};
|
291
|
+
};
|
292
|
+
|
293
|
+
const lro = new LroImpl(
|
294
|
+
sendOperation,
|
295
|
+
{ resourceGroupName, registryName, parameters, options },
|
296
|
+
importImageOperationSpec
|
297
|
+
);
|
298
|
+
return new LroEngine(lro, {
|
299
|
+
resumeFrom: options?.resumeFrom,
|
300
|
+
intervalInMs: options?.updateIntervalInMs
|
301
|
+
});
|
178
302
|
}
|
179
303
|
|
180
304
|
/**
|
181
|
-
*
|
305
|
+
* Copies an image to this container registry from the specified container registry.
|
182
306
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
183
307
|
* @param registryName The name of the container registry.
|
184
|
-
* @param
|
185
|
-
* @param
|
186
|
-
* @returns Promise<Models.RegistriesUpdateResponse>
|
308
|
+
* @param parameters The parameters specifying the image to copy and the source container registry.
|
309
|
+
* @param options The options parameters.
|
187
310
|
*/
|
188
|
-
|
189
|
-
|
190
|
-
|
311
|
+
async beginImportImageAndWait(
|
312
|
+
resourceGroupName: string,
|
313
|
+
registryName: string,
|
314
|
+
parameters: ImportImageParameters,
|
315
|
+
options?: RegistriesImportImageOptionalParams
|
316
|
+
): Promise<void> {
|
317
|
+
const poller = await this.beginImportImage(
|
318
|
+
resourceGroupName,
|
319
|
+
registryName,
|
320
|
+
parameters,
|
321
|
+
options
|
322
|
+
);
|
323
|
+
return poller.pollUntilDone();
|
191
324
|
}
|
192
325
|
|
193
326
|
/**
|
194
|
-
*
|
195
|
-
*
|
196
|
-
* @param
|
197
|
-
* @param
|
198
|
-
* @returns Promise<Models.RegistriesListUsagesResponse>
|
199
|
-
*/
|
200
|
-
listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListUsagesResponse>;
|
201
|
-
/**
|
202
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
203
|
-
* @param registryName The name of the container registry.
|
204
|
-
* @param callback The callback
|
205
|
-
*/
|
206
|
-
listUsages(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback<Models.RegistryUsageListResult>): void;
|
207
|
-
/**
|
208
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
209
|
-
* @param registryName The name of the container registry.
|
210
|
-
* @param options The optional parameters
|
211
|
-
* @param callback The callback
|
327
|
+
* Checks whether the container registry name is available for use. The name must contain only
|
328
|
+
* alphanumeric characters, be globally unique, and between 5 and 50 characters in length.
|
329
|
+
* @param registryNameCheckRequest The object containing information for the availability request.
|
330
|
+
* @param options The options parameters.
|
212
331
|
*/
|
213
|
-
|
214
|
-
|
332
|
+
checkNameAvailability(
|
333
|
+
registryNameCheckRequest: RegistryNameCheckRequest,
|
334
|
+
options?: RegistriesCheckNameAvailabilityOptionalParams
|
335
|
+
): Promise<RegistriesCheckNameAvailabilityResponse> {
|
215
336
|
return this.client.sendOperationRequest(
|
216
|
-
{
|
217
|
-
|
218
|
-
|
219
|
-
options
|
220
|
-
},
|
221
|
-
listUsagesOperationSpec,
|
222
|
-
callback) as Promise<Models.RegistriesListUsagesResponse>;
|
337
|
+
{ registryNameCheckRequest, options },
|
338
|
+
checkNameAvailabilityOperationSpec
|
339
|
+
);
|
223
340
|
}
|
224
341
|
|
225
342
|
/**
|
226
|
-
* Lists the
|
227
|
-
* @param
|
228
|
-
* @param registryName The name of the container registry.
|
229
|
-
* @param [options] The optional parameters
|
230
|
-
* @returns Promise<Models.RegistriesListPrivateLinkResourcesResponse>
|
231
|
-
*/
|
232
|
-
listPrivateLinkResources(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListPrivateLinkResourcesResponse>;
|
233
|
-
/**
|
234
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
235
|
-
* @param registryName The name of the container registry.
|
236
|
-
* @param callback The callback
|
343
|
+
* Lists all the container registries under the specified subscription.
|
344
|
+
* @param options The options parameters.
|
237
345
|
*/
|
238
|
-
|
346
|
+
private _list(
|
347
|
+
options?: RegistriesListOptionalParams
|
348
|
+
): Promise<RegistriesListResponse> {
|
349
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
350
|
+
}
|
351
|
+
|
239
352
|
/**
|
353
|
+
* Lists all the container registries under the specified resource group.
|
240
354
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
241
|
-
* @param
|
242
|
-
* @param options The optional parameters
|
243
|
-
* @param callback The callback
|
355
|
+
* @param options The options parameters.
|
244
356
|
*/
|
245
|
-
|
246
|
-
|
357
|
+
private _listByResourceGroup(
|
358
|
+
resourceGroupName: string,
|
359
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
360
|
+
): Promise<RegistriesListByResourceGroupResponse> {
|
247
361
|
return this.client.sendOperationRequest(
|
248
|
-
{
|
249
|
-
|
250
|
-
|
251
|
-
options
|
252
|
-
},
|
253
|
-
listPrivateLinkResourcesOperationSpec,
|
254
|
-
callback) as Promise<Models.RegistriesListPrivateLinkResourcesResponse>;
|
362
|
+
{ resourceGroupName, options },
|
363
|
+
listByResourceGroupOperationSpec
|
364
|
+
);
|
255
365
|
}
|
256
366
|
|
257
367
|
/**
|
258
|
-
*
|
259
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
260
|
-
* @param registryName The name of the container registry.
|
261
|
-
* @param [options] The optional parameters
|
262
|
-
* @returns Promise<Models.RegistriesListCredentialsResponse>
|
263
|
-
*/
|
264
|
-
listCredentials(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListCredentialsResponse>;
|
265
|
-
/**
|
266
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
267
|
-
* @param registryName The name of the container registry.
|
268
|
-
* @param callback The callback
|
269
|
-
*/
|
270
|
-
listCredentials(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback<Models.RegistryListCredentialsResult>): void;
|
271
|
-
/**
|
368
|
+
* Gets the properties of the specified container registry.
|
272
369
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
273
370
|
* @param registryName The name of the container registry.
|
274
|
-
* @param options The
|
275
|
-
* @param callback The callback
|
371
|
+
* @param options The options parameters.
|
276
372
|
*/
|
277
|
-
|
278
|
-
|
373
|
+
get(
|
374
|
+
resourceGroupName: string,
|
375
|
+
registryName: string,
|
376
|
+
options?: RegistriesGetOptionalParams
|
377
|
+
): Promise<RegistriesGetResponse> {
|
279
378
|
return this.client.sendOperationRequest(
|
280
|
-
{
|
281
|
-
|
282
|
-
|
283
|
-
options
|
284
|
-
},
|
285
|
-
listCredentialsOperationSpec,
|
286
|
-
callback) as Promise<Models.RegistriesListCredentialsResponse>;
|
379
|
+
{ resourceGroupName, registryName, options },
|
380
|
+
getOperationSpec
|
381
|
+
);
|
287
382
|
}
|
288
383
|
|
289
384
|
/**
|
290
|
-
*
|
291
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
292
|
-
* @param registryName The name of the container registry.
|
293
|
-
* @param regenerateCredentialParameters Specifies name of the password which should be regenerated
|
294
|
-
* -- password or password2.
|
295
|
-
* @param [options] The optional parameters
|
296
|
-
* @returns Promise<Models.RegistriesRegenerateCredentialResponse>
|
297
|
-
*/
|
298
|
-
regenerateCredential(resourceGroupName: string, registryName: string, regenerateCredentialParameters: Models.RegenerateCredentialParameters, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesRegenerateCredentialResponse>;
|
299
|
-
/**
|
385
|
+
* Creates a container registry with the specified parameters.
|
300
386
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
301
387
|
* @param registryName The name of the container registry.
|
302
|
-
* @param
|
303
|
-
*
|
304
|
-
* @param callback The callback
|
388
|
+
* @param registry The parameters for creating a container registry.
|
389
|
+
* @param options The options parameters.
|
305
390
|
*/
|
306
|
-
|
391
|
+
async beginCreate(
|
392
|
+
resourceGroupName: string,
|
393
|
+
registryName: string,
|
394
|
+
registry: Registry,
|
395
|
+
options?: RegistriesCreateOptionalParams
|
396
|
+
): Promise<
|
397
|
+
PollerLike<
|
398
|
+
PollOperationState<RegistriesCreateResponse>,
|
399
|
+
RegistriesCreateResponse
|
400
|
+
>
|
401
|
+
> {
|
402
|
+
const directSendOperation = async (
|
403
|
+
args: coreClient.OperationArguments,
|
404
|
+
spec: coreClient.OperationSpec
|
405
|
+
): Promise<RegistriesCreateResponse> => {
|
406
|
+
return this.client.sendOperationRequest(args, spec);
|
407
|
+
};
|
408
|
+
const sendOperation = async (
|
409
|
+
args: coreClient.OperationArguments,
|
410
|
+
spec: coreClient.OperationSpec
|
411
|
+
) => {
|
412
|
+
let currentRawResponse:
|
413
|
+
| coreClient.FullOperationResponse
|
414
|
+
| undefined = undefined;
|
415
|
+
const providedCallback = args.options?.onResponse;
|
416
|
+
const callback: coreClient.RawResponseCallback = (
|
417
|
+
rawResponse: coreClient.FullOperationResponse,
|
418
|
+
flatResponse: unknown
|
419
|
+
) => {
|
420
|
+
currentRawResponse = rawResponse;
|
421
|
+
providedCallback?.(rawResponse, flatResponse);
|
422
|
+
};
|
423
|
+
const updatedArgs = {
|
424
|
+
...args,
|
425
|
+
options: {
|
426
|
+
...args.options,
|
427
|
+
onResponse: callback
|
428
|
+
}
|
429
|
+
};
|
430
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
431
|
+
return {
|
432
|
+
flatResponse,
|
433
|
+
rawResponse: {
|
434
|
+
statusCode: currentRawResponse!.status,
|
435
|
+
body: currentRawResponse!.parsedBody,
|
436
|
+
headers: currentRawResponse!.headers.toJSON()
|
437
|
+
}
|
438
|
+
};
|
439
|
+
};
|
440
|
+
|
441
|
+
const lro = new LroImpl(
|
442
|
+
sendOperation,
|
443
|
+
{ resourceGroupName, registryName, registry, options },
|
444
|
+
createOperationSpec
|
445
|
+
);
|
446
|
+
return new LroEngine(lro, {
|
447
|
+
resumeFrom: options?.resumeFrom,
|
448
|
+
intervalInMs: options?.updateIntervalInMs
|
449
|
+
});
|
450
|
+
}
|
451
|
+
|
307
452
|
/**
|
453
|
+
* Creates a container registry with the specified parameters.
|
308
454
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
309
455
|
* @param registryName The name of the container registry.
|
310
|
-
* @param
|
311
|
-
*
|
312
|
-
* @param options The optional parameters
|
313
|
-
* @param callback The callback
|
456
|
+
* @param registry The parameters for creating a container registry.
|
457
|
+
* @param options The options parameters.
|
314
458
|
*/
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
459
|
+
async beginCreateAndWait(
|
460
|
+
resourceGroupName: string,
|
461
|
+
registryName: string,
|
462
|
+
registry: Registry,
|
463
|
+
options?: RegistriesCreateOptionalParams
|
464
|
+
): Promise<RegistriesCreateResponse> {
|
465
|
+
const poller = await this.beginCreate(
|
466
|
+
resourceGroupName,
|
467
|
+
registryName,
|
468
|
+
registry,
|
469
|
+
options
|
470
|
+
);
|
471
|
+
return poller.pollUntilDone();
|
326
472
|
}
|
327
473
|
|
328
474
|
/**
|
329
|
-
*
|
475
|
+
* Deletes a container registry.
|
330
476
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
331
477
|
* @param registryName The name of the container registry.
|
332
|
-
* @param
|
333
|
-
* @param [options] The optional parameters
|
334
|
-
* @returns Promise<Models.RegistriesGenerateCredentialsResponse>
|
478
|
+
* @param options The options parameters.
|
335
479
|
*/
|
336
|
-
|
337
|
-
|
338
|
-
|
480
|
+
async beginDelete(
|
481
|
+
resourceGroupName: string,
|
482
|
+
registryName: string,
|
483
|
+
options?: RegistriesDeleteOptionalParams
|
484
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
485
|
+
const directSendOperation = async (
|
486
|
+
args: coreClient.OperationArguments,
|
487
|
+
spec: coreClient.OperationSpec
|
488
|
+
): Promise<void> => {
|
489
|
+
return this.client.sendOperationRequest(args, spec);
|
490
|
+
};
|
491
|
+
const sendOperation = async (
|
492
|
+
args: coreClient.OperationArguments,
|
493
|
+
spec: coreClient.OperationSpec
|
494
|
+
) => {
|
495
|
+
let currentRawResponse:
|
496
|
+
| coreClient.FullOperationResponse
|
497
|
+
| undefined = undefined;
|
498
|
+
const providedCallback = args.options?.onResponse;
|
499
|
+
const callback: coreClient.RawResponseCallback = (
|
500
|
+
rawResponse: coreClient.FullOperationResponse,
|
501
|
+
flatResponse: unknown
|
502
|
+
) => {
|
503
|
+
currentRawResponse = rawResponse;
|
504
|
+
providedCallback?.(rawResponse, flatResponse);
|
505
|
+
};
|
506
|
+
const updatedArgs = {
|
507
|
+
...args,
|
508
|
+
options: {
|
509
|
+
...args.options,
|
510
|
+
onResponse: callback
|
511
|
+
}
|
512
|
+
};
|
513
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
514
|
+
return {
|
515
|
+
flatResponse,
|
516
|
+
rawResponse: {
|
517
|
+
statusCode: currentRawResponse!.status,
|
518
|
+
body: currentRawResponse!.parsedBody,
|
519
|
+
headers: currentRawResponse!.headers.toJSON()
|
520
|
+
}
|
521
|
+
};
|
522
|
+
};
|
523
|
+
|
524
|
+
const lro = new LroImpl(
|
525
|
+
sendOperation,
|
526
|
+
{ resourceGroupName, registryName, options },
|
527
|
+
deleteOperationSpec
|
528
|
+
);
|
529
|
+
return new LroEngine(lro, {
|
530
|
+
resumeFrom: options?.resumeFrom,
|
531
|
+
intervalInMs: options?.updateIntervalInMs
|
532
|
+
});
|
339
533
|
}
|
340
534
|
|
341
535
|
/**
|
342
|
-
*
|
536
|
+
* Deletes a container registry.
|
343
537
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
344
538
|
* @param registryName The name of the container registry.
|
345
|
-
* @param
|
346
|
-
* @param [options] The optional parameters
|
347
|
-
* @returns Promise<Models.RegistriesScheduleRunResponse>
|
539
|
+
* @param options The options parameters.
|
348
540
|
*/
|
349
|
-
|
350
|
-
|
351
|
-
|
541
|
+
async beginDeleteAndWait(
|
542
|
+
resourceGroupName: string,
|
543
|
+
registryName: string,
|
544
|
+
options?: RegistriesDeleteOptionalParams
|
545
|
+
): Promise<void> {
|
546
|
+
const poller = await this.beginDelete(
|
547
|
+
resourceGroupName,
|
548
|
+
registryName,
|
549
|
+
options
|
550
|
+
);
|
551
|
+
return poller.pollUntilDone();
|
352
552
|
}
|
353
553
|
|
354
554
|
/**
|
355
|
-
*
|
555
|
+
* Updates a container registry with the specified parameters.
|
356
556
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
357
557
|
* @param registryName The name of the container registry.
|
358
|
-
* @param
|
359
|
-
* @
|
558
|
+
* @param registryUpdateParameters The parameters for updating a container registry.
|
559
|
+
* @param options The options parameters.
|
360
560
|
*/
|
361
|
-
|
561
|
+
async beginUpdate(
|
562
|
+
resourceGroupName: string,
|
563
|
+
registryName: string,
|
564
|
+
registryUpdateParameters: RegistryUpdateParameters,
|
565
|
+
options?: RegistriesUpdateOptionalParams
|
566
|
+
): Promise<
|
567
|
+
PollerLike<
|
568
|
+
PollOperationState<RegistriesUpdateResponse>,
|
569
|
+
RegistriesUpdateResponse
|
570
|
+
>
|
571
|
+
> {
|
572
|
+
const directSendOperation = async (
|
573
|
+
args: coreClient.OperationArguments,
|
574
|
+
spec: coreClient.OperationSpec
|
575
|
+
): Promise<RegistriesUpdateResponse> => {
|
576
|
+
return this.client.sendOperationRequest(args, spec);
|
577
|
+
};
|
578
|
+
const sendOperation = async (
|
579
|
+
args: coreClient.OperationArguments,
|
580
|
+
spec: coreClient.OperationSpec
|
581
|
+
) => {
|
582
|
+
let currentRawResponse:
|
583
|
+
| coreClient.FullOperationResponse
|
584
|
+
| undefined = undefined;
|
585
|
+
const providedCallback = args.options?.onResponse;
|
586
|
+
const callback: coreClient.RawResponseCallback = (
|
587
|
+
rawResponse: coreClient.FullOperationResponse,
|
588
|
+
flatResponse: unknown
|
589
|
+
) => {
|
590
|
+
currentRawResponse = rawResponse;
|
591
|
+
providedCallback?.(rawResponse, flatResponse);
|
592
|
+
};
|
593
|
+
const updatedArgs = {
|
594
|
+
...args,
|
595
|
+
options: {
|
596
|
+
...args.options,
|
597
|
+
onResponse: callback
|
598
|
+
}
|
599
|
+
};
|
600
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
601
|
+
return {
|
602
|
+
flatResponse,
|
603
|
+
rawResponse: {
|
604
|
+
statusCode: currentRawResponse!.status,
|
605
|
+
body: currentRawResponse!.parsedBody,
|
606
|
+
headers: currentRawResponse!.headers.toJSON()
|
607
|
+
}
|
608
|
+
};
|
609
|
+
};
|
610
|
+
|
611
|
+
const lro = new LroImpl(
|
612
|
+
sendOperation,
|
613
|
+
{ resourceGroupName, registryName, registryUpdateParameters, options },
|
614
|
+
updateOperationSpec
|
615
|
+
);
|
616
|
+
return new LroEngine(lro, {
|
617
|
+
resumeFrom: options?.resumeFrom,
|
618
|
+
intervalInMs: options?.updateIntervalInMs
|
619
|
+
});
|
620
|
+
}
|
621
|
+
|
362
622
|
/**
|
623
|
+
* Updates a container registry with the specified parameters.
|
363
624
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
364
625
|
* @param registryName The name of the container registry.
|
365
|
-
* @param
|
626
|
+
* @param registryUpdateParameters The parameters for updating a container registry.
|
627
|
+
* @param options The options parameters.
|
366
628
|
*/
|
367
|
-
|
629
|
+
async beginUpdateAndWait(
|
630
|
+
resourceGroupName: string,
|
631
|
+
registryName: string,
|
632
|
+
registryUpdateParameters: RegistryUpdateParameters,
|
633
|
+
options?: RegistriesUpdateOptionalParams
|
634
|
+
): Promise<RegistriesUpdateResponse> {
|
635
|
+
const poller = await this.beginUpdate(
|
636
|
+
resourceGroupName,
|
637
|
+
registryName,
|
638
|
+
registryUpdateParameters,
|
639
|
+
options
|
640
|
+
);
|
641
|
+
return poller.pollUntilDone();
|
642
|
+
}
|
643
|
+
|
368
644
|
/**
|
645
|
+
* Gets the quota usages for the specified container registry.
|
369
646
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
370
647
|
* @param registryName The name of the container registry.
|
371
|
-
* @param options The
|
372
|
-
* @param callback The callback
|
648
|
+
* @param options The options parameters.
|
373
649
|
*/
|
374
|
-
|
375
|
-
|
650
|
+
listUsages(
|
651
|
+
resourceGroupName: string,
|
652
|
+
registryName: string,
|
653
|
+
options?: RegistriesListUsagesOptionalParams
|
654
|
+
): Promise<RegistriesListUsagesResponse> {
|
376
655
|
return this.client.sendOperationRequest(
|
377
|
-
{
|
378
|
-
|
379
|
-
|
380
|
-
options
|
381
|
-
},
|
382
|
-
getBuildSourceUploadUrlOperationSpec,
|
383
|
-
callback) as Promise<Models.RegistriesGetBuildSourceUploadUrlResponse>;
|
656
|
+
{ resourceGroupName, registryName, options },
|
657
|
+
listUsagesOperationSpec
|
658
|
+
);
|
384
659
|
}
|
385
660
|
|
386
661
|
/**
|
387
|
-
*
|
662
|
+
* Lists the private link resources for a container registry.
|
388
663
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
389
664
|
* @param registryName The name of the container registry.
|
390
|
-
* @param
|
391
|
-
* @param [options] The optional parameters
|
392
|
-
* @returns Promise<msRestAzure.LROPoller>
|
665
|
+
* @param options The options parameters.
|
393
666
|
*/
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
options);
|
667
|
+
private _listPrivateLinkResources(
|
668
|
+
resourceGroupName: string,
|
669
|
+
registryName: string,
|
670
|
+
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
671
|
+
): Promise<RegistriesListPrivateLinkResourcesResponse> {
|
672
|
+
return this.client.sendOperationRequest(
|
673
|
+
{ resourceGroupName, registryName, options },
|
674
|
+
listPrivateLinkResourcesOperationSpec
|
675
|
+
);
|
404
676
|
}
|
405
677
|
|
406
678
|
/**
|
407
|
-
*
|
679
|
+
* Lists the login credentials for the specified container registry.
|
408
680
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
409
681
|
* @param registryName The name of the container registry.
|
410
|
-
* @param
|
411
|
-
* @param [options] The optional parameters
|
412
|
-
* @returns Promise<msRestAzure.LROPoller>
|
682
|
+
* @param options The options parameters.
|
413
683
|
*/
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
options);
|
684
|
+
listCredentials(
|
685
|
+
resourceGroupName: string,
|
686
|
+
registryName: string,
|
687
|
+
options?: RegistriesListCredentialsOptionalParams
|
688
|
+
): Promise<RegistriesListCredentialsResponse> {
|
689
|
+
return this.client.sendOperationRequest(
|
690
|
+
{ resourceGroupName, registryName, options },
|
691
|
+
listCredentialsOperationSpec
|
692
|
+
);
|
424
693
|
}
|
425
694
|
|
426
695
|
/**
|
427
|
-
*
|
696
|
+
* Regenerates one of the login credentials for the specified container registry.
|
428
697
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
429
698
|
* @param registryName The name of the container registry.
|
430
|
-
* @param
|
431
|
-
*
|
699
|
+
* @param regenerateCredentialParameters Specifies name of the password which should be regenerated --
|
700
|
+
* password or password2.
|
701
|
+
* @param options The options parameters.
|
432
702
|
*/
|
433
|
-
|
434
|
-
|
703
|
+
regenerateCredential(
|
704
|
+
resourceGroupName: string,
|
705
|
+
registryName: string,
|
706
|
+
regenerateCredentialParameters: RegenerateCredentialParameters,
|
707
|
+
options?: RegistriesRegenerateCredentialOptionalParams
|
708
|
+
): Promise<RegistriesRegenerateCredentialResponse> {
|
709
|
+
return this.client.sendOperationRequest(
|
435
710
|
{
|
436
711
|
resourceGroupName,
|
437
712
|
registryName,
|
713
|
+
regenerateCredentialParameters,
|
438
714
|
options
|
439
715
|
},
|
440
|
-
|
441
|
-
|
716
|
+
regenerateCredentialOperationSpec
|
717
|
+
);
|
442
718
|
}
|
443
719
|
|
444
720
|
/**
|
445
|
-
*
|
721
|
+
* Generate keys for a token of a specified container registry.
|
446
722
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
447
723
|
* @param registryName The name of the container registry.
|
448
|
-
* @param
|
449
|
-
* @param
|
450
|
-
* @returns Promise<msRestAzure.LROPoller>
|
724
|
+
* @param generateCredentialsParameters The parameters for generating credentials.
|
725
|
+
* @param options The options parameters.
|
451
726
|
*/
|
452
|
-
|
453
|
-
|
727
|
+
async beginGenerateCredentials(
|
728
|
+
resourceGroupName: string,
|
729
|
+
registryName: string,
|
730
|
+
generateCredentialsParameters: GenerateCredentialsParameters,
|
731
|
+
options?: RegistriesGenerateCredentialsOptionalParams
|
732
|
+
): Promise<
|
733
|
+
PollerLike<
|
734
|
+
PollOperationState<RegistriesGenerateCredentialsResponse>,
|
735
|
+
RegistriesGenerateCredentialsResponse
|
736
|
+
>
|
737
|
+
> {
|
738
|
+
const directSendOperation = async (
|
739
|
+
args: coreClient.OperationArguments,
|
740
|
+
spec: coreClient.OperationSpec
|
741
|
+
): Promise<RegistriesGenerateCredentialsResponse> => {
|
742
|
+
return this.client.sendOperationRequest(args, spec);
|
743
|
+
};
|
744
|
+
const sendOperation = async (
|
745
|
+
args: coreClient.OperationArguments,
|
746
|
+
spec: coreClient.OperationSpec
|
747
|
+
) => {
|
748
|
+
let currentRawResponse:
|
749
|
+
| coreClient.FullOperationResponse
|
750
|
+
| undefined = undefined;
|
751
|
+
const providedCallback = args.options?.onResponse;
|
752
|
+
const callback: coreClient.RawResponseCallback = (
|
753
|
+
rawResponse: coreClient.FullOperationResponse,
|
754
|
+
flatResponse: unknown
|
755
|
+
) => {
|
756
|
+
currentRawResponse = rawResponse;
|
757
|
+
providedCallback?.(rawResponse, flatResponse);
|
758
|
+
};
|
759
|
+
const updatedArgs = {
|
760
|
+
...args,
|
761
|
+
options: {
|
762
|
+
...args.options,
|
763
|
+
onResponse: callback
|
764
|
+
}
|
765
|
+
};
|
766
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
767
|
+
return {
|
768
|
+
flatResponse,
|
769
|
+
rawResponse: {
|
770
|
+
statusCode: currentRawResponse!.status,
|
771
|
+
body: currentRawResponse!.parsedBody,
|
772
|
+
headers: currentRawResponse!.headers.toJSON()
|
773
|
+
}
|
774
|
+
};
|
775
|
+
};
|
776
|
+
|
777
|
+
const lro = new LroImpl(
|
778
|
+
sendOperation,
|
454
779
|
{
|
455
780
|
resourceGroupName,
|
456
781
|
registryName,
|
457
|
-
|
782
|
+
generateCredentialsParameters,
|
458
783
|
options
|
459
784
|
},
|
460
|
-
|
461
|
-
|
785
|
+
generateCredentialsOperationSpec
|
786
|
+
);
|
787
|
+
return new LroEngine(lro, {
|
788
|
+
resumeFrom: options?.resumeFrom,
|
789
|
+
intervalInMs: options?.updateIntervalInMs
|
790
|
+
});
|
462
791
|
}
|
463
792
|
|
464
793
|
/**
|
@@ -466,19 +795,21 @@ export class Registries {
|
|
466
795
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
467
796
|
* @param registryName The name of the container registry.
|
468
797
|
* @param generateCredentialsParameters The parameters for generating credentials.
|
469
|
-
* @param
|
470
|
-
* @returns Promise<msRestAzure.LROPoller>
|
798
|
+
* @param options The options parameters.
|
471
799
|
*/
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
800
|
+
async beginGenerateCredentialsAndWait(
|
801
|
+
resourceGroupName: string,
|
802
|
+
registryName: string,
|
803
|
+
generateCredentialsParameters: GenerateCredentialsParameters,
|
804
|
+
options?: RegistriesGenerateCredentialsOptionalParams
|
805
|
+
): Promise<RegistriesGenerateCredentialsResponse> {
|
806
|
+
const poller = await this.beginGenerateCredentials(
|
807
|
+
resourceGroupName,
|
808
|
+
registryName,
|
809
|
+
generateCredentialsParameters,
|
810
|
+
options
|
811
|
+
);
|
812
|
+
return poller.pollUntilDone();
|
482
813
|
}
|
483
814
|
|
484
815
|
/**
|
@@ -486,602 +817,535 @@ export class Registries {
|
|
486
817
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
487
818
|
* @param registryName The name of the container registry.
|
488
819
|
* @param runRequest The parameters of a run that needs to scheduled.
|
489
|
-
* @param
|
490
|
-
* @returns Promise<msRestAzure.LROPoller>
|
820
|
+
* @param options The options parameters.
|
491
821
|
*/
|
492
|
-
beginScheduleRun(
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
822
|
+
async beginScheduleRun(
|
823
|
+
resourceGroupName: string,
|
824
|
+
registryName: string,
|
825
|
+
runRequest: RunRequestUnion,
|
826
|
+
options?: RegistriesScheduleRunOptionalParams
|
827
|
+
): Promise<
|
828
|
+
PollerLike<
|
829
|
+
PollOperationState<RegistriesScheduleRunResponse>,
|
830
|
+
RegistriesScheduleRunResponse
|
831
|
+
>
|
832
|
+
> {
|
833
|
+
const directSendOperation = async (
|
834
|
+
args: coreClient.OperationArguments,
|
835
|
+
spec: coreClient.OperationSpec
|
836
|
+
): Promise<RegistriesScheduleRunResponse> => {
|
837
|
+
return this.client.sendOperationRequest(args, spec);
|
838
|
+
};
|
839
|
+
const sendOperation = async (
|
840
|
+
args: coreClient.OperationArguments,
|
841
|
+
spec: coreClient.OperationSpec
|
842
|
+
) => {
|
843
|
+
let currentRawResponse:
|
844
|
+
| coreClient.FullOperationResponse
|
845
|
+
| undefined = undefined;
|
846
|
+
const providedCallback = args.options?.onResponse;
|
847
|
+
const callback: coreClient.RawResponseCallback = (
|
848
|
+
rawResponse: coreClient.FullOperationResponse,
|
849
|
+
flatResponse: unknown
|
850
|
+
) => {
|
851
|
+
currentRawResponse = rawResponse;
|
852
|
+
providedCallback?.(rawResponse, flatResponse);
|
853
|
+
};
|
854
|
+
const updatedArgs = {
|
855
|
+
...args,
|
856
|
+
options: {
|
857
|
+
...args.options,
|
858
|
+
onResponse: callback
|
859
|
+
}
|
860
|
+
};
|
861
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
862
|
+
return {
|
863
|
+
flatResponse,
|
864
|
+
rawResponse: {
|
865
|
+
statusCode: currentRawResponse!.status,
|
866
|
+
body: currentRawResponse!.parsedBody,
|
867
|
+
headers: currentRawResponse!.headers.toJSON()
|
868
|
+
}
|
869
|
+
};
|
870
|
+
};
|
871
|
+
|
872
|
+
const lro = new LroImpl(
|
873
|
+
sendOperation,
|
874
|
+
{ resourceGroupName, registryName, runRequest, options },
|
875
|
+
scheduleRunOperationSpec
|
876
|
+
);
|
877
|
+
return new LroEngine(lro, {
|
878
|
+
resumeFrom: options?.resumeFrom,
|
879
|
+
intervalInMs: options?.updateIntervalInMs
|
880
|
+
});
|
502
881
|
}
|
503
882
|
|
504
883
|
/**
|
505
|
-
*
|
506
|
-
* @param
|
507
|
-
* @param
|
508
|
-
* @
|
509
|
-
|
510
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListNextResponse>;
|
511
|
-
/**
|
512
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
513
|
-
* @param callback The callback
|
884
|
+
* Schedules a new run based on the request parameters and add it to the run queue.
|
885
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
886
|
+
* @param registryName The name of the container registry.
|
887
|
+
* @param runRequest The parameters of a run that needs to scheduled.
|
888
|
+
* @param options The options parameters.
|
514
889
|
*/
|
515
|
-
|
890
|
+
async beginScheduleRunAndWait(
|
891
|
+
resourceGroupName: string,
|
892
|
+
registryName: string,
|
893
|
+
runRequest: RunRequestUnion,
|
894
|
+
options?: RegistriesScheduleRunOptionalParams
|
895
|
+
): Promise<RegistriesScheduleRunResponse> {
|
896
|
+
const poller = await this.beginScheduleRun(
|
897
|
+
resourceGroupName,
|
898
|
+
registryName,
|
899
|
+
runRequest,
|
900
|
+
options
|
901
|
+
);
|
902
|
+
return poller.pollUntilDone();
|
903
|
+
}
|
904
|
+
|
516
905
|
/**
|
517
|
-
*
|
518
|
-
* @param
|
519
|
-
* @param
|
906
|
+
* Get the upload location for the user to be able to upload the source.
|
907
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
908
|
+
* @param registryName The name of the container registry.
|
909
|
+
* @param options The options parameters.
|
520
910
|
*/
|
521
|
-
|
522
|
-
|
911
|
+
getBuildSourceUploadUrl(
|
912
|
+
resourceGroupName: string,
|
913
|
+
registryName: string,
|
914
|
+
options?: RegistriesGetBuildSourceUploadUrlOptionalParams
|
915
|
+
): Promise<RegistriesGetBuildSourceUploadUrlResponse> {
|
523
916
|
return this.client.sendOperationRequest(
|
524
|
-
{
|
525
|
-
|
526
|
-
|
527
|
-
},
|
528
|
-
listNextOperationSpec,
|
529
|
-
callback) as Promise<Models.RegistriesListNextResponse>;
|
917
|
+
{ resourceGroupName, registryName, options },
|
918
|
+
getBuildSourceUploadUrlOperationSpec
|
919
|
+
);
|
530
920
|
}
|
531
921
|
|
532
922
|
/**
|
533
|
-
*
|
534
|
-
* @param
|
535
|
-
* @param
|
536
|
-
* @returns Promise<Models.RegistriesListByResourceGroupNextResponse>
|
537
|
-
*/
|
538
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListByResourceGroupNextResponse>;
|
539
|
-
/**
|
540
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
541
|
-
* @param callback The callback
|
923
|
+
* ListNext
|
924
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
925
|
+
* @param options The options parameters.
|
542
926
|
*/
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
* @param callback The callback
|
548
|
-
*/
|
549
|
-
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RegistryListResult>): void;
|
550
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RegistryListResult>, callback?: msRest.ServiceCallback<Models.RegistryListResult>): Promise<Models.RegistriesListByResourceGroupNextResponse> {
|
927
|
+
private _listNext(
|
928
|
+
nextLink: string,
|
929
|
+
options?: RegistriesListNextOptionalParams
|
930
|
+
): Promise<RegistriesListNextResponse> {
|
551
931
|
return this.client.sendOperationRequest(
|
552
|
-
{
|
553
|
-
|
554
|
-
|
555
|
-
},
|
556
|
-
listByResourceGroupNextOperationSpec,
|
557
|
-
callback) as Promise<Models.RegistriesListByResourceGroupNextResponse>;
|
932
|
+
{ nextLink, options },
|
933
|
+
listNextOperationSpec
|
934
|
+
);
|
558
935
|
}
|
559
936
|
|
560
937
|
/**
|
561
|
-
*
|
562
|
-
* @param
|
563
|
-
* @param
|
564
|
-
* @
|
565
|
-
*/
|
566
|
-
listPrivateLinkResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistriesListPrivateLinkResourcesNextResponse>;
|
567
|
-
/**
|
568
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
569
|
-
* @param callback The callback
|
938
|
+
* ListByResourceGroupNext
|
939
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
940
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
941
|
+
* @param options The options parameters.
|
570
942
|
*/
|
571
|
-
|
943
|
+
private _listByResourceGroupNext(
|
944
|
+
resourceGroupName: string,
|
945
|
+
nextLink: string,
|
946
|
+
options?: RegistriesListByResourceGroupNextOptionalParams
|
947
|
+
): Promise<RegistriesListByResourceGroupNextResponse> {
|
948
|
+
return this.client.sendOperationRequest(
|
949
|
+
{ resourceGroupName, nextLink, options },
|
950
|
+
listByResourceGroupNextOperationSpec
|
951
|
+
);
|
952
|
+
}
|
953
|
+
|
572
954
|
/**
|
573
|
-
*
|
574
|
-
* @param
|
575
|
-
* @param
|
955
|
+
* ListPrivateLinkResourcesNext
|
956
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
957
|
+
* @param registryName The name of the container registry.
|
958
|
+
* @param nextLink The nextLink from the previous successful call to the ListPrivateLinkResources
|
959
|
+
* method.
|
960
|
+
* @param options The options parameters.
|
576
961
|
*/
|
577
|
-
|
578
|
-
|
962
|
+
private _listPrivateLinkResourcesNext(
|
963
|
+
resourceGroupName: string,
|
964
|
+
registryName: string,
|
965
|
+
nextLink: string,
|
966
|
+
options?: RegistriesListPrivateLinkResourcesNextOptionalParams
|
967
|
+
): Promise<RegistriesListPrivateLinkResourcesNextResponse> {
|
579
968
|
return this.client.sendOperationRequest(
|
580
|
-
{
|
581
|
-
|
582
|
-
|
583
|
-
},
|
584
|
-
listPrivateLinkResourcesNextOperationSpec,
|
585
|
-
callback) as Promise<Models.RegistriesListPrivateLinkResourcesNextResponse>;
|
969
|
+
{ resourceGroupName, registryName, nextLink, options },
|
970
|
+
listPrivateLinkResourcesNextOperationSpec
|
971
|
+
);
|
586
972
|
}
|
587
973
|
}
|
588
|
-
|
589
974
|
// Operation Specifications
|
590
|
-
const serializer =
|
591
|
-
|
975
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
976
|
+
|
977
|
+
const importImageOperationSpec: coreClient.OperationSpec = {
|
978
|
+
path:
|
979
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importImage",
|
592
980
|
httpMethod: "POST",
|
593
|
-
|
981
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
982
|
+
requestBody: Parameters.parameters,
|
983
|
+
queryParameters: [Parameters.apiVersion],
|
594
984
|
urlParameters: [
|
595
|
-
Parameters
|
596
|
-
|
597
|
-
|
598
|
-
Parameters.
|
599
|
-
],
|
600
|
-
headerParameters: [
|
601
|
-
Parameters.acceptLanguage
|
985
|
+
Parameters.$host,
|
986
|
+
Parameters.subscriptionId,
|
987
|
+
Parameters.resourceGroupName,
|
988
|
+
Parameters.registryName
|
602
989
|
],
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
990
|
+
headerParameters: [Parameters.contentType],
|
991
|
+
mediaType: "json",
|
992
|
+
serializer
|
993
|
+
};
|
994
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
995
|
+
path:
|
996
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability",
|
997
|
+
httpMethod: "POST",
|
610
998
|
responses: {
|
611
999
|
200: {
|
612
1000
|
bodyMapper: Mappers.RegistryNameStatus
|
613
|
-
},
|
614
|
-
default: {
|
615
|
-
bodyMapper: Mappers.CloudError
|
616
1001
|
}
|
617
1002
|
},
|
1003
|
+
requestBody: Parameters.registryNameCheckRequest,
|
1004
|
+
queryParameters: [Parameters.apiVersion],
|
1005
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
1006
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
1007
|
+
mediaType: "json",
|
618
1008
|
serializer
|
619
1009
|
};
|
620
|
-
|
621
|
-
|
1010
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
1011
|
+
path:
|
1012
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries",
|
622
1013
|
httpMethod: "GET",
|
623
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries",
|
624
|
-
urlParameters: [
|
625
|
-
Parameters.subscriptionId
|
626
|
-
],
|
627
|
-
queryParameters: [
|
628
|
-
Parameters.apiVersion0
|
629
|
-
],
|
630
|
-
headerParameters: [
|
631
|
-
Parameters.acceptLanguage
|
632
|
-
],
|
633
1014
|
responses: {
|
634
1015
|
200: {
|
635
1016
|
bodyMapper: Mappers.RegistryListResult
|
636
|
-
},
|
637
|
-
default: {
|
638
|
-
bodyMapper: Mappers.CloudError
|
639
1017
|
}
|
640
1018
|
},
|
1019
|
+
queryParameters: [Parameters.apiVersion],
|
1020
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
1021
|
+
headerParameters: [Parameters.accept],
|
641
1022
|
serializer
|
642
1023
|
};
|
643
|
-
|
644
|
-
|
1024
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
1025
|
+
path:
|
1026
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries",
|
645
1027
|
httpMethod: "GET",
|
646
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries",
|
647
|
-
urlParameters: [
|
648
|
-
Parameters.subscriptionId,
|
649
|
-
Parameters.resourceGroupName
|
650
|
-
],
|
651
|
-
queryParameters: [
|
652
|
-
Parameters.apiVersion0
|
653
|
-
],
|
654
|
-
headerParameters: [
|
655
|
-
Parameters.acceptLanguage
|
656
|
-
],
|
657
1028
|
responses: {
|
658
1029
|
200: {
|
659
1030
|
bodyMapper: Mappers.RegistryListResult
|
660
|
-
},
|
661
|
-
default: {
|
662
|
-
bodyMapper: Mappers.CloudError
|
663
1031
|
}
|
664
1032
|
},
|
1033
|
+
queryParameters: [Parameters.apiVersion],
|
1034
|
+
urlParameters: [
|
1035
|
+
Parameters.$host,
|
1036
|
+
Parameters.subscriptionId,
|
1037
|
+
Parameters.resourceGroupName
|
1038
|
+
],
|
1039
|
+
headerParameters: [Parameters.accept],
|
665
1040
|
serializer
|
666
1041
|
};
|
667
|
-
|
668
|
-
|
1042
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
1043
|
+
path:
|
1044
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
669
1045
|
httpMethod: "GET",
|
670
|
-
|
1046
|
+
responses: {
|
1047
|
+
200: {
|
1048
|
+
bodyMapper: Mappers.Registry
|
1049
|
+
}
|
1050
|
+
},
|
1051
|
+
queryParameters: [Parameters.apiVersion],
|
671
1052
|
urlParameters: [
|
1053
|
+
Parameters.$host,
|
672
1054
|
Parameters.subscriptionId,
|
673
1055
|
Parameters.resourceGroupName,
|
674
1056
|
Parameters.registryName
|
675
1057
|
],
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
1058
|
+
headerParameters: [Parameters.accept],
|
1059
|
+
serializer
|
1060
|
+
};
|
1061
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
1062
|
+
path:
|
1063
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
1064
|
+
httpMethod: "PUT",
|
682
1065
|
responses: {
|
683
1066
|
200: {
|
684
1067
|
bodyMapper: Mappers.Registry
|
685
1068
|
},
|
686
|
-
|
687
|
-
bodyMapper: Mappers.
|
1069
|
+
201: {
|
1070
|
+
bodyMapper: Mappers.Registry
|
1071
|
+
},
|
1072
|
+
202: {
|
1073
|
+
bodyMapper: Mappers.Registry
|
1074
|
+
},
|
1075
|
+
204: {
|
1076
|
+
bodyMapper: Mappers.Registry
|
688
1077
|
}
|
689
1078
|
},
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
const listUsagesOperationSpec: msRest.OperationSpec = {
|
694
|
-
httpMethod: "GET",
|
695
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages",
|
1079
|
+
requestBody: Parameters.registry,
|
1080
|
+
queryParameters: [Parameters.apiVersion],
|
696
1081
|
urlParameters: [
|
1082
|
+
Parameters.$host,
|
697
1083
|
Parameters.subscriptionId,
|
698
1084
|
Parameters.resourceGroupName,
|
699
1085
|
Parameters.registryName
|
700
1086
|
],
|
701
|
-
|
702
|
-
|
703
|
-
],
|
704
|
-
headerParameters: [
|
705
|
-
Parameters.acceptLanguage
|
706
|
-
],
|
707
|
-
responses: {
|
708
|
-
200: {
|
709
|
-
bodyMapper: Mappers.RegistryUsageListResult
|
710
|
-
},
|
711
|
-
default: {
|
712
|
-
bodyMapper: Mappers.CloudError
|
713
|
-
}
|
714
|
-
},
|
1087
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
1088
|
+
mediaType: "json",
|
715
1089
|
serializer
|
716
1090
|
};
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
1091
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
1092
|
+
path:
|
1093
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
1094
|
+
httpMethod: "DELETE",
|
1095
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
1096
|
+
queryParameters: [Parameters.apiVersion],
|
721
1097
|
urlParameters: [
|
1098
|
+
Parameters.$host,
|
722
1099
|
Parameters.subscriptionId,
|
723
1100
|
Parameters.resourceGroupName,
|
724
1101
|
Parameters.registryName
|
725
1102
|
],
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
1103
|
+
serializer
|
1104
|
+
};
|
1105
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
1106
|
+
path:
|
1107
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
1108
|
+
httpMethod: "PATCH",
|
732
1109
|
responses: {
|
733
1110
|
200: {
|
734
|
-
bodyMapper: Mappers.
|
1111
|
+
bodyMapper: Mappers.Registry
|
735
1112
|
},
|
736
|
-
|
737
|
-
bodyMapper: Mappers.
|
1113
|
+
201: {
|
1114
|
+
bodyMapper: Mappers.Registry
|
1115
|
+
},
|
1116
|
+
202: {
|
1117
|
+
bodyMapper: Mappers.Registry
|
1118
|
+
},
|
1119
|
+
204: {
|
1120
|
+
bodyMapper: Mappers.Registry
|
738
1121
|
}
|
739
1122
|
},
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
const listCredentialsOperationSpec: msRest.OperationSpec = {
|
744
|
-
httpMethod: "POST",
|
745
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials",
|
1123
|
+
requestBody: Parameters.registryUpdateParameters,
|
1124
|
+
queryParameters: [Parameters.apiVersion],
|
746
1125
|
urlParameters: [
|
1126
|
+
Parameters.$host,
|
747
1127
|
Parameters.subscriptionId,
|
748
1128
|
Parameters.resourceGroupName,
|
749
1129
|
Parameters.registryName
|
750
1130
|
],
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
1131
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
1132
|
+
mediaType: "json",
|
1133
|
+
serializer
|
1134
|
+
};
|
1135
|
+
const listUsagesOperationSpec: coreClient.OperationSpec = {
|
1136
|
+
path:
|
1137
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages",
|
1138
|
+
httpMethod: "GET",
|
757
1139
|
responses: {
|
758
1140
|
200: {
|
759
|
-
bodyMapper: Mappers.
|
760
|
-
},
|
761
|
-
default: {
|
762
|
-
bodyMapper: Mappers.CloudError
|
1141
|
+
bodyMapper: Mappers.RegistryUsageListResult
|
763
1142
|
}
|
764
1143
|
},
|
765
|
-
|
766
|
-
};
|
767
|
-
|
768
|
-
const regenerateCredentialOperationSpec: msRest.OperationSpec = {
|
769
|
-
httpMethod: "POST",
|
770
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential",
|
1144
|
+
queryParameters: [Parameters.apiVersion],
|
771
1145
|
urlParameters: [
|
1146
|
+
Parameters.$host,
|
772
1147
|
Parameters.subscriptionId,
|
773
1148
|
Parameters.resourceGroupName,
|
774
1149
|
Parameters.registryName
|
775
1150
|
],
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
parameterPath: "regenerateCredentialParameters",
|
784
|
-
mapper: {
|
785
|
-
...Mappers.RegenerateCredentialParameters,
|
786
|
-
required: true
|
787
|
-
}
|
788
|
-
},
|
1151
|
+
headerParameters: [Parameters.accept],
|
1152
|
+
serializer
|
1153
|
+
};
|
1154
|
+
const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
|
1155
|
+
path:
|
1156
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources",
|
1157
|
+
httpMethod: "GET",
|
789
1158
|
responses: {
|
790
1159
|
200: {
|
791
|
-
bodyMapper: Mappers.
|
792
|
-
},
|
793
|
-
default: {
|
794
|
-
bodyMapper: Mappers.CloudError
|
1160
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
795
1161
|
}
|
796
1162
|
},
|
797
|
-
|
798
|
-
};
|
799
|
-
|
800
|
-
const getBuildSourceUploadUrlOperationSpec: msRest.OperationSpec = {
|
801
|
-
httpMethod: "POST",
|
802
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl",
|
1163
|
+
queryParameters: [Parameters.apiVersion],
|
803
1164
|
urlParameters: [
|
1165
|
+
Parameters.$host,
|
804
1166
|
Parameters.subscriptionId,
|
805
1167
|
Parameters.resourceGroupName,
|
806
1168
|
Parameters.registryName
|
807
1169
|
],
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
1170
|
+
headerParameters: [Parameters.accept],
|
1171
|
+
serializer
|
1172
|
+
};
|
1173
|
+
const listCredentialsOperationSpec: coreClient.OperationSpec = {
|
1174
|
+
path:
|
1175
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials",
|
1176
|
+
httpMethod: "POST",
|
814
1177
|
responses: {
|
815
1178
|
200: {
|
816
|
-
bodyMapper: Mappers.
|
817
|
-
},
|
818
|
-
default: {
|
819
|
-
bodyMapper: Mappers.ErrorResponse
|
1179
|
+
bodyMapper: Mappers.RegistryListCredentialsResult
|
820
1180
|
}
|
821
1181
|
},
|
822
|
-
|
823
|
-
};
|
824
|
-
|
825
|
-
const beginImportImageOperationSpec: msRest.OperationSpec = {
|
826
|
-
httpMethod: "POST",
|
827
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importImage",
|
1182
|
+
queryParameters: [Parameters.apiVersion],
|
828
1183
|
urlParameters: [
|
1184
|
+
Parameters.$host,
|
829
1185
|
Parameters.subscriptionId,
|
830
1186
|
Parameters.resourceGroupName,
|
831
1187
|
Parameters.registryName
|
832
1188
|
],
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
parameterPath: "parameters",
|
841
|
-
mapper: {
|
842
|
-
...Mappers.ImportImageParameters,
|
843
|
-
required: true
|
844
|
-
}
|
845
|
-
},
|
1189
|
+
headerParameters: [Parameters.accept],
|
1190
|
+
serializer
|
1191
|
+
};
|
1192
|
+
const regenerateCredentialOperationSpec: coreClient.OperationSpec = {
|
1193
|
+
path:
|
1194
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential",
|
1195
|
+
httpMethod: "POST",
|
846
1196
|
responses: {
|
847
|
-
200: {
|
848
|
-
|
849
|
-
default: {
|
850
|
-
bodyMapper: Mappers.CloudError
|
1197
|
+
200: {
|
1198
|
+
bodyMapper: Mappers.RegistryListCredentialsResult
|
851
1199
|
}
|
852
1200
|
},
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
857
|
-
httpMethod: "PUT",
|
858
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
1201
|
+
requestBody: Parameters.regenerateCredentialParameters,
|
1202
|
+
queryParameters: [Parameters.apiVersion],
|
859
1203
|
urlParameters: [
|
1204
|
+
Parameters.$host,
|
860
1205
|
Parameters.subscriptionId,
|
861
1206
|
Parameters.resourceGroupName,
|
862
1207
|
Parameters.registryName
|
863
1208
|
],
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
mapper: {
|
873
|
-
...Mappers.Registry,
|
874
|
-
required: true
|
875
|
-
}
|
876
|
-
},
|
1209
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
1210
|
+
mediaType: "json",
|
1211
|
+
serializer
|
1212
|
+
};
|
1213
|
+
const generateCredentialsOperationSpec: coreClient.OperationSpec = {
|
1214
|
+
path:
|
1215
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials",
|
1216
|
+
httpMethod: "POST",
|
877
1217
|
responses: {
|
878
1218
|
200: {
|
879
|
-
bodyMapper: Mappers.
|
1219
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
880
1220
|
},
|
881
1221
|
201: {
|
882
|
-
bodyMapper: Mappers.
|
1222
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
883
1223
|
},
|
884
|
-
|
885
|
-
bodyMapper: Mappers.
|
1224
|
+
202: {
|
1225
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
1226
|
+
},
|
1227
|
+
204: {
|
1228
|
+
bodyMapper: Mappers.GenerateCredentialsResult
|
886
1229
|
}
|
887
1230
|
},
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
892
|
-
httpMethod: "DELETE",
|
893
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
1231
|
+
requestBody: Parameters.generateCredentialsParameters,
|
1232
|
+
queryParameters: [Parameters.apiVersion],
|
894
1233
|
urlParameters: [
|
1234
|
+
Parameters.$host,
|
895
1235
|
Parameters.subscriptionId,
|
896
1236
|
Parameters.resourceGroupName,
|
897
1237
|
Parameters.registryName
|
898
1238
|
],
|
899
|
-
|
900
|
-
|
901
|
-
],
|
902
|
-
headerParameters: [
|
903
|
-
Parameters.acceptLanguage
|
904
|
-
],
|
905
|
-
responses: {
|
906
|
-
200: {},
|
907
|
-
202: {},
|
908
|
-
204: {},
|
909
|
-
default: {
|
910
|
-
bodyMapper: Mappers.CloudError
|
911
|
-
}
|
912
|
-
},
|
1239
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
1240
|
+
mediaType: "json",
|
913
1241
|
serializer
|
914
1242
|
};
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
urlParameters: [
|
920
|
-
Parameters.subscriptionId,
|
921
|
-
Parameters.resourceGroupName,
|
922
|
-
Parameters.registryName
|
923
|
-
],
|
924
|
-
queryParameters: [
|
925
|
-
Parameters.apiVersion0
|
926
|
-
],
|
927
|
-
headerParameters: [
|
928
|
-
Parameters.acceptLanguage
|
929
|
-
],
|
930
|
-
requestBody: {
|
931
|
-
parameterPath: "registryUpdateParameters",
|
932
|
-
mapper: {
|
933
|
-
...Mappers.RegistryUpdateParameters,
|
934
|
-
required: true
|
935
|
-
}
|
936
|
-
},
|
1243
|
+
const scheduleRunOperationSpec: coreClient.OperationSpec = {
|
1244
|
+
path:
|
1245
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun",
|
1246
|
+
httpMethod: "POST",
|
937
1247
|
responses: {
|
938
1248
|
200: {
|
939
|
-
bodyMapper: Mappers.
|
1249
|
+
bodyMapper: Mappers.Run
|
940
1250
|
},
|
941
1251
|
201: {
|
942
|
-
bodyMapper: Mappers.
|
1252
|
+
bodyMapper: Mappers.Run
|
1253
|
+
},
|
1254
|
+
202: {
|
1255
|
+
bodyMapper: Mappers.Run
|
1256
|
+
},
|
1257
|
+
204: {
|
1258
|
+
bodyMapper: Mappers.Run
|
943
1259
|
},
|
944
1260
|
default: {
|
945
|
-
bodyMapper: Mappers.
|
1261
|
+
bodyMapper: Mappers.ErrorResponse
|
946
1262
|
}
|
947
1263
|
},
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
const beginGenerateCredentialsOperationSpec: msRest.OperationSpec = {
|
952
|
-
httpMethod: "POST",
|
953
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials",
|
1264
|
+
requestBody: Parameters.runRequest,
|
1265
|
+
queryParameters: [Parameters.apiVersion1],
|
954
1266
|
urlParameters: [
|
1267
|
+
Parameters.$host,
|
955
1268
|
Parameters.subscriptionId,
|
956
1269
|
Parameters.resourceGroupName,
|
957
1270
|
Parameters.registryName
|
958
1271
|
],
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
mapper: {
|
968
|
-
...Mappers.GenerateCredentialsParameters,
|
969
|
-
required: true
|
970
|
-
}
|
971
|
-
},
|
1272
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
1273
|
+
mediaType: "json",
|
1274
|
+
serializer
|
1275
|
+
};
|
1276
|
+
const getBuildSourceUploadUrlOperationSpec: coreClient.OperationSpec = {
|
1277
|
+
path:
|
1278
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl",
|
1279
|
+
httpMethod: "POST",
|
972
1280
|
responses: {
|
973
1281
|
200: {
|
974
|
-
bodyMapper: Mappers.
|
1282
|
+
bodyMapper: Mappers.SourceUploadDefinition
|
975
1283
|
},
|
976
|
-
202: {},
|
977
1284
|
default: {
|
978
|
-
bodyMapper: Mappers.
|
1285
|
+
bodyMapper: Mappers.ErrorResponse
|
979
1286
|
}
|
980
1287
|
},
|
981
|
-
|
982
|
-
};
|
983
|
-
|
984
|
-
const beginScheduleRunOperationSpec: msRest.OperationSpec = {
|
985
|
-
httpMethod: "POST",
|
986
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun",
|
1288
|
+
queryParameters: [Parameters.apiVersion1],
|
987
1289
|
urlParameters: [
|
1290
|
+
Parameters.$host,
|
988
1291
|
Parameters.subscriptionId,
|
989
1292
|
Parameters.resourceGroupName,
|
990
1293
|
Parameters.registryName
|
991
1294
|
],
|
992
|
-
|
993
|
-
Parameters.apiVersion1
|
994
|
-
],
|
995
|
-
headerParameters: [
|
996
|
-
Parameters.acceptLanguage
|
997
|
-
],
|
998
|
-
requestBody: {
|
999
|
-
parameterPath: "runRequest",
|
1000
|
-
mapper: {
|
1001
|
-
...Mappers.RunRequest,
|
1002
|
-
required: true
|
1003
|
-
}
|
1004
|
-
},
|
1005
|
-
responses: {
|
1006
|
-
200: {
|
1007
|
-
bodyMapper: Mappers.Run
|
1008
|
-
},
|
1009
|
-
202: {},
|
1010
|
-
default: {
|
1011
|
-
bodyMapper: Mappers.ErrorResponse
|
1012
|
-
}
|
1013
|
-
},
|
1295
|
+
headerParameters: [Parameters.accept],
|
1014
1296
|
serializer
|
1015
1297
|
};
|
1016
|
-
|
1017
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
1018
|
-
httpMethod: "GET",
|
1019
|
-
baseUrl: "https://management.azure.com",
|
1298
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
1020
1299
|
path: "{nextLink}",
|
1021
|
-
|
1022
|
-
Parameters.nextPageLink
|
1023
|
-
],
|
1024
|
-
queryParameters: [
|
1025
|
-
Parameters.apiVersion0
|
1026
|
-
],
|
1027
|
-
headerParameters: [
|
1028
|
-
Parameters.acceptLanguage
|
1029
|
-
],
|
1300
|
+
httpMethod: "GET",
|
1030
1301
|
responses: {
|
1031
1302
|
200: {
|
1032
1303
|
bodyMapper: Mappers.RegistryListResult
|
1033
|
-
},
|
1034
|
-
default: {
|
1035
|
-
bodyMapper: Mappers.CloudError
|
1036
1304
|
}
|
1037
1305
|
},
|
1306
|
+
queryParameters: [Parameters.apiVersion],
|
1307
|
+
urlParameters: [
|
1308
|
+
Parameters.$host,
|
1309
|
+
Parameters.subscriptionId,
|
1310
|
+
Parameters.nextLink
|
1311
|
+
],
|
1312
|
+
headerParameters: [Parameters.accept],
|
1038
1313
|
serializer
|
1039
1314
|
};
|
1040
|
-
|
1041
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
1042
|
-
httpMethod: "GET",
|
1043
|
-
baseUrl: "https://management.azure.com",
|
1315
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
1044
1316
|
path: "{nextLink}",
|
1045
|
-
|
1046
|
-
Parameters.nextPageLink
|
1047
|
-
],
|
1048
|
-
queryParameters: [
|
1049
|
-
Parameters.apiVersion0
|
1050
|
-
],
|
1051
|
-
headerParameters: [
|
1052
|
-
Parameters.acceptLanguage
|
1053
|
-
],
|
1317
|
+
httpMethod: "GET",
|
1054
1318
|
responses: {
|
1055
1319
|
200: {
|
1056
1320
|
bodyMapper: Mappers.RegistryListResult
|
1057
|
-
},
|
1058
|
-
default: {
|
1059
|
-
bodyMapper: Mappers.CloudError
|
1060
1321
|
}
|
1061
1322
|
},
|
1323
|
+
queryParameters: [Parameters.apiVersion],
|
1324
|
+
urlParameters: [
|
1325
|
+
Parameters.$host,
|
1326
|
+
Parameters.subscriptionId,
|
1327
|
+
Parameters.resourceGroupName,
|
1328
|
+
Parameters.nextLink
|
1329
|
+
],
|
1330
|
+
headerParameters: [Parameters.accept],
|
1062
1331
|
serializer
|
1063
1332
|
};
|
1064
|
-
|
1065
|
-
const listPrivateLinkResourcesNextOperationSpec: msRest.OperationSpec = {
|
1066
|
-
httpMethod: "GET",
|
1067
|
-
baseUrl: "https://management.azure.com",
|
1333
|
+
const listPrivateLinkResourcesNextOperationSpec: coreClient.OperationSpec = {
|
1068
1334
|
path: "{nextLink}",
|
1069
|
-
|
1070
|
-
Parameters.nextPageLink
|
1071
|
-
],
|
1072
|
-
queryParameters: [
|
1073
|
-
Parameters.apiVersion0
|
1074
|
-
],
|
1075
|
-
headerParameters: [
|
1076
|
-
Parameters.acceptLanguage
|
1077
|
-
],
|
1335
|
+
httpMethod: "GET",
|
1078
1336
|
responses: {
|
1079
1337
|
200: {
|
1080
1338
|
bodyMapper: Mappers.PrivateLinkResourceListResult
|
1081
|
-
},
|
1082
|
-
default: {
|
1083
|
-
bodyMapper: Mappers.CloudError
|
1084
1339
|
}
|
1085
1340
|
},
|
1341
|
+
queryParameters: [Parameters.apiVersion],
|
1342
|
+
urlParameters: [
|
1343
|
+
Parameters.$host,
|
1344
|
+
Parameters.subscriptionId,
|
1345
|
+
Parameters.resourceGroupName,
|
1346
|
+
Parameters.registryName,
|
1347
|
+
Parameters.nextLink
|
1348
|
+
],
|
1349
|
+
headerParameters: [Parameters.accept],
|
1086
1350
|
serializer
|
1087
1351
|
};
|