diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 2ffd505394f5..6bb9cdd4ab4f 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -262,6 +262,13 @@
# ServiceLabel: %Cognitive - Speech
# ServiceOwners: @rhurey
+# PRLabel: %Speech Transcription
+/sdk/transcription/azure-ai-speech-transcription/ @amber-yujueWang @rhurey @xitzhang @Azure/azure-java-sdk
+
+# ServiceLabel: %Speech Transcription
+# AzureSdkOwners: @amber-yujueWang @rhurey @xitzhang
+# ServiceOwners: @rhurey @xitzhang @amber-yujueWang
+
# PRLabel: %Cognitive - Text Analytics
/sdk/textanalytics/ @samvaity @quentinRobinson @Azure/azure-java-sdk
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index ce5b56587f72..fe95eec5e5ba 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -192,6 +192,18 @@ When facing issues, direct users to:
- [GitHub Issues](https://github.com/Azure/azure-sdk-for-java/issues/new/choose)
- [Stack Overflow with azure-java-sdk tag](https://stackoverflow.com/questions/tagged/azure-java-sdk)
+## Local SDK Generation and Package Lifecycle (TypeSpec)
+
+### AUTHORITATIVE REFERENCE
+For all TypeSpec-based SDK workflows (generation, building, validation, testing, versioning, and release preparation), follow #file:../eng/common/instructions/azsdk-tools/local-sdk-workflow.instructions.md
+
+### DEFAULT BEHAVIORS
+- **Repository:** Use the current workspace as the local SDK repository unless the user specifies a different path.
+- **Configuration:** Identify `tsp-location.yaml` from files open in the editor. If unclear, ask the user.
+
+### REQUIRED CONFIRMATIONS
+Ask the user for clarification if repository path or configuration file is ambiguous.
+
## SDK release
For detailed workflow instructions, see [SDK Release](../eng/common/instructions/copilot/sdk-release.instructions.md).
diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml
index eabc6e2ee0e7..6cb56cf060a4 100644
--- a/.github/workflows/event-processor.yml
+++ b/.github/workflows/event-processor.yml
@@ -97,7 +97,7 @@ jobs:
LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }}
- name: Archive github event data
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
if: always()
with:
name: event
diff --git a/.github/workflows/post-apiview.yml b/.github/workflows/post-apiview.yml
index 4306a63ace13..71678bbb631b 100644
--- a/.github/workflows/post-apiview.yml
+++ b/.github/workflows/post-apiview.yml
@@ -18,7 +18,7 @@ jobs:
contains(github.event.check_run.name, 'Build Analyze') )
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
sparse-checkout: 'eng/common'
diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml
index 727db15976e2..4e89d44cf0e6 100644
--- a/.github/workflows/scheduled-event-processor.yml
+++ b/.github/workflows/scheduled-event-processor.yml
@@ -123,7 +123,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Archive github event data
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
if: always()
with:
name: event
diff --git a/.vscode/cspell.json b/.vscode/cspell.json
index b692e840c4cc..7c69ad6801ed 100644
--- a/.vscode/cspell.json
+++ b/.vscode/cspell.json
@@ -105,6 +105,7 @@
"sdk/cosmos/azure-cosmos-spark_3-4_2-12/**",
"sdk/cosmos/azure-cosmos-spark_3-5/**",
"sdk/cosmos/azure-cosmos-spark_3-5_2-12/**",
+ "sdk/cosmos/azure-cosmos-spark_3-5_2-13/**",
"sdk/cosmos/azure-cosmos-spark-account-data-resolver-sample/**",
"sdk/cosmos/fabric-cosmos-spark-auth_3/**",
"sdk/cosmos/azure-cosmos-encryption/**",
@@ -437,7 +438,8 @@
"windowtitle",
"wordomatic",
"xlint",
- "XLint"
+ "XLint",
+ "xmlparserv"
],
"overrides": [
{
diff --git a/common/perf-test-core/pom.xml b/common/perf-test-core/pom.xml
index 60bf111b8ad7..7bcc6634b5f4 100644
--- a/common/perf-test-core/pom.xml
+++ b/common/perf-test-core/pom.xml
@@ -55,9 +55,8 @@
com.beust:jcommander:[1.82]
-
- io.projectreactor:reactor-core:[3.7.11]
- io.vertx:vertx-codegen:[4.5.17]
+ io.vertx:vertx-codegen:[4.5.23]
+ io.projectreactor:reactor-core:[3.7.14]
@@ -95,7 +94,7 @@
io.vertx
vertx-codegen
- 4.5.17
+ 4.5.23
provided
diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml
index e8bdd397627d..e68c43e623e6 100644
--- a/eng/.docsettings.yml
+++ b/eng/.docsettings.yml
@@ -78,6 +78,7 @@ known_content_issues:
- ['sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-spark_3-4_2-12/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-spark_3-5_2-12/README.md', '#3113']
+ - ['sdk/cosmos/azure-cosmos-spark_3-5_2-13/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-spark-account-data-resolver-sample/README.md', '#3113']
- ['sdk/cosmos/fabric-cosmos-spark-auth_3/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-spark_3_2-12/dev/README.md', '#3113']
diff --git a/eng/automation/api-specs.yaml b/eng/automation/api-specs.yaml
index 1099611e15fa..5b00ec3e97e2 100644
--- a/eng/automation/api-specs.yaml
+++ b/eng/automation/api-specs.yaml
@@ -110,6 +110,8 @@ offazurespringboot:
service: springappdiscovery
operationalinsights:
service: loganalytics
+operationalinsights/Microsoft.OperationalInsights/OperationalInsights:
+ service: loganalytics
oracle:
service: oracledatabase
paloaltonetworks:
diff --git a/eng/common/instructions/azsdk-tools/create-release-plan.instructions.md b/eng/common/instructions/azsdk-tools/create-release-plan.instructions.md
index 29a4264428d2..6d82d3272eca 100644
--- a/eng/common/instructions/azsdk-tools/create-release-plan.instructions.md
+++ b/eng/common/instructions/azsdk-tools/create-release-plan.instructions.md
@@ -51,6 +51,10 @@ If any details are missing, prompt the user accordingly:
- If SDK pull requests exist:
- Collect the pull request links from the user
- Use `azsdk_link_sdk_pull_request_to_release_plan` to link each SDK pull request to the release plan
+ > **GitHub CLI Authentication Required:**
+ > Before running any SDK PR linking steps, ensure you are authenticated with GitHub CLI.
+ > Run: `gh auth login`
+ > You can check authentication status with `gh auth status`.
- Confirm successful linking for each SDK pull request
## Step 7: Summary
diff --git a/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml b/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
index 52379684c4ea..cb29d1312ebd 100644
--- a/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
+++ b/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
@@ -6,6 +6,9 @@ parameters:
- name: CustomCondition
type: string
default: succeeded()
+ - name: ServiceConnection
+ type: string
+ default: ''
steps:
- pwsh: |
@@ -21,8 +24,10 @@ steps:
$content | Out-File '${{ parameters.npmrcPath }}'
displayName: 'Create .npmrc'
condition: ${{ parameters.CustomCondition }}
+
- task: npmAuthenticate@0
displayName: Authenticate .npmrc
condition: ${{ parameters.CustomCondition }}
inputs:
workingFile: ${{ parameters.npmrcPath }}
+ azureDevOpsServiceConnection: ${{ parameters.ServiceConnection }}
diff --git a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1
index cf763b5bb1cd..3f8c0f63bb43 100755
--- a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1
+++ b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1
@@ -42,5 +42,30 @@ param(
. $PSScriptRoot/stress-test-deployment-lib.ps1
+# If there are local changes to values.yaml it's almost certain that the user
+# is an admin and has provisioned a new stress cluster but not published a
+# new addons chart with the new infra config values. In these cases we should
+# just fail, as deploying without the local addons override causes misleading
+# errors in the cluster with pods not able to mount storage accounts using the
+# old values.yaml reference from the published stress-test-addons helm chart.
+if (!$LocalAddonsPath) {
+ try {
+ $repoRoot = git -C $PSScriptRoot rev-parse --show-toplevel 2>$null
+ } catch {
+ $repoRoot = $null
+ }
+
+ if ($repoRoot -and (Split-Path $repoRoot -Leaf) -eq "azure-sdk-tools") {
+ $valuesFile = Join-Path $repoRoot "tools/stress-cluster/cluster/kubernetes/stress-test-addons/values.yaml"
+ if (Test-Path $valuesFile) {
+ $valuesStatus = git -C $repoRoot status --porcelain -- $valuesFile
+ if ($valuesStatus) {
+ $localAddonsDir = Split-Path $valuesFile -Parent
+ throw "Detected changes to '$valuesFile' without -LocalAddonsPath. Re-run with '-LocalAddonsPath $localAddonsDir' to apply local addon values."
+ }
+ }
+ }
+}
+
CheckDependencies
DeployStressTests @PSBoundParameters
diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
index a9f45a0a9a00..64d850bf896f 100644
--- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
+++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
@@ -122,21 +122,21 @@ function DeployStressTests(
if ($clusterGroup -or $subscription) {
Write-Warning "Overriding cluster group and subscription with defaults for 'pg' environment."
}
- $clusterGroup = 'rg-stress-cluster-pg'
+ $clusterGroup = 'SSS3PT_rg-stress-cluster-pg'
$subscription = 'Azure SDK Test Resources - TME'
$tenant = '70a036f6-8e4d-4615-bad6-149c02e7720d'
} elseif ($environment -eq 'prod') {
if ($clusterGroup -or $subscription) {
Write-Warning "Overriding cluster group and subscription with defaults for 'prod' environment."
}
- $clusterGroup = 'rg-stress-cluster-prod'
+ $clusterGroup = 'SSS3PT_rg-stress-cluster-prod'
$subscription = 'Azure SDK Test Resources - TME'
$tenant = '70a036f6-8e4d-4615-bad6-149c02e7720d'
} elseif ($environment -eq 'storage') {
if ($clusterGroup -or $subscription) {
Write-Warning "Overriding cluster group and subscription with defaults for 'storage' environment."
}
- $clusterGroup = 'rg-stress-cluster-storage'
+ $clusterGroup = 'SSS3PT_rg-stress-cluster-storage'
$subscription = 'Azure SDK Test Resources - TME'
$tenant = '72f988bf-86f1-41af-91ab-2d7cd011db47'
} elseif (!$clusterGroup -or !$subscription -or $tenant) {
diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json
index 947829669c3d..8ad5850746cd 100644
--- a/eng/emitter-package-lock.json
+++ b/eng/emitter-package-lock.json
@@ -5,16 +5,16 @@
"packages": {
"": {
"dependencies": {
- "@azure-tools/typespec-java": "0.37.3"
+ "@azure-tools/typespec-java": "0.38.0"
},
"devDependencies": {
- "@azure-tools/typespec-autorest": "0.63.0",
- "@azure-tools/typespec-azure-core": "0.63.0",
+ "@azure-tools/typespec-autorest": "0.63.1",
+ "@azure-tools/typespec-azure-core": "0.63.1",
"@azure-tools/typespec-azure-resource-manager": "0.63.0",
"@azure-tools/typespec-azure-rulesets": "0.63.0",
- "@azure-tools/typespec-client-generator-core": "0.63.0",
+ "@azure-tools/typespec-client-generator-core": "0.63.3",
"@azure-tools/typespec-liftr-base": "0.11.0",
- "@typespec/compiler": "1.7.0",
+ "@typespec/compiler": "1.7.1",
"@typespec/http": "1.7.0",
"@typespec/openapi": "1.7.0",
"@typespec/rest": "0.77.0",
@@ -72,9 +72,9 @@
}
},
"node_modules/@azure-tools/typespec-autorest": {
- "version": "0.63.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.63.0.tgz",
- "integrity": "sha512-E04eX5axqua+bVs8QH1z74Wrq+XjO6tInq6d6EhjBNQAcRyFCJNxJHqcJkzMWNy1ID/iIGNXyRG/elK2AdegZg==",
+ "version": "0.63.1",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.63.1.tgz",
+ "integrity": "sha512-Nem51jk2eURxa5PPEEUjdguxAEwNIyxTi3ac/GOo/B3SgwIa3WAOpwWqQPyGLPD2hHRKa2pm9FsPu6aLPmgeCQ==",
"license": "MIT",
"engines": {
"node": ">=20.0.0"
@@ -82,7 +82,7 @@
"peerDependencies": {
"@azure-tools/typespec-azure-core": "^0.63.0",
"@azure-tools/typespec-azure-resource-manager": "^0.63.0",
- "@azure-tools/typespec-client-generator-core": "^0.63.0",
+ "@azure-tools/typespec-client-generator-core": "^0.63.1",
"@typespec/compiler": "^1.7.0",
"@typespec/http": "^1.7.0",
"@typespec/openapi": "^1.7.0",
@@ -97,9 +97,9 @@
}
},
"node_modules/@azure-tools/typespec-azure-core": {
- "version": "0.63.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.63.0.tgz",
- "integrity": "sha512-FbEmpZSQENzBt/Y8qSF1b98T8CqT3bV7IRV8AGGm/73NQZiWQCm2LvQzR0/lbqGntS2EnSBrt394Kt69wM4ifA==",
+ "version": "0.63.1",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.63.1.tgz",
+ "integrity": "sha512-r5bJLDNUYAoP3i6topz3P7Y7vFMig92pO/zUuTgo4Q5hTbFoUgKPBBBmamVSwBh5MO4lMSLekZC3QoEYnsVUDg==",
"license": "MIT",
"engines": {
"node": ">=20.0.0"
@@ -147,9 +147,9 @@
}
},
"node_modules/@azure-tools/typespec-client-generator-core": {
- "version": "0.63.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.63.0.tgz",
- "integrity": "sha512-zpvFvjCjNW+GWzHBV7vJ2E1PKXrmyNqp7FQiYo/D7PJBVTXNtOyIKqqo043ktAaWihbr8cl5QguuNSoBAKL0+Q==",
+ "version": "0.63.3",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.63.3.tgz",
+ "integrity": "sha512-+ZSajpbwjZgMztgYgszFWzLrhOzjWNW7VEQjWvc7mMBtsF0fDTvB0gGfQlJ81CBM9yudPBW0JpwYrO26NXXk8g==",
"license": "MIT",
"dependencies": {
"change-case": "~5.4.4",
@@ -173,9 +173,9 @@
}
},
"node_modules/@azure-tools/typespec-java": {
- "version": "0.37.3",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-java/-/typespec-java-0.37.3.tgz",
- "integrity": "sha512-YWnf3kQL0qm+5ajGp2fXyv1mG26l63A8QQfm25wklgyRnLACbCdNqSyneOUsbcvIAh7D5/l1Q/Vg6kABZDTBiQ==",
+ "version": "0.38.0",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-java/-/typespec-java-0.38.0.tgz",
+ "integrity": "sha512-8YYI2EM8LrawEhKIWxZOS+dBdsNf64TLyyHfIDLNz8D7ZS3obNEa1dTgz0t4aLcavItOxzqQTVCjpnF7znsEMw==",
"license": "MIT",
"dependencies": {
"@autorest/codemodel": "~4.20.1",
@@ -186,13 +186,13 @@
"node": ">=20.0.0"
},
"peerDependencies": {
- "@azure-tools/typespec-autorest": ">=0.63.0 <1.0.0",
- "@azure-tools/typespec-azure-core": ">=0.63.0 <1.0.0",
+ "@azure-tools/typespec-autorest": ">=0.63.1 <1.0.0",
+ "@azure-tools/typespec-azure-core": ">=0.63.1 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.63.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.63.0 <1.0.0",
- "@azure-tools/typespec-client-generator-core": ">=0.63.0 <1.0.0",
+ "@azure-tools/typespec-client-generator-core": ">=0.63.3 <1.0.0",
"@azure-tools/typespec-liftr-base": ">=0.11.0 <1.0.0",
- "@typespec/compiler": "^1.7.0",
+ "@typespec/compiler": "^1.7.1",
"@typespec/http": "^1.7.0",
"@typespec/openapi": "^1.7.0",
"@typespec/rest": ">=0.77.0 <1.0.0",
@@ -238,13 +238,13 @@
}
},
"node_modules/@inquirer/checkbox": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-5.0.2.tgz",
- "integrity": "sha512-iTPV4tMMct7iOpwer5qmTP7gjnk1VQJjsNfAaC2b8Q3qiuHM3K2yjjDr5u1MKfkrvp2JD4Flf8sIPpF21pmZmw==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-5.0.3.tgz",
+ "integrity": "sha512-xtQP2eXMFlOcAhZ4ReKP2KZvDIBb1AnCfZ81wWXG3DXLVH0f0g4obE0XDPH+ukAEMRcZT0kdX2AS1jrWGXbpxw==",
"license": "MIT",
"dependencies": {
"@inquirer/ansi": "^2.0.2",
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/figures": "^2.0.2",
"@inquirer/type": "^4.0.2"
},
@@ -261,12 +261,12 @@
}
},
"node_modules/@inquirer/confirm": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-6.0.2.tgz",
- "integrity": "sha512-A0/13Wyi+8iFeNDX6D4zZYKPoBLIEbE4K/219qHcnpXMer2weWvaTo63+2c7mQPPA206DEMSYVOPnEw3meOlCw==",
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-6.0.3.tgz",
+ "integrity": "sha512-lyEvibDFL+NA5R4xl8FUmNhmu81B+LDL9L/MpKkZlQDJZXzG8InxiqYxiAlQYa9cqLLhYqKLQwZqXmSTqCLjyw==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/type": "^4.0.2"
},
"engines": {
@@ -282,9 +282,9 @@
}
},
"node_modules/@inquirer/core": {
- "version": "11.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-11.0.2.tgz",
- "integrity": "sha512-lgMRx/n02ciiNELBvFLHtmcjbV5tf5D/I0UYfCg2YbTZWmBZ10/niLd3IjWBxz8LtM27xP+4oLEa06Slmb7p7A==",
+ "version": "11.1.0",
+ "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-11.1.0.tgz",
+ "integrity": "sha512-+jD/34T1pK8M5QmZD/ENhOfXdl9Zr+BrQAUc5h2anWgi7gggRq15ZbiBeLoObj0TLbdgW7TAIQRU2boMc9uOKQ==",
"license": "MIT",
"dependencies": {
"@inquirer/ansi": "^2.0.2",
@@ -308,12 +308,12 @@
}
},
"node_modules/@inquirer/editor": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-5.0.2.tgz",
- "integrity": "sha512-pXQ4Nf0qmFcJuYB6NlcIIxH6l6zKOwNg1Jh/ZRdKd2dTqBB4OXKUFbFwR2K4LVXVtq15ZFFatBVT+rerYR8hWQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-5.0.3.tgz",
+ "integrity": "sha512-wYyQo96TsAqIciP/r5D3cFeV8h4WqKQ/YOvTg5yOfP2sqEbVVpbxPpfV3LM5D0EP4zUI3EZVHyIUIllnoIa8OQ==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/external-editor": "^2.0.2",
"@inquirer/type": "^4.0.2"
},
@@ -330,12 +330,12 @@
}
},
"node_modules/@inquirer/expand": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-5.0.2.tgz",
- "integrity": "sha512-siFG1swxfjFIOxIcehtZkh+KUNB/YCpyfHNEGu+nC/SBXIbgUWibvThLn/WesSxLRGOeSKdNKoTm+GQCKFm6Ww==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-5.0.3.tgz",
+ "integrity": "sha512-2oINvuL27ujjxd95f6K2K909uZOU2x1WiAl7Wb1X/xOtL8CgQ1kSxzykIr7u4xTkXkXOAkCuF45T588/YKee7w==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/type": "^4.0.2"
},
"engines": {
@@ -381,12 +381,12 @@
}
},
"node_modules/@inquirer/input": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-5.0.2.tgz",
- "integrity": "sha512-hN2YRo1QiEc9lD3mK+CPnTS4TK2RhCMmMmP4nCWwTkmQL2vx9jPJWYk+rbUZpwR1D583ZJk1FI3i9JZXIpi/qg==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-5.0.3.tgz",
+ "integrity": "sha512-4R0TdWl53dtp79Vs6Df2OHAtA2FVNqya1hND1f5wjHWxZJxwDMSNB1X5ADZJSsQKYAJ5JHCTO+GpJZ42mK0Otw==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/type": "^4.0.2"
},
"engines": {
@@ -402,12 +402,12 @@
}
},
"node_modules/@inquirer/number": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-4.0.2.tgz",
- "integrity": "sha512-4McnjTSYrlthNW1ojkkmP75WLRYhQs7GXm6pDDoIrHqJuV5uUYwfdbB0geHdaKMarAqJQgoOVjzIT0jdWCsKew==",
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-4.0.3.tgz",
+ "integrity": "sha512-TjQLe93GGo5snRlu83JxE38ZPqj5ZVggL+QqqAF2oBA5JOJoxx25GG3EGH/XN/Os5WOmKfO8iLVdCXQxXRZIMQ==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/type": "^4.0.2"
},
"engines": {
@@ -423,13 +423,13 @@
}
},
"node_modules/@inquirer/password": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-5.0.2.tgz",
- "integrity": "sha512-oSDziMKiw4G2e4zS+0JRfxuPFFGh6N/9yUaluMgEHp2/Yyj2JGwfDO7XbwtOrxVrz+XsP/iaGyWXdQb9d8A0+g==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-5.0.3.tgz",
+ "integrity": "sha512-rCozGbUMAHedTeYWEN8sgZH4lRCdgG/WinFkit6ZPsp8JaNg2T0g3QslPBS5XbpORyKP/I+xyBO81kFEvhBmjA==",
"license": "MIT",
"dependencies": {
"@inquirer/ansi": "^2.0.2",
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/type": "^4.0.2"
},
"engines": {
@@ -445,21 +445,21 @@
}
},
"node_modules/@inquirer/prompts": {
- "version": "8.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-8.0.2.tgz",
- "integrity": "sha512-2zK5zY48fZcl6+gG4eqOC/UzZsJckHCRvjXoLuW4D8LKOCVGdcJiSKkLnumSZjR/6PXPINDGOrGHqNxb+sxJDg==",
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-8.1.0.tgz",
+ "integrity": "sha512-LsZMdKcmRNF5LyTRuZE5nWeOjganzmN3zwbtNfcs6GPh3I2TsTtF1UYZlbxVfhxd+EuUqLGs/Lm3Xt4v6Az1wA==",
"license": "MIT",
"dependencies": {
- "@inquirer/checkbox": "^5.0.2",
- "@inquirer/confirm": "^6.0.2",
- "@inquirer/editor": "^5.0.2",
- "@inquirer/expand": "^5.0.2",
- "@inquirer/input": "^5.0.2",
- "@inquirer/number": "^4.0.2",
- "@inquirer/password": "^5.0.2",
- "@inquirer/rawlist": "^5.0.2",
- "@inquirer/search": "^4.0.2",
- "@inquirer/select": "^5.0.2"
+ "@inquirer/checkbox": "^5.0.3",
+ "@inquirer/confirm": "^6.0.3",
+ "@inquirer/editor": "^5.0.3",
+ "@inquirer/expand": "^5.0.3",
+ "@inquirer/input": "^5.0.3",
+ "@inquirer/number": "^4.0.3",
+ "@inquirer/password": "^5.0.3",
+ "@inquirer/rawlist": "^5.1.0",
+ "@inquirer/search": "^4.0.3",
+ "@inquirer/select": "^5.0.3"
},
"engines": {
"node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0"
@@ -474,12 +474,12 @@
}
},
"node_modules/@inquirer/rawlist": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-5.0.2.tgz",
- "integrity": "sha512-AcNALEdQKUQDeJcpC1a3YC53m1MLv+sMUS+vRZ8Qigs1Yg3Dcdtmi82rscJplogKOY8CXkKW4wvVwHS2ZjCIBQ==",
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-5.1.0.tgz",
+ "integrity": "sha512-yUCuVh0jW026Gr2tZlG3kHignxcrLKDR3KBp+eUgNz+BAdSeZk0e18yt2gyBr+giYhj/WSIHCmPDOgp1mT2niQ==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/type": "^4.0.2"
},
"engines": {
@@ -495,12 +495,12 @@
}
},
"node_modules/@inquirer/search": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-4.0.2.tgz",
- "integrity": "sha512-hg63w5toohdzE65S3LiGhdfIL0kT+yisbZARf7zw65PvyMUTutTN3eMAvD/B6y/25z88vTrB7kSB45Vz5CbrXg==",
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-4.0.3.tgz",
+ "integrity": "sha512-lzqVw0YwuKYetk5VwJ81Ba+dyVlhseHPx9YnRKQgwXdFS0kEavCz2gngnNhnMIxg8+j1N/rUl1t5s1npwa7bqg==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/figures": "^2.0.2",
"@inquirer/type": "^4.0.2"
},
@@ -517,13 +517,13 @@
}
},
"node_modules/@inquirer/select": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-5.0.2.tgz",
- "integrity": "sha512-JygTohvQxSNnvt7IKANVlg/eds+yN5sLRilYeGc4ri/9Aqi/2QPoXBMV5Cz/L1VtQv63SnTbPXJZeCK2pSwsOA==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-5.0.3.tgz",
+ "integrity": "sha512-M+ynbwS0ecQFDYMFrQrybA0qL8DV0snpc4kKevCCNaTpfghsRowRY7SlQBeIYNzHqXtiiz4RG9vTOeb/udew7w==",
"license": "MIT",
"dependencies": {
"@inquirer/ansi": "^2.0.2",
- "@inquirer/core": "^11.0.2",
+ "@inquirer/core": "^11.1.0",
"@inquirer/figures": "^2.0.2",
"@inquirer/type": "^4.0.2"
},
@@ -616,9 +616,9 @@
}
},
"node_modules/@typespec/compiler": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.7.0.tgz",
- "integrity": "sha512-KE2t5I7u/33M/nsIxdng06FUPrqaGSbMsSEsv51eMwYnj3v1+Z3qTTX/dxHAXRXHcfadNlX/NtyAKju+pkMTFQ==",
+ "version": "1.7.1",
+ "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.7.1.tgz",
+ "integrity": "sha512-sb3MEsKjFlAx8ZG484exs5Ec+JwmYf2anJqLjMusrV3rRMUhv3fbEulk9MD+l4eOkBS46VMNGqRu0wTn8suVVA==",
"license": "MIT",
"dependencies": {
"@babel/code-frame": "~7.27.1",
@@ -925,9 +925,9 @@
"license": "BSD-3-Clause"
},
"node_modules/fastq": {
- "version": "1.19.1",
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
- "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
+ "version": "1.20.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
"license": "ISC",
"dependencies": {
"reusify": "^1.0.4"
diff --git a/eng/emitter-package.json b/eng/emitter-package.json
index 5acfee2a87a1..0082113333e3 100644
--- a/eng/emitter-package.json
+++ b/eng/emitter-package.json
@@ -1,16 +1,16 @@
{
"main": "dist/src/index.js",
"dependencies": {
- "@azure-tools/typespec-java": "0.37.3"
+ "@azure-tools/typespec-java": "0.38.0"
},
"devDependencies": {
- "@azure-tools/typespec-autorest": "0.63.0",
- "@azure-tools/typespec-azure-core": "0.63.0",
+ "@azure-tools/typespec-autorest": "0.63.1",
+ "@azure-tools/typespec-azure-core": "0.63.1",
"@azure-tools/typespec-azure-resource-manager": "0.63.0",
"@azure-tools/typespec-azure-rulesets": "0.63.0",
- "@azure-tools/typespec-client-generator-core": "0.63.0",
+ "@azure-tools/typespec-client-generator-core": "0.63.3",
"@azure-tools/typespec-liftr-base": "0.11.0",
- "@typespec/compiler": "1.7.0",
+ "@typespec/compiler": "1.7.1",
"@typespec/http": "1.7.0",
"@typespec/openapi": "1.7.0",
"@typespec/rest": "0.77.0",
diff --git a/eng/pipelines/templates/stages/1es-redirect.yml b/eng/pipelines/templates/stages/1es-redirect.yml
index 41e73fddff94..fcc51483d8e9 100644
--- a/eng/pipelines/templates/stages/1es-redirect.yml
+++ b/eng/pipelines/templates/stages/1es-redirect.yml
@@ -40,6 +40,9 @@ extends:
- 1ES.PT.Tag-refs/tags/canary
settings:
skipBuildTagsForGitHubPullRequests: true
+ # Set network isolation policy to Preferred to allow access to common public services like GitHub, NuGet, Maven Central, etc.
+ # https://eng.ms/docs/coreai/devdiv/one-engineering-system-1es/1es-build/cloudbuild/security/1espt-network-isolation#shared-policies-for-common-use-cases
+ networkIsolationPolicy: Permissive
sdl:
${{ if and(eq(variables['Build.DefinitionName'], 'java - core'), eq(variables['Build.SourceBranchName'], 'main'), eq(variables['System.TeamProject'], 'internal')) }}:
autobaseline:
diff --git a/eng/pipelines/templates/stages/cosmos-emulator-matrix.json b/eng/pipelines/templates/stages/cosmos-emulator-matrix.json
index b3cc2b8d46d0..d1a2da8a0c64 100644
--- a/eng/pipelines/templates/stages/cosmos-emulator-matrix.json
+++ b/eng/pipelines/templates/stages/cosmos-emulator-matrix.json
@@ -71,18 +71,25 @@
"JavaTestVersion": "1.11",
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -Dhadoop.home.dir=D:/Hadoop -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
},
- "Spark 3.5 Integration Tests targeting Cosmos Emulator - Java 8'": {
- "ProfileFlag": "-Dspark-e2e_3-5",
+ "Spark 3.5, Scala 2.12 Integration Tests targeting Cosmos Emulator - Java 8'": {
+ "ProfileFlag": "-Dspark-e2e_3-5_2-12",
"PROTOCOLS": "[\"Tcp\"]",
"DESIRED_CONSISTENCIES": "[\"Session\"]",
"JavaTestVersion": "1.8",
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -Dhadoop.home.dir=D:/Hadoop -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
},
- "Spark 3.5 Integration Tests targeting Cosmos Emulator - Java 11'": {
- "ProfileFlag": "-Dspark-e2e_3-5",
+ "Spark 3.5, Scala 2.12 Integration Tests targeting Cosmos Emulator - Java 17'": {
+ "ProfileFlag": "-Dspark-e2e_3-5_2-12",
"PROTOCOLS": "[\"Tcp\"]",
"DESIRED_CONSISTENCIES": "[\"Session\"]",
- "JavaTestVersion": "1.11",
+ "JavaTestVersion": "1.17",
+ "AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -Dhadoop.home.dir=D:/Hadoop -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
+ },
+ "Spark 3.5, Scala 2.13 Integration Tests targeting Cosmos Emulator - Java 17'": {
+ "ProfileFlag": "-Dspark-e2e_3-5_2-13",
+ "PROTOCOLS": "[\"Tcp\"]",
+ "DESIRED_CONSISTENCIES": "[\"Session\"]",
+ "JavaTestVersion": "1.17",
"AdditionalArgs": "-DACCOUNT_HOST=https://localhost:8081/ -Dhadoop.home.dir=D:/Hadoop -DCOSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY=true"
},
"Kafka Integration Tests targeting Cosmos Emulator - Java 11": {
diff --git a/eng/versioning/external_dependencies.txt b/eng/versioning/external_dependencies.txt
index ee3006837816..1243039d504c 100644
--- a/eng/versioning/external_dependencies.txt
+++ b/eng/versioning/external_dependencies.txt
@@ -36,31 +36,31 @@ com.microsoft.sqlserver:mssql-jdbc;10.2.3.jre8
com.microsoft.azure:azure-functions-maven-plugin;1.30.0
com.microsoft.azure.functions:azure-functions-java-library;2.2.0
com.mysql:mysql-connector-j;9.0.0
-com.openai:openai-java;4.6.1
+com.openai:openai-java;4.14.0
com.squareup.okhttp3:okhttp;4.12.0
commons-codec:commons-codec;1.15
commons-net:commons-net;3.9.0
io.cloudevents:cloudevents-api;2.2.0
io.cloudevents:cloudevents-core;2.2.0
io.fabric8:kubernetes-client;6.12.1
-io.netty:netty-buffer;4.1.127.Final
-io.netty:netty-common;4.1.127.Final
-io.netty:netty-codec;4.1.127.Final
-io.netty:netty-codec-http;4.1.127.Final
-io.netty:netty-codec-http2;4.1.127.Final
-io.netty:netty-handler;4.1.127.Final
-io.netty:netty-handler-proxy;4.1.127.Final
-io.netty:netty-resolver;4.1.127.Final
-io.netty:netty-resolver-dns;4.1.127.Final
+io.netty:netty-buffer;4.1.130.Final
+io.netty:netty-common;4.1.130.Final
+io.netty:netty-codec;4.1.130.Final
+io.netty:netty-codec-http;4.1.130.Final
+io.netty:netty-codec-http2;4.1.130.Final
+io.netty:netty-handler;4.1.130.Final
+io.netty:netty-handler-proxy;4.1.130.Final
+io.netty:netty-resolver;4.1.130.Final
+io.netty:netty-resolver-dns;4.1.130.Final
io.netty:netty-tcnative-boringssl-static;2.0.74.Final
-io.netty:netty-transport;4.1.127.Final
-io.netty:netty-transport-native-epoll;4.1.127.Final
-io.netty:netty-transport-native-unix-common;4.1.127.Final
-io.netty:netty-transport-native-kqueue;4.1.127.Final
-io.projectreactor.netty:reactor-netty-http;1.2.10
-io.projectreactor:reactor-core;3.7.11
-io.vertx:vertx-codegen;4.5.17
-io.vertx:vertx-core;4.5.17
+io.netty:netty-transport;4.1.130.Final
+io.netty:netty-transport-native-epoll;4.1.130.Final
+io.netty:netty-transport-native-unix-common;4.1.130.Final
+io.netty:netty-transport-native-kqueue;4.1.130.Final
+io.projectreactor.netty:reactor-netty-http;1.2.13
+io.projectreactor:reactor-core;3.7.14
+io.vertx:vertx-codegen;4.5.23
+io.vertx:vertx-core;4.5.23
javax.websocket:javax.websocket-api;1.1
org.apache.commons:commons-compress;1.26.0
org.apache.ant:ant;1.10.15
@@ -256,8 +256,11 @@ cosmos-spark_3-3_org.apache.spark:spark-hive_2.12;3.3.0
cosmos-spark_3-4_org.apache.spark:spark-hive_2.12;3.4.0
cosmos-spark_3-5_org.apache.spark:spark-hive_2.12;3.5.0
cosmos_org.scala-lang:scala-library;2.12.19
-cosmos_org.scala-lang.modules:scala-java8-compat_2.12;0.8.0
+cosmos-scala213_org.scala-lang:scala-library;2.13.17
+cosmos_org.scala-lang.modules:scala-java8-compat_2.12;0.9.1
+cosmos-scala213_org.scala-lang.modules:scala-java8-compat_2.13;0.9.1
cosmos_io.projectreactor:reactor-scala-extensions_2.12;0.8.0
+cosmos-scala213_io.projectreactor:reactor-scala-extensions_2.13;0.8.0
cosmos_commons-io:commons-io;2.4
cosmos_com.microsoft.azure:applicationinsights-core;2.6.4
cosmos_io.micrometer:micrometer-core;1.15.1
@@ -266,9 +269,13 @@ cosmos_io.micrometer:micrometer-registry-graphite;1.15.1
# Cosmos Spark connector tests only
cosmos_org.scalatest:scalatest_2.12;3.2.2
+cosmos-scala213_org.scalatest:scalatest_2.13;3.2.2
cosmos_org.scalatest:scalatest-flatspec_2.12;3.2.3
+cosmos-scala213_org.scalatest:scalatest-flatspec_2.13;3.2.3
cosmos_org.scalactic:scalactic_2.12;3.2.3
+cosmos-scala213_org.scalactic:scalactic_2.13;3.2.3
cosmos_org.scalamock:scalamock_2.12;5.0.0
+cosmos-scala213_org.scalamock:scalamock_2.13;5.0.0
cosmos_com.globalmentor:hadoop-bare-naked-local-fs;0.1.0
cosmos_org.mockito:mockito-core;4.8.1
@@ -299,103 +306,103 @@ storage_com.microsoft.azure:azure-storage;8.6.6
# sdk\spring\pom.xml modules
springboot3_com.diffplug.spotless:spotless-maven-plugin;2.30.0
-springboot3_com.fasterxml.jackson.core:jackson-annotations;2.19.2
-springboot3_com.fasterxml.jackson.core:jackson-core;2.19.2
-springboot3_com.fasterxml.jackson.core:jackson-databind;2.19.2
-springboot3_com.fasterxml.jackson.dataformat:jackson-dataformat-xml;2.19.2
-springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jdk8;2.19.2
-springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jsr310;2.19.2
-springboot3_com.fasterxml.jackson.module:jackson-module-afterburner;2.19.2
-springboot3_com.fasterxml.jackson.module:jackson-module-parameter-names;2.19.2
+springboot3_com.fasterxml.jackson.core:jackson-annotations;2.19.4
+springboot3_com.fasterxml.jackson.core:jackson-core;2.19.4
+springboot3_com.fasterxml.jackson.core:jackson-databind;2.19.4
+springboot3_com.fasterxml.jackson.dataformat:jackson-dataformat-xml;2.19.4
+springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jdk8;2.19.4
+springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jsr310;2.19.4
+springboot3_com.fasterxml.jackson.module:jackson-module-afterburner;2.19.4
+springboot3_com.fasterxml.jackson.module:jackson-module-parameter-names;2.19.4
springboot3_com.github.spotbugs:spotbugs-maven-plugin;4.8.2.0
springboot3_com.google.code.findbugs:jsr305;3.0.2
-springboot3_com.mysql:mysql-connector-j;9.4.0
+springboot3_com.mysql:mysql-connector-j;9.5.0
springboot3_com.nimbusds:nimbus-jose-jwt;9.37.3
springboot3_io.lettuce:lettuce-core;6.6.0.RELEASE
-springboot3_io.micrometer:micrometer-core;1.15.3
-springboot3_io.netty:netty-buffer;4.1.124.Final
-springboot3_io.netty:netty-codec-http;4.1.124.Final
-springboot3_io.netty:netty-common;4.1.124.Final
-springboot3_io.netty:netty-handler;4.1.124.Final
-springboot3_io.netty:netty-transport-native-epoll;4.1.124.Final
-springboot3_io.netty:netty-transport-native-kqueue;4.1.124.Final
-springboot3_io.netty:netty-transport;4.1.124.Final
-springboot3_io.projectreactor.netty:reactor-netty;1.2.9
-springboot3_io.projectreactor:reactor-test;3.7.9
+springboot3_io.micrometer:micrometer-core;1.15.7
+springboot3_io.netty:netty-buffer;4.1.130.Final
+springboot3_io.netty:netty-codec-http;4.1.130.Final
+springboot3_io.netty:netty-common;4.1.130.Final
+springboot3_io.netty:netty-handler;4.1.130.Final
+springboot3_io.netty:netty-transport-native-epoll;4.1.130.Final
+springboot3_io.netty:netty-transport-native-kqueue;4.1.130.Final
+springboot3_io.netty:netty-transport;4.1.130.Final
+springboot3_io.projectreactor.netty:reactor-netty;1.2.13
+springboot3_io.projectreactor:reactor-test;3.7.14
springboot3_jakarta.servlet:jakarta.servlet-api;6.0.0
springboot3_jakarta.validation:jakarta.validation-api;3.0.2
springboot3_javax.annotation:javax.annotation-api;1.3.2
-springboot3_net.bytebuddy:byte-buddy-agent;1.17.7
-springboot3_net.bytebuddy:byte-buddy;1.17.7
+springboot3_net.bytebuddy:byte-buddy-agent;1.17.8
+springboot3_net.bytebuddy:byte-buddy;1.17.8
springboot3_org.apache.commons:commons-lang3;3.17.0
springboot3_org.apache.kafka:kafka-clients;3.9.1
springboot3_org.apache.maven.plugins:maven-antrun-plugin;3.1.0
-springboot3_org.apache.maven.plugins:maven-compiler-plugin;3.14.0
+springboot3_org.apache.maven.plugins:maven-compiler-plugin;3.14.1
springboot3_org.apache.maven.plugins:maven-enforcer-plugin;3.5.0
-springboot3_org.apache.maven.plugins:maven-failsafe-plugin;3.5.3
+springboot3_org.apache.maven.plugins:maven-failsafe-plugin;3.5.4
springboot3_org.apache.maven.plugins:maven-jar-plugin;3.4.2
springboot3_org.apache.maven.plugins:maven-javadoc-plugin;3.11.3
-springboot3_org.apache.maven.plugins:maven-surefire-plugin;3.5.3
-springboot3_org.assertj:assertj-core;3.27.4
+springboot3_org.apache.maven.plugins:maven-surefire-plugin;3.5.4
+springboot3_org.assertj:assertj-core;3.27.6
springboot3_org.hibernate.validator:hibernate-validator;8.0.3.Final
springboot3_org.javatuples:javatuples;1.2
springboot3_org.junit.jupiter:junit-jupiter;5.12.2
-springboot3_org.messaginghub:pooled-jms;3.1.7
+springboot3_org.messaginghub:pooled-jms;3.1.8
springboot3_org.mockito:mockito-core;5.17.0
-springboot3_org.postgresql:postgresql;42.7.7
+springboot3_org.postgresql:postgresql;42.7.8
springboot3_org.revapi:revapi-maven-plugin;0.14.6
springboot3_org.slf4j:slf4j-api;2.0.17
springboot3_org.slf4j:slf4j-simple;2.0.17
-springboot3_org.springframework.boot:spring-boot-actuator-autoconfigure;3.5.5
-springboot3_org.springframework.boot:spring-boot-actuator;3.5.5
-springboot3_org.springframework.boot:spring-boot-autoconfigure;3.5.5
-springboot3_org.springframework.boot:spring-boot-configuration-metadata;3.5.5
-springboot3_org.springframework.boot:spring-boot-configuration-processor;3.5.5
-springboot3_org.springframework.boot:spring-boot-docker-compose;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter-actuator;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter-data-jdbc;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter-integration;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter-parent;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter-test;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter-web;3.5.5
-springboot3_org.springframework.boot:spring-boot-starter;3.5.5
-springboot3_org.springframework.boot:spring-boot-test;3.5.5
-springboot3_org.springframework.boot:spring-boot-testcontainers;3.5.5
-springboot3_org.springframework.cloud:spring-cloud-bus;4.3.0
-springboot3_org.springframework.cloud:spring-cloud-context;4.3.0
-springboot3_org.springframework.cloud:spring-cloud-starter-stream-kafka;4.3.0
-springboot3_org.springframework.cloud:spring-cloud-stream-test-binder;4.3.0
-springboot3_org.springframework.cloud:spring-cloud-stream;4.3.0
-springboot3_org.springframework.data:spring-data-commons;3.5.3
-springboot3_org.springframework.data:spring-data-redis;3.5.3
-springboot3_org.springframework.integration:spring-integration-core;6.5.1
-springboot3_org.springframework.kafka:spring-kafka;3.3.9
+springboot3_org.springframework.boot:spring-boot-actuator-autoconfigure;3.5.9
+springboot3_org.springframework.boot:spring-boot-actuator;3.5.9
+springboot3_org.springframework.boot:spring-boot-autoconfigure;3.5.9
+springboot3_org.springframework.boot:spring-boot-configuration-metadata;3.5.9
+springboot3_org.springframework.boot:spring-boot-configuration-processor;3.5.9
+springboot3_org.springframework.boot:spring-boot-docker-compose;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter-actuator;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter-data-jdbc;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter-integration;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter-parent;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter-test;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter-web;3.5.9
+springboot3_org.springframework.boot:spring-boot-starter;3.5.9
+springboot3_org.springframework.boot:spring-boot-test;3.5.9
+springboot3_org.springframework.boot:spring-boot-testcontainers;3.5.9
+springboot3_org.springframework.cloud:spring-cloud-bus;4.3.1
+springboot3_org.springframework.cloud:spring-cloud-context;4.3.1
+springboot3_org.springframework.cloud:spring-cloud-starter-stream-kafka;4.3.1
+springboot3_org.springframework.cloud:spring-cloud-stream-test-binder;4.3.1
+springboot3_org.springframework.cloud:spring-cloud-stream;4.3.1
+springboot3_org.springframework.data:spring-data-commons;3.5.7
+springboot3_org.springframework.data:spring-data-redis;3.5.7
+springboot3_org.springframework.integration:spring-integration-core;6.5.5
+springboot3_org.springframework.kafka:spring-kafka;3.3.11
springboot3_org.springframework.retry:spring-retry;2.0.12
-springboot3_org.springframework.security:spring-security-config;6.5.3
-springboot3_org.springframework.security:spring-security-oauth2-client;6.5.3
-springboot3_org.springframework.security:spring-security-oauth2-jose;6.5.3
-springboot3_org.springframework.security:spring-security-oauth2-resource-server;6.5.3
-springboot3_org.springframework.security:spring-security-web;6.5.3
-springboot3_org.springframework:spring-beans;6.2.10
-springboot3_org.springframework:spring-context-support;6.2.10
-springboot3_org.springframework:spring-context;6.2.10
-springboot3_org.springframework:spring-core-test;6.2.10
-springboot3_org.springframework:spring-core;6.2.10
-springboot3_org.springframework:spring-expression;6.2.10
-springboot3_org.springframework:spring-jdbc;6.2.10
-springboot3_org.springframework:spring-jms;6.2.10
-springboot3_org.springframework:spring-messaging;6.2.10
-springboot3_org.springframework:spring-test;6.2.10
-springboot3_org.springframework:spring-tx;6.2.10
-springboot3_org.springframework:spring-web;6.2.10
-springboot3_org.springframework:spring-webmvc;6.2.10
-springboot3_org.testcontainers:junit-jupiter;1.21.3
-springboot3_org.testcontainers:azure;1.21.3
+springboot3_org.springframework.security:spring-security-config;6.5.7
+springboot3_org.springframework.security:spring-security-oauth2-client;6.5.7
+springboot3_org.springframework.security:spring-security-oauth2-jose;6.5.7
+springboot3_org.springframework.security:spring-security-oauth2-resource-server;6.5.7
+springboot3_org.springframework.security:spring-security-web;6.5.7
+springboot3_org.springframework:spring-beans;6.2.15
+springboot3_org.springframework:spring-context-support;6.2.15
+springboot3_org.springframework:spring-context;6.2.15
+springboot3_org.springframework:spring-core-test;6.2.15
+springboot3_org.springframework:spring-core;6.2.15
+springboot3_org.springframework:spring-expression;6.2.15
+springboot3_org.springframework:spring-jdbc;6.2.15
+springboot3_org.springframework:spring-jms;6.2.15
+springboot3_org.springframework:spring-messaging;6.2.15
+springboot3_org.springframework:spring-test;6.2.15
+springboot3_org.springframework:spring-tx;6.2.15
+springboot3_org.springframework:spring-web;6.2.15
+springboot3_org.springframework:spring-webmvc;6.2.15
+springboot3_org.testcontainers:junit-jupiter;1.21.4
+springboot3_org.testcontainers:azure;1.21.4
springboot3_jakarta.annotation:jakarta.annotation-api;3.0.0
-springboot3_ch.qos.logback:logback-classic;1.5.18
+springboot3_ch.qos.logback:logback-classic;1.5.22
# Used for Spring version updates
-springboot3_org.springframework.boot:spring-boot-dependencies;3.5.5
-springboot3_org.springframework.cloud:spring-cloud-dependencies;2025.0.0
+springboot3_org.springframework.boot:spring-boot-dependencies;3.5.9
+springboot3_org.springframework.cloud:spring-cloud-dependencies;2025.0.1
# Java 7 support
diff --git a/eng/versioning/pom_file_version_scanner.ps1 b/eng/versioning/pom_file_version_scanner.ps1
index 38546e5e02c9..654188d7deb4 100644
--- a/eng/versioning/pom_file_version_scanner.ps1
+++ b/eng/versioning/pom_file_version_scanner.ps1
@@ -723,31 +723,46 @@ Get-ChildItem -Path $Path -Filter pom*.xml -Recurse -File | ForEach-Object {
$potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: dependency is missing version element for groupId=$($groupId), artifactId=$($artifactId) should be "
continue
}
- if ($versionNode.NextSibling -and $versionNode.NextSibling.NodeType -eq "Comment")
+
+ if ($versionNode.FirstChild.Value.StartsWith('${'))
{
- # unfortunately because there are POM exceptions we need to wildcard the group which may be
- # something like _groupId
- if ($versionNode.NextSibling.Value.Trim() -notmatch "{x-version-update;(.+)?$($groupId):$($artifactId);\w+}")
+ # skip version checks when they have been intentionally applied via variables
+ }
+ else
+ {
+ if ($versionNode.NextSibling -and $versionNode.NextSibling.NodeType -eq "Comment")
{
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: dependency version update tag for groupId=$($groupId), artifactId=$($artifactId) should be "
+ # unfortunately because there are POM exceptions we need to wildcard the group which may be
+ # something like _groupId
+ if ($versionNode.FirstChild.Value.StartsWith('${'))
+ {
+ # skip version checks when they have been intentionally applied via variables
+ }
+ else
+ {
+ if ($versionNode.NextSibling.Value.Trim() -notmatch "{x-version-update;(.+)?$($groupId):$($artifactId);\w+}")
+ {
+ $hasError = $true
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: dependency version update tag for groupId=$($groupId), artifactId=$($artifactId) should be "
+ }
+ else
+ {
+ # verify the version tag and version are correct
+ $retVal = Test-Dependency-Tag-And-Version $libHash $extDepHash $versionNode.InnerText.Trim() $versionNode.NextSibling.Value $artifactsPerSDHashSet
+ if ($retVal)
+ {
+ $hasError = $true
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage $retVal
+ }
+ }
+ }
}
else
{
- # verify the version tag and version are correct
- $retVal = Test-Dependency-Tag-And-Version $libHash $extDepHash $versionNode.InnerText.Trim() $versionNode.NextSibling.Value $artifactsPerSDHashSet
- if ($retVal)
- {
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage $retVal
- }
+ $hasError = $true
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: Missing dependency version update tag for groupId=$($groupId), artifactId=$($artifactId). The tag should be "
}
- }
- else
- {
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: Missing dependency version update tag for groupId=$($groupId), artifactId=$($artifactId). The tag should be "
- }
+ }
}
# Verify every plugin has a group, artifact and version
# Verify every dependency has a group, artifact and version
@@ -882,80 +897,87 @@ Get-ChildItem -Path $Path -Filter pom*.xml -Recurse -File | ForEach-Object {
$groupId = $split[0]
$artifactId = $split[1]
$version = $split[2]
- # The groupId match has to be able to deal with _ for external dependency exceptions
- if (!$includeNode.NextSibling -or $includeNode.NextSibling.NodeType -ne "Comment")
- {
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: is missing the update tag which should be "
- }
- elseif ($includeNode.NextSibling.Value.Trim() -notmatch "{x-include-update;(.+)?$($groupId):$($artifactId);(current|dependency|external_dependency)}")
- {
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: version update tag for $($includeNode.InnerText) should be "
+
+ if ($version.StartsWith('[${')) {
+ # skip version checks when they have been intentionally applied via variables
}
else
{
- # verify that the version is formatted correctly
- if (!$version.StartsWith("[") -or !$version.EndsWith("]"))
+ # The groupId match has to be able to deal with _ for external dependency exceptions
+ if (!$includeNode.NextSibling -or $includeNode.NextSibling.NodeType -ne "Comment")
{
$hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: the version entry '$($version)' for '$($rawIncludeText)' is not formatted correctly. The include version needs to of the form '[]', the braces lock the include to a specific version for these entries. -->"
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: is missing the update tag which should be "
+ }
+ elseif ($includeNode.NextSibling.Value.Trim() -notmatch "{x-include-update;(.+)?$($groupId):$($artifactId);(current|dependency|external_dependency)}")
+ {
+ $hasError = $true
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: version update tag for $($includeNode.InnerText) should be "
}
- # verify the version has the correct value
else
{
- $versionWithoutBraces = $version.Substring(1, $version.Length -2)
- # the key into the dependency has needs to be created from the tag's group/artifact
- # entries in case it's an external dependency entry. Because this has already
- # been validated for format, grab the group:artifact
- $depKey = $includeNode.NextSibling.Value.Trim().Split(";")[1]
- $depType = $includeNode.NextSibling.Value.Trim().Split(";")[2]
- $depType = $depType.Substring(0, $depType.IndexOf("}"))
- if ($depType -eq $DependencyTypeExternal)
+ # verify that the version is formatted correctly
+ if (!$version.StartsWith("[") -or !$version.EndsWith("]"))
{
- if ($extDepHash.ContainsKey($depKey))
- {
- if ($versionWithoutBraces -ne $extDepHash[$depKey].ver)
- {
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: $($depKey)'s version is '$($versionWithoutBraces)' but the external_dependency version is listed as $($extDepHash[$depKey].ver)"
- }
- }
- else
- {
- $hasError = $true
- $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: the groupId:artifactId entry '$($depKey)' for '$($rawIncludeText)' is not a valid external dependency. Please verify the entry exists in the external_dependencies.txt file. -->"
- }
+ $hasError = $true
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: the version entry '$($version)' for '$($rawIncludeText)' is not formatted correctly. The include version needs to of the form '[]', the braces lock the include to a specific version for these entries. -->"
}
+ # verify the version has the correct value
else
{
- # If the tag isn't external_dependency then verify it exists in the library hash
- if (!$libHash.ContainsKey($depKey))
- {
- $hasError = $true
- return "Error: $($depKey)'s dependency type is '$($depType)' but the dependency does not exist in any of the version_*.txt files. Should this be an external_dependency? Please ensure the dependency type is correct or the dependency is added to the appropriate file."
-
- }
- if ($depType -eq $DependencyTypeDependency)
+ $versionWithoutBraces = $version.Substring(1, $version.Length -2)
+ # the key into the dependency has needs to be created from the tag's group/artifact
+ # entries in case it's an external dependency entry. Because this has already
+ # been validated for format, grab the group:artifact
+ $depKey = $includeNode.NextSibling.Value.Trim().Split(";")[1]
+ $depType = $includeNode.NextSibling.Value.Trim().Split(";")[2]
+ $depType = $depType.Substring(0, $depType.IndexOf("}"))
+ if ($depType -eq $DependencyTypeExternal)
{
- if ($versionWithoutBraces -ne $libHash[$depKey].depVer)
+ if ($extDepHash.ContainsKey($depKey))
+ {
+ if ($versionWithoutBraces -ne $extDepHash[$depKey].ver)
+ {
+ $hasError = $true
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: $($depKey)'s version is '$($versionWithoutBraces)' but the external_dependency version is listed as $($extDepHash[$depKey].ver)"
+ }
+ }
+ else
{
$hasError = $true
- return "Error: $($depKey)'s is '$($versionString)' but the dependency version is listed as $($libHash[$depKey].depVer)"
+ $potentialLogMessage = Join-With-NewLine $potentialLogMessage "Error: the groupId:artifactId entry '$($depKey)' for '$($rawIncludeText)' is not a valid external dependency. Please verify the entry exists in the external_dependencies.txt file. -->"
}
}
- elseif ($depType -eq $DependencyTypeCurrent)
+ else
{
- # Verify that none of the 'current' dependencies are using a groupId that starts with 'unreleased_' or 'beta_'
- if ($depKey.StartsWith('unreleased_') -or $depKey.StartsWith('beta_'))
+ # If the tag isn't external_dependency then verify it exists in the library hash
+ if (!$libHash.ContainsKey($depKey))
{
$hasError = $true
- return "Error: $($versionUpdateString) is using an unreleased_ or beta_ dependency and trying to set current value. Only dependency versions can be set with an unreleased or beta dependency."
+ return "Error: $($depKey)'s dependency type is '$($depType)' but the dependency does not exist in any of the version_*.txt files. Should this be an external_dependency? Please ensure the dependency type is correct or the dependency is added to the appropriate file."
+
}
- if ($versionWithoutBraces -ne $libHash[$depKey].curVer)
+ if ($depType -eq $DependencyTypeDependency)
{
- $hasError = $true
- return "Error: $($depKey)'s is '$($versionString)' but the current version is listed as $($libHash[$depKey].curVer)"
+ if ($versionWithoutBraces -ne $libHash[$depKey].depVer)
+ {
+ $hasError = $true
+ return "Error: $($depKey)'s is '$($versionString)' but the dependency version is listed as $($libHash[$depKey].depVer)"
+ }
+ }
+ elseif ($depType -eq $DependencyTypeCurrent)
+ {
+ # Verify that none of the 'current' dependencies are using a groupId that starts with 'unreleased_' or 'beta_'
+ if ($depKey.StartsWith('unreleased_') -or $depKey.StartsWith('beta_'))
+ {
+ $hasError = $true
+ return "Error: $($versionUpdateString) is using an unreleased_ or beta_ dependency and trying to set current value. Only dependency versions can be set with an unreleased or beta dependency."
+ }
+ if ($versionWithoutBraces -ne $libHash[$depKey].curVer)
+ {
+ $hasError = $true
+ return "Error: $($depKey)'s is '$($versionString)' but the current version is listed as $($libHash[$depKey].curVer)"
+ }
}
}
}
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 842251986c0d..3ad0fab9647d 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -53,6 +53,7 @@ com.azure:azure-ai-openai-realtime;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-ai-openai-stainless;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-ai-personalizer;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-projects;1.0.0-beta.3;1.0.0-beta.4
+com.azure:azure-ai-speech-transcription;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-textanalytics;5.5.11;5.6.0-beta.1
com.azure:azure-ai-textanalytics-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-ai-translation-text;1.1.7;2.0.0-beta.1
@@ -114,6 +115,7 @@ com.azure:azure-cosmos-test;1.0.0-beta.16;1.0.0-beta.17
com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.42.0;4.43.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12;4.42.0;4.43.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-5_2-12;4.42.0;4.43.0-beta.1
+com.azure.cosmos.spark:azure-cosmos-spark_3-5_2-13;4.42.0;4.43.0-beta.1
com.azure.cosmos.spark:fabric-cosmos-spark-auth_3;1.1.0;1.2.0-beta.1
com.azure:azure-cosmos-tests;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-data-appconfiguration;1.8.5;1.9.0-beta.1
@@ -270,7 +272,7 @@ com.azure.spring:spring-cloud-azure-stream-binder-servicebus-core;6.1.0;6.2.0-be
com.azure.spring:spring-cloud-azure-stream-binder-servicebus;6.1.0;6.2.0-beta.1
com.azure.spring:spring-cloud-azure-testcontainers;6.1.0;6.2.0-beta.1
com.azure:azure-spring-data-cosmos;6.1.0;6.2.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager;2.57.0;2.58.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager;2.58.0;2.59.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appservice;2.54.1;2.55.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.6;2.54.0-beta.1
@@ -306,9 +308,9 @@ com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-costmanagement;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-recoveryservices;1.5.0;1.6.0
com.azure.resourcemanager:azure-resourcemanager-kusto;1.2.0;1.3.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.1.0;1.2.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-loganalytics;2.1.0;2.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.2.0;1.3.0-beta.2
-com.azure.resourcemanager:azure-resourcemanager-healthbot;1.1.0;1.2.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-healthbot;1.1.0;1.2.0
com.azure.resourcemanager:azure-resourcemanager-confluent;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.3.0;1.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-netapp;2.0.0;2.1.0-beta.2
@@ -358,7 +360,7 @@ com.azure.resourcemanager:azure-resourcemanager-servicefabric;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-peering;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-policyinsights;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-support;1.1.0;1.2.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-subscription;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-subscription;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-powerbidedicated;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-applicationinsights;1.1.0;1.2.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-deploymentmanager;1.0.0-beta.2;1.0.0-beta.3
@@ -432,7 +434,7 @@ com.azure.resourcemanager:azure-resourcemanager-recoveryservicessiterecovery;1.3
com.azure.resourcemanager:azure-resourcemanager-billingbenefits;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-providerhub;2.0.0;2.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-reservations;1.0.0;1.1.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-containerservicefleet;1.2.0;1.3.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-containerservicefleet;1.2.0;1.3.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-storagemover;1.4.0;1.5.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-graphservices;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-voiceservices;1.1.0;1.2.0-beta.1
@@ -493,7 +495,7 @@ com.azure.resourcemanager:azure-resourcemanager-lambdatesthyperexecute;1.0.0;1.1
com.azure.resourcemanager:azure-resourcemanager-onlineexperimentation;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-secretsstoreextension;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-programmableconnectivity;1.0.0-beta.1;1.0.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-dell-storage;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-dell-storage;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-sitemanager;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-mongodbatlas;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-purestorageblock;1.0.0;1.1.0-beta.1
diff --git a/pom.xml b/pom.xml
index 8c702d55c621..020e7eae65cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -265,6 +265,7 @@
sdk/timeseriesinsights
sdk/tools
sdk/trafficmanager
+ sdk/transcription
sdk/translation
sdk/trustedsigning
sdk/vision
diff --git a/sdk/ai/azure-ai-agents/CHANGELOG.md b/sdk/ai/azure-ai-agents/CHANGELOG.md
index a3ca8244915d..2de616879d89 100644
--- a/sdk/ai/azure-ai-agents/CHANGELOG.md
+++ b/sdk/ai/azure-ai-agents/CHANGELOG.md
@@ -7,6 +7,7 @@
- New `MemorySearchAgent` sample was added demonstrating memory search functionality
- Tests for `MemoryStoresClient` and `MemoryStoresAsyncClient`
- Various documentation updates
+- Using unified `HttpClient` setup for Azure specifics and `openai` client library wrapping methods
### Breaking Changes
@@ -16,6 +17,8 @@
### Other Changes
+- Updated version of `openai` client library to `4.14.0`
+
## 1.0.0-beta.1 (2025-11-12)
### Features Added
diff --git a/sdk/ai/azure-ai-agents/pom.xml b/sdk/ai/azure-ai-agents/pom.xml
index 378c86a00a9b..b50a8af301e6 100644
--- a/sdk/ai/azure-ai-agents/pom.xml
+++ b/sdk/ai/azure-ai-agents/pom.xml
@@ -52,7 +52,7 @@
com.openai
openai-java
- 4.6.1
+ 4.14.0
com.azure
@@ -97,7 +97,7 @@
- com.openai:openai-java:[4.6.1]
+ com.openai:openai-java:[4.14.0]
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/HttpClientHelper.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/HttpClientHelper.java
index e7df9ee0c91f..8052a17e5902 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/HttpClientHelper.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/HttpClientHelper.java
@@ -28,8 +28,11 @@
import com.openai.errors.UnauthorizedException;
import com.openai.errors.UnexpectedStatusCodeException;
import com.openai.errors.UnprocessableEntityException;
+import reactor.core.publisher.Mono;
import java.io.ByteArrayOutputStream;
+import java.net.MalformedURLException;
+import java.net.URI;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
@@ -82,10 +85,14 @@ public HttpResponse execute(HttpRequest request, RequestOptions requestOptions)
Objects.requireNonNull(request, "request");
Objects.requireNonNull(requestOptions, "requestOptions");
- com.azure.core.http.HttpRequest azureRequest = buildAzureRequest(request);
-
- return new AzureHttpResponseAdapter(
- this.httpPipeline.sendSync(azureRequest, buildRequestContext(requestOptions)));
+ try {
+ com.azure.core.http.HttpRequest azureRequest = buildAzureRequest(request);
+ return new AzureHttpResponseAdapter(
+ this.httpPipeline.sendSync(azureRequest, buildRequestContext(requestOptions)));
+ } catch (MalformedURLException exception) {
+ throw new OpenAIException("Invalid URL in request: " + exception.getMessage(),
+ LOGGER.logThrowableAsError(exception));
+ }
}
@Override
@@ -98,9 +105,8 @@ public CompletableFuture executeAsync(HttpRequest request, Request
Objects.requireNonNull(request, "request");
Objects.requireNonNull(requestOptions, "requestOptions");
- final com.azure.core.http.HttpRequest azureRequest = buildAzureRequest(request);
-
- return this.httpPipeline.send(azureRequest, buildRequestContext(requestOptions))
+ return Mono.fromCallable(() -> buildAzureRequest(request))
+ .flatMap(azureRequest -> this.httpPipeline.send(azureRequest, buildRequestContext(requestOptions)))
.map(response -> (HttpResponse) new AzureHttpResponseAdapter(response))
.onErrorMap(HttpClientWrapper::mapAzureExceptionToOpenAI)
.toFuture();
@@ -163,7 +169,7 @@ private static Throwable mapAzureExceptionToOpenAI(Throwable throwable) {
} else if (throwable instanceof TimeoutException) {
return throwable;
} else {
- return new OpenAIException(throwable.getMessage(), throwable.getCause());
+ return new OpenAIException(throwable.getMessage(), throwable);
}
}
@@ -179,7 +185,8 @@ private static Headers toOpenAIHeaders(HttpHeaders azureHeaders) {
/**
* Converts the OpenAI request metadata and body into an Azure {@link com.azure.core.http.HttpRequest}.
*/
- private static com.azure.core.http.HttpRequest buildAzureRequest(HttpRequest request) {
+ private static com.azure.core.http.HttpRequest buildAzureRequest(HttpRequest request)
+ throws MalformedURLException {
HttpRequestBody requestBody = request.body();
String contentType = requestBody != null ? requestBody.contentType() : null;
BinaryData bodyData = null;
@@ -196,7 +203,7 @@ private static com.azure.core.http.HttpRequest buildAzureRequest(HttpRequest req
}
com.azure.core.http.HttpRequest azureRequest = new com.azure.core.http.HttpRequest(
- HttpMethod.valueOf(request.method().name()), OpenAiRequestUrlBuilder.buildUrl(request), headers);
+ HttpMethod.valueOf(request.method().name()), URI.create(request.url()).toURL(), headers);
if (bodyData != null) {
azureRequest.setBody(bodyData);
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/OpenAiRequestUrlBuilder.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/OpenAiRequestUrlBuilder.java
deleted file mode 100644
index f4490f771020..000000000000
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/http/OpenAiRequestUrlBuilder.java
+++ /dev/null
@@ -1,138 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.ai.agents.implementation.http;
-
-import com.azure.core.util.CoreUtils;
-import com.azure.core.util.logging.ClientLogger;
-import com.openai.core.http.HttpRequest;
-import com.openai.core.http.QueryParams;
-
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.List;
-import java.util.StringJoiner;
-
-/**
- * Utility methods that reconstruct the absolute {@link URL} required by the Azure pipeline from the
- * OpenAI request metadata. The builder keeps the low-level path/query handling isolated so that
- * {@link HttpClientHelper} can focus on the higher-level request mapping logic.
- * This class will be deprecated as soon as support is added in the OpenAI SDK as described in this issue:
- *
- */
-public final class OpenAiRequestUrlBuilder {
-
- private static final ClientLogger LOGGER = new ClientLogger(OpenAiRequestUrlBuilder.class);
-
- private OpenAiRequestUrlBuilder() {
- }
-
- /**
- * Builds an absolute {@link URL} using the base URL, path segments, and query parameters that are stored in the
- * OpenAI {@link HttpRequest} abstraction.
- * This method will be deprecated as soon as support is added in the OpenAI SDK as described in this issue:
- *
- *
- * @param request Source request provided by the OpenAI client.
- * @return Absolute URL that can be consumed by Azure HTTP components.
- */
- static URL buildUrl(HttpRequest request) {
- try {
- URI baseUri = URI.create(request.baseUrl());
- URL baseUrl = baseUri.toURL();
- String path = buildPath(baseUrl.getPath(), request.pathSegments());
- String query = buildQueryString(request.queryParams());
- URI resolved = new URI(baseUrl.getProtocol(), baseUrl.getUserInfo(), baseUrl.getHost(), baseUrl.getPort(),
- path, query, null);
- return resolved.toURL();
- } catch (MalformedURLException | URISyntaxException ex) {
- throw LOGGER.logThrowableAsWarning(new IllegalStateException(
- "Failed to build Azure HTTP request URL from base: " + request.baseUrl(), ex));
- }
- }
-
- /**
- * Creates a normalized path that merges the OpenAI base path with the additional path segments present on the
- * request.
- */
- private static String buildPath(String basePath, List pathSegments) {
- StringBuilder builder = new StringBuilder();
- String normalizedBasePath = normalizeBasePath(basePath);
- if (!CoreUtils.isNullOrEmpty(normalizedBasePath)) {
- builder.append(normalizedBasePath);
- }
-
- for (String segment : pathSegments) {
- if (builder.length() == 0 || builder.charAt(builder.length() - 1) != '/') {
- builder.append('/');
- }
- if (segment != null) {
- builder.append(segment);
- }
- }
-
- return builder.length() == 0 ? "/" : builder.toString();
- }
-
- /**
- * Normalizes the base path ensuring trailing slashes are removed and {@code null} inputs result in an empty path.
- */
- private static String normalizeBasePath(String basePath) {
- if (CoreUtils.isNullOrEmpty(basePath)) {
- return "";
- }
- if ("/".equals(basePath)) {
- return "";
- }
- return trimTrailingSlash(basePath);
- }
-
- /**
- * Removes the final {@code '/'} character when present so that subsequent concatenation does not duplicate
- * separators.
- */
- private static String trimTrailingSlash(String value) {
- if (value == null) {
- return null;
- }
- int length = value.length();
- if (length == 0) {
- return value;
- }
- return value.charAt(length - 1) == '/' ? value.substring(0, length - 1) : value;
- }
-
- /**
- * Converts OpenAI {@link QueryParams} into a flattened query string. Encoding is deferred to {@link URI} so we do
- * not double-encode values already escaped by upstream layers.
- */
- private static String buildQueryString(QueryParams queryParams) {
- if (queryParams == null || queryParams.isEmpty()) {
- return null;
- }
-
- StringJoiner joiner = new StringJoiner("&");
- queryParams.keys().forEach(name -> {
- List values = queryParams.values(name);
- if (values.isEmpty()) {
- joiner.add(name);
- } else {
- values.forEach(value -> joiner.add(formatQueryComponent(name, value)));
- }
- });
- String query = joiner.toString();
- return query.isEmpty() ? null : query;
- }
-
- /**
- * Formats a single query component using {@code name=value} semantics, handling parameters that omit a value.
- */
- private static String formatQueryComponent(String name, String value) {
- if (value == null) {
- return name;
- }
- return name + "=" + value;
- }
-}
diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/implementation/http/HttpClientHelperTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/implementation/http/HttpClientHelperTests.java
index 59ab92fb7cde..bf3b9a4bd77b 100644
--- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/implementation/http/HttpClientHelperTests.java
+++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/implementation/http/HttpClientHelperTests.java
@@ -4,9 +4,7 @@
package com.azure.ai.agents.implementation.http;
import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpMethod;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpRequest;
import com.azure.core.http.HttpResponse;
@@ -27,7 +25,6 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
-import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -36,39 +33,6 @@
class HttpClientHelperTests {
- private static final HttpHeaderName REQUEST_ID_HEADER = HttpHeaderName.fromString("x-request-id");
- private static final HttpHeaderName CUSTOM_HEADER_NAME = HttpHeaderName.fromString("custom-header");
- private static final HttpHeaderName X_TEST_HEADER = HttpHeaderName.fromString("X-Test");
- private static final HttpHeaderName X_MULTI_HEADER = HttpHeaderName.fromString("X-Multi");
-
- @Test
- void executeMapsRequestAndResponse() {
- RecordingHttpClient recordingClient = new RecordingHttpClient(request -> createMockResponse(request, 201,
- new HttpHeaders().set(REQUEST_ID_HEADER, "req-123").set(CUSTOM_HEADER_NAME, "custom-value"), "pong"));
- com.openai.core.http.HttpClient openAiClient
- = HttpClientHelper.mapToOpenAIHttpClient(new HttpPipelineBuilder().httpClient(recordingClient).build());
-
- com.openai.core.http.HttpRequest openAiRequest = createOpenAiRequest();
-
- try (com.openai.core.http.HttpResponse response = openAiClient.execute(openAiRequest)) {
- HttpRequest sentRequest = recordingClient.getLastRequest();
- assertNotNull(sentRequest, "Azure HttpClient should receive a request");
- assertEquals(HttpMethod.POST, sentRequest.getHttpMethod());
- assertEquals("https://example.com/path/segment?q=a%20b", sentRequest.getUrl().toString());
- assertEquals("alpha", sentRequest.getHeaders().getValue(X_TEST_HEADER));
- assertArrayEquals(new String[] { "first", "second" }, sentRequest.getHeaders().getValues(X_MULTI_HEADER));
- assertEquals("text/plain", sentRequest.getHeaders().getValue(HttpHeaderName.CONTENT_TYPE));
- assertEquals("payload", new String(sentRequest.getBodyAsBinaryData().toBytes(), StandardCharsets.UTF_8));
-
- assertEquals(201, response.statusCode());
- assertEquals("req-123", response.requestId().orElseThrow(() -> new AssertionError("Missing request id")));
- assertEquals("custom-value", response.headers().values("custom-header").get(0));
- assertEquals("pong", new String(readAllBytes(response.body()), StandardCharsets.UTF_8));
- } catch (Exception e) {
- fail("Exception thrown while reading response", e);
- }
- }
-
@Test
void executeAsyncCompletesSuccessfully() {
RecordingHttpClient recordingClient
diff --git a/sdk/ai/azure-ai-projects/CHANGELOG.md b/sdk/ai/azure-ai-projects/CHANGELOG.md
index 52515ee47e88..24f3793a26a4 100644
--- a/sdk/ai/azure-ai-projects/CHANGELOG.md
+++ b/sdk/ai/azure-ai-projects/CHANGELOG.md
@@ -10,6 +10,8 @@
### Other Changes
+- Updated version of `openai` client library to `4.14.0`
+
## 1.0.0-beta.3 (2025-11-12)
### Features Added
diff --git a/sdk/ai/azure-ai-projects/pom.xml b/sdk/ai/azure-ai-projects/pom.xml
index b58668f4d6b9..c7647d97cdb1 100644
--- a/sdk/ai/azure-ai-projects/pom.xml
+++ b/sdk/ai/azure-ai-projects/pom.xml
@@ -77,7 +77,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator.
com.openai
openai-java
- 4.6.1
+ 4.14.0
@@ -106,7 +106,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator.
- com.openai:openai-java:[4.6.1]
+ com.openai:openai-java:[4.14.0]
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
index 747f78fa0fa5..20679e04f43a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
@@ -98,7 +98,7 @@
com.azure.resourcemanager
azure-resourcemanager-loganalytics
- 1.1.0
+ 2.1.0
test
diff --git a/sdk/batch/azure-compute-batch/pom.xml b/sdk/batch/azure-compute-batch/pom.xml
index 12d70cd6181a..045c932c4615 100644
--- a/sdk/batch/azure-compute-batch/pom.xml
+++ b/sdk/batch/azure-compute-batch/pom.xml
@@ -85,7 +85,7 @@
com.azure.resourcemanager
azure-resourcemanager
- 2.57.0
+ 2.58.0
test
diff --git a/sdk/boms/spring-cloud-azure-dependencies/pom.xml b/sdk/boms/spring-cloud-azure-dependencies/pom.xml
index 0c9af5132d49..cd69d2263ed4 100644
--- a/sdk/boms/spring-cloud-azure-dependencies/pom.xml
+++ b/sdk/boms/spring-cloud-azure-dependencies/pom.xml
@@ -60,7 +60,7 @@
com.azure.resourcemanager
azure-resourcemanager
- 2.57.0
+ 2.58.0
diff --git a/sdk/clientcore/http-netty4/pom.xml b/sdk/clientcore/http-netty4/pom.xml
index 4a4a7905215c..7590e0004aa0 100644
--- a/sdk/clientcore/http-netty4/pom.xml
+++ b/sdk/clientcore/http-netty4/pom.xml
@@ -56,7 +56,7 @@
io.clientcore.core.implementation*,io.clientcore.core.models,io.clientcore.core.util,io.clientcore.core.util*
- 4.1.127.Final
+ 4.1.130.Final
@@ -69,52 +69,52 @@
io.netty
netty-buffer
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-codec
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-codec-http
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-codec-http2
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-common
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-handler
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-handler-proxy
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-resolver
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-resolver-dns
- 4.1.127.Final
+ 4.1.130.Final
io.netty
netty-transport
- 4.1.127.Final
+ 4.1.130.Final
@@ -129,14 +129,14 @@
io.netty
netty-transport-native-unix-common
- 4.1.127.Final
+ 4.1.130.Final
linux-x86_64
test
io.netty
netty-transport-native-epoll
- 4.1.127.Final
+ 4.1.130.Final
linux-x86_64
test
@@ -144,14 +144,14 @@
io.netty
netty-transport-native-unix-common
- 4.1.127.Final
+ 4.1.130.Final
osx-x86_64
test
io.netty
netty-transport-native-kqueue
- 4.1.127.Final
+ 4.1.130.Final
osx-x86_64
test
@@ -223,16 +223,16 @@
- io.netty:netty-buffer:[4.1.127.Final]
- io.netty:netty-codec:[4.1.127.Final]
- io.netty:netty-codec-http:[4.1.127.Final]
- io.netty:netty-codec-http2:[4.1.127.Final]
- io.netty:netty-common:[4.1.127.Final]
- io.netty:netty-handler:[4.1.127.Final]
- io.netty:netty-handler-proxy:[4.1.127.Final]
- io.netty:netty-resolver:[4.1.127.Final]
- io.netty:netty-resolver-dns:[4.1.127.Final]
- io.netty:netty-transport:[4.1.127.Final]
+ io.netty:netty-buffer:[4.1.130.Final]
+ io.netty:netty-codec:[4.1.130.Final]
+ io.netty:netty-codec-http:[4.1.130.Final]
+ io.netty:netty-codec-http2:[4.1.130.Final]
+ io.netty:netty-common:[4.1.130.Final]
+ io.netty:netty-handler:[4.1.130.Final]
+ io.netty:netty-handler-proxy:[4.1.130.Final]
+ io.netty:netty-resolver:[4.1.130.Final]
+ io.netty:netty-resolver-dns:[4.1.130.Final]
+ io.netty:netty-transport:[4.1.130.Final]
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/assets.json b/sdk/containerinstance/azure-resourcemanager-containerinstance/assets.json
index b1a68ecfaf1a..5ae2803d305d 100644
--- a/sdk/containerinstance/azure-resourcemanager-containerinstance/assets.json
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/containerinstance/azure-resourcemanager-containerinstance",
- "Tag": "java/containerinstance/azure-resourcemanager-containerinstance_a0e5cc2e29"
+ "Tag": "java/containerinstance/azure-resourcemanager-containerinstance_cade898991"
}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
index 2ed7cce6084e..6a597a99d78b 100644
--- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
@@ -3,12 +3,12 @@
package com.azure.resourcemanager.containerinstance;
+import com.azure.core.management.Region;
import com.azure.core.test.annotation.DoNotRecord;
import com.azure.resourcemanager.containerinstance.models.Container;
import com.azure.resourcemanager.containerinstance.models.ContainerAttachResult;
import com.azure.resourcemanager.containerinstance.models.ContainerExec;
import com.azure.resourcemanager.containerinstance.models.ContainerGroup;
-import com.azure.core.management.Region;
import com.azure.resourcemanager.containerinstance.models.ContainerGroupRestartPolicy;
import com.azure.resourcemanager.containerinstance.models.ContainerHttpGet;
import com.azure.resourcemanager.containerinstance.models.ContainerProbe;
@@ -19,6 +19,7 @@
import com.azure.resourcemanager.resources.fluentcore.model.Accepted;
import com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils;
import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.time.Duration;
@@ -210,8 +211,11 @@ public void testBeginCreate() {
}
// test contains a data-plane call
+ // Azure Storage doesn't support SMB mounting of file share using managed identity
+ // https://learn.microsoft.com/azure/container-instances/container-instances-volume-azure-files
@DoNotRecord(skipInPlayback = true)
@Test
+ @Disabled("This request was denied due to internal policy. Container Group requires that Storage Accounts is authenticated with managed identity, but Azure Storage doesn't support SMB mounting of file share using managed identity. ")
public void testBeginCreateWithFileShareVolume() {
String containerGroupName = generateRandomResourceName("container", 20);
Region region = Region.US_WEST3;
@@ -232,6 +236,27 @@ public void testBeginCreateWithFileShareVolume() {
Assertions.assertEquals(1, containerGroup.volumes().size());
}
+ @DoNotRecord(skipInPlayback = true)
+ @Test
+ public void testBeginCreateWithEmptyDirectoryVolume() {
+ String containerGroupName = generateRandomResourceName("container", 20);
+ Region region = Region.US_WEST3;
+
+ // create virtual network before creating container group
+ Accepted acceptedContainerGroup = containerInstanceManager.containerGroups()
+ .define(containerGroupName)
+ .withRegion(region)
+ .withNewResourceGroup(rgName)
+ .withLinux()
+ .withPublicImageRegistryOnly()
+ .withEmptyDirectoryVolume("vol2")
+ .withContainerInstance("nginx", 80)
+ .withNewVirtualNetwork("10.0.0.0/24")
+ .beginCreate();
+ ContainerGroup containerGroup = acceptedContainerGroup.getSyncPoller().getFinalResult();
+ Assertions.assertEquals(1, containerGroup.volumes().size());
+ }
+
@Test
public void testCreateWithAutoGeneratedDomainNameLabelScope() {
String containerGroupName = generateRandomResourceName("container", 20);
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/CHANGELOG.md b/sdk/containerregistry/azure-resourcemanager-containerregistry/CHANGELOG.md
index 517e6d80f52c..99040f2dc72c 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/CHANGELOG.md
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/CHANGELOG.md
@@ -2,13 +2,16 @@
## 2.55.0-beta.2 (Unreleased)
-### Features Added
-
### Breaking Changes
-### Bugs Fixed
+#### Changes to `ContainerRegistryManagementClient` Class
-### Other Changes
+- Moved `ContainerRegistryManager.serviceClient().getAgentPools()` to `ContainerRegistryManager.taskClient().getAgentPools()`.
+- Moved `ContainerRegistryManager.serviceClient().getRuns()` to `ContainerRegistryManager.taskClient().getRuns()`.
+- Moved `ContainerRegistryManager.serviceClient().getTaskRuns()` to `ContainerRegistryManager.taskClient().getTaskRuns()`.
+- Moved `ContainerRegistryManager.serviceClient().getTasks()` to `ContainerRegistryManager.taskClient().getTasks()`.
+- Moved `ContainerRegistryManager.serviceClient().getRegistries().scheduleRun(...)` to `ContainerRegistryManager.taskClient().getRegistryTasks().scheduleRun(...)`.
+- Moved `ContainerRegistryManager.serviceClient().getRegistries().getBuildSourceUploadUrl(...)` to `ContainerRegistryManager.taskClient().getRegistryTasks().getBuildSourceUploadUrl(...)`.
## 2.55.0-beta.1 (2025-12-04)
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java
index 6dc65d0cd3d9..642f98bbe52b 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java
@@ -6,7 +6,9 @@
import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpPipeline;
import com.azure.resourcemanager.containerregistry.fluent.ContainerRegistryManagementClient;
+import com.azure.resourcemanager.containerregistry.fluent.ContainerRegistryTasksManagementClient;
import com.azure.resourcemanager.containerregistry.implementation.ContainerRegistryManagementClientBuilder;
+import com.azure.resourcemanager.containerregistry.implementation.ContainerRegistryTasksManagementClientBuilder;
import com.azure.resourcemanager.containerregistry.implementation.RegistriesImpl;
import com.azure.resourcemanager.containerregistry.implementation.RegistryTaskRunsImpl;
import com.azure.resourcemanager.containerregistry.implementation.RegistryTasksImpl;
@@ -28,6 +30,8 @@ public final class ContainerRegistryManager extends Manager regenerateCredentialWithResponse(St
@ServiceMethod(returns = ReturnType.SINGLE)
RegistryListCredentialsResultInner regenerateCredential(String resourceGroupName, String registryName,
RegenerateCredentialParameters regenerateCredentialParameters);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono>> scheduleRunWithResponseAsync(String resourceGroupName, String registryName,
- RunRequest runRequest);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- PollerFlux, RunInner> beginScheduleRunAsync(String resourceGroupName, String registryName,
- RunRequest runRequest);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
- RunRequest runRequest);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
- RunRequest runRequest, Context context);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest);
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest, Context context);
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getBuildSourceUploadUrlWithResponseAsync(String resourceGroupName,
- String registryName);
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getBuildSourceUploadUrlAsync(String resourceGroupName, String registryName);
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getBuildSourceUploadUrlWithResponse(String resourceGroupName,
- String registryName, Context context);
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SourceUploadDefinitionInner getBuildSourceUploadUrl(String resourceGroupName, String registryName);
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RegistryTasksClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RegistryTasksClient.java
new file mode 100644
index 000000000000..24b172ae4ea6
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RegistryTasksClient.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.resourcemanager.containerregistry.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.fluent.models.RunInner;
+import com.azure.resourcemanager.containerregistry.fluent.models.SourceUploadDefinitionInner;
+import com.azure.resourcemanager.containerregistry.models.RunRequest;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in RegistryTasksClient.
+ */
+public interface RegistryTasksClient {
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> scheduleRunWithResponseAsync(String resourceGroupName, String registryName,
+ RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, RunInner> beginScheduleRunAsync(String resourceGroupName, String registryName,
+ RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
+ RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
+ RunRequest runRequest, Context context);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest, Context context);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getBuildSourceUploadUrlWithResponseAsync(String resourceGroupName,
+ String registryName);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getBuildSourceUploadUrlAsync(String resourceGroupName, String registryName);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getBuildSourceUploadUrlWithResponse(String resourceGroupName,
+ String registryName, Context context);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceUploadDefinitionInner getBuildSourceUploadUrl(String resourceGroupName, String registryName);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RunsClient.java
index 229f30005c99..d6c282196a48 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RunsClient.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/RunsClient.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TaskRunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TaskRunsClient.java
index 44919b70d17e..8ab63b2f8e28 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TaskRunsClient.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TaskRunsClient.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TasksClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TasksClient.java
index 93e132854de2..65cf89781850 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TasksClient.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/TasksClient.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolInner.java
index 49322ead9632..e575d38d296e 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolProperties.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolProperties.java
index a8796ceb0dce..7376202c1ffe 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolProperties.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolProperties.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolPropertiesUpdateParameters.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolPropertiesUpdateParameters.java
index 56c452919609..0d731bdc76c5 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolPropertiesUpdateParameters.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolPropertiesUpdateParameters.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolQueueStatusInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolQueueStatusInner.java
index ce56385fdb1a..e626204e745b 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolQueueStatusInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/AgentPoolQueueStatusInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunGetLogResultInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunGetLogResultInner.java
index 4139898a883a..9d262a72261f 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunGetLogResultInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunGetLogResultInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunInner.java
index 1d7449348ee0..a98935a66352 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunProperties.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunProperties.java
index afb15caa1a57..bcc8c5687eb5 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunProperties.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RunProperties.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/SourceUploadDefinitionInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/SourceUploadDefinitionInner.java
index 4bd6a1c5e738..2a76cb1c3983 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/SourceUploadDefinitionInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/SourceUploadDefinitionInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskInner.java
index 70311f245a8d..e0f7cb0bad67 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskProperties.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskProperties.java
index 2f691252ba66..c04bbc274a5b 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskProperties.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskProperties.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskPropertiesUpdateParameters.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskPropertiesUpdateParameters.java
index 818113676c2f..07550d431eee 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskPropertiesUpdateParameters.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskPropertiesUpdateParameters.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunInner.java
index 4d9203fa1fb9..c61d51902590 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesInner.java
index 63dc11e58390..5259d3728bfd 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesInner.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesInner.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesUpdateParameters.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesUpdateParameters.java
index fbb11f0330a5..63f7171e81d5 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesUpdateParameters.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/TaskRunPropertiesUpdateParameters.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/AgentPoolsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/AgentPoolsClientImpl.java
index a805c61d0ae6..d99667a60b4e 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/AgentPoolsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/AgentPoolsClientImpl.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.implementation;
@@ -54,25 +53,25 @@ public final class AgentPoolsClientImpl implements AgentPoolsClient {
/**
* The service client containing this operation class.
*/
- private final ContainerRegistryManagementClientImpl client;
+ private final ContainerRegistryTasksManagementClientImpl client;
/**
* Initializes an instance of AgentPoolsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- AgentPoolsClientImpl(ContainerRegistryManagementClientImpl client) {
+ AgentPoolsClientImpl(ContainerRegistryTasksManagementClientImpl client) {
this.service
= RestProxy.create(AgentPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for ContainerRegistryManagementClientAgentPools to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for ContainerRegistryTasksManagementClientAgentPools to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "ContainerRegistryManagementClientAgentPools")
+ @ServiceInterface(name = "ContainerRegistryTasksManagementClientAgentPools")
public interface AgentPoolsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}")
@@ -176,11 +175,10 @@ public Mono> getWithResponseAsync(String resourceGroupN
if (agentPoolName == null) {
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, agentPoolName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), agentPoolName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -218,11 +216,10 @@ private Mono> getWithResponseAsync(String resourceGroup
if (agentPoolName == null) {
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, agentPoolName, accept, context);
+ this.client.getApiVersion(), agentPoolName, accept, context);
}
/**
@@ -315,11 +312,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
agentPool.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, agentPoolName, agentPool, accept, context))
+ .withContext(
+ context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), agentPoolName, agentPool, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -363,11 +360,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
agentPool.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, agentPoolName, agentPool, accept, context);
+ registryName, this.client.getApiVersion(), agentPoolName, agentPool, accept, context);
}
/**
@@ -560,11 +556,10 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (agentPoolName == null) {
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, agentPoolName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), agentPoolName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -601,11 +596,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (agentPoolName == null) {
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, agentPoolName, accept, context);
+ registryName, this.client.getApiVersion(), agentPoolName, accept, context);
}
/**
@@ -791,11 +785,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
updateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, agentPoolName, updateParameters, accept, context))
+ .withContext(
+ context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), agentPoolName, updateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -840,11 +834,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
updateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, agentPoolName, updateParameters, accept, context);
+ registryName, this.client.getApiVersion(), agentPoolName, updateParameters, accept, context);
}
/**
@@ -1032,11 +1025,10 @@ private Mono> listSinglePageAsync(String resourceG
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -1071,12 +1063,11 @@ private Mono> listSinglePageAsync(String resourceG
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, accept, context)
+ this.client.getApiVersion(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -1178,11 +1169,10 @@ public Mono> getQueueStatusWithResponseAsync
if (agentPoolName == null) {
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getQueueStatus(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, agentPoolName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), agentPoolName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1220,11 +1210,10 @@ private Mono> getQueueStatusWithResponseAsyn
if (agentPoolName == null) {
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getQueueStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, agentPoolName, accept, context);
+ registryName, this.client.getApiVersion(), agentPoolName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CacheRulesClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CacheRulesClientImpl.java
index 80259eabafc2..d13e96681ec0 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CacheRulesClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CacheRulesClientImpl.java
@@ -157,11 +157,10 @@ private Mono> listSinglePageAsync(String resourceG
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -197,12 +196,11 @@ private Mono> listSinglePageAsync(String resourceG
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -308,11 +306,10 @@ public Mono> getWithResponseAsync(String resourceGroupN
if (cacheRuleName == null) {
return Mono.error(new IllegalArgumentException("Parameter cacheRuleName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, cacheRuleName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, cacheRuleName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -350,11 +347,10 @@ private Mono> getWithResponseAsync(String resourceGroup
if (cacheRuleName == null) {
return Mono.error(new IllegalArgumentException("Parameter cacheRuleName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, cacheRuleName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, cacheRuleName, accept, context);
}
/**
@@ -448,12 +444,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
cacheRuleCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, cacheRuleName,
+ cacheRuleCreateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -498,11 +493,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
cacheRuleCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, cacheRuleName, cacheRuleCreateParameters, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, accept, context);
}
/**
@@ -705,12 +699,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
cacheRuleUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, cacheRuleName,
+ cacheRuleUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -755,11 +748,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
cacheRuleUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, cacheRuleName, cacheRuleUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, accept, context);
}
/**
@@ -956,10 +948,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (cacheRuleName == null) {
return Mono.error(new IllegalArgumentException("Parameter cacheRuleName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, cacheRuleName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -997,11 +988,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (cacheRuleName == null) {
return Mono.error(new IllegalArgumentException("Parameter cacheRuleName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, cacheRuleName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, cacheRuleName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ConnectedRegistriesClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ConnectedRegistriesClientImpl.java
index babaa45ad9aa..b6ad0c58b8fa 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ConnectedRegistriesClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ConnectedRegistriesClientImpl.java
@@ -175,11 +175,10 @@ private Mono> listSinglePageAsync(String r
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, filter, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, filter, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -218,12 +217,11 @@ private Mono> listSinglePageAsync(String r
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, filter, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, filter, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -360,11 +358,9 @@ public Mono> getWithResponseAsync(String resour
return Mono
.error(new IllegalArgumentException("Parameter connectedRegistryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, connectedRegistryName, accept, context))
+ return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, connectedRegistryName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -403,11 +399,10 @@ private Mono> getWithResponseAsync(String resou
return Mono
.error(new IllegalArgumentException("Parameter connectedRegistryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, connectedRegistryName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, connectedRegistryName, accept, context);
}
/**
@@ -503,10 +498,9 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
connectedRegistryCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, connectedRegistryName,
connectedRegistryCreateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -554,11 +548,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
connectedRegistryCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, connectedRegistryName, connectedRegistryCreateParameters, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, connectedRegistryName, connectedRegistryCreateParameters, accept, context);
}
/**
@@ -776,10 +769,9 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
connectedRegistryUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, connectedRegistryName,
connectedRegistryUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -828,11 +820,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
connectedRegistryUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, connectedRegistryName, connectedRegistryUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters, accept, context);
}
/**
@@ -1044,12 +1035,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter connectedRegistryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, connectedRegistryName, accept, context))
+ return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, connectedRegistryName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1087,11 +1075,10 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter connectedRegistryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, connectedRegistryName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, connectedRegistryName, accept, context);
}
/**
@@ -1271,12 +1258,11 @@ public Mono>> deactivateWithResponseAsync(String resou
return Mono
.error(new IllegalArgumentException("Parameter connectedRegistryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.deactivate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, connectedRegistryName, accept, context))
+ .withContext(context -> service.deactivate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, connectedRegistryName, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1314,11 +1300,10 @@ private Mono>> deactivateWithResponseAsync(String reso
return Mono
.error(new IllegalArgumentException("Parameter connectedRegistryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.deactivate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, connectedRegistryName, accept, context);
+ return service.deactivate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, connectedRegistryName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryManagementClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryManagementClientImpl.java
index 939a27a25c68..1f67f083ab3b 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryManagementClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryManagementClientImpl.java
@@ -8,7 +8,6 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.util.serializer.SerializerAdapter;
-import com.azure.resourcemanager.containerregistry.fluent.AgentPoolsClient;
import com.azure.resourcemanager.containerregistry.fluent.CacheRulesClient;
import com.azure.resourcemanager.containerregistry.fluent.ConnectedRegistriesClient;
import com.azure.resourcemanager.containerregistry.fluent.ContainerRegistryManagementClient;
@@ -17,10 +16,7 @@
import com.azure.resourcemanager.containerregistry.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.containerregistry.fluent.RegistriesClient;
import com.azure.resourcemanager.containerregistry.fluent.ReplicationsClient;
-import com.azure.resourcemanager.containerregistry.fluent.RunsClient;
import com.azure.resourcemanager.containerregistry.fluent.ScopeMapsClient;
-import com.azure.resourcemanager.containerregistry.fluent.TaskRunsClient;
-import com.azure.resourcemanager.containerregistry.fluent.TasksClient;
import com.azure.resourcemanager.containerregistry.fluent.TokensClient;
import com.azure.resourcemanager.containerregistry.fluent.WebhooksClient;
import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient;
@@ -60,6 +56,20 @@ public String getEndpoint() {
return this.endpoint;
}
+ /**
+ * Api Version.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
/**
* The HTTP pipeline to send requests through.
*/
@@ -242,62 +252,6 @@ public WebhooksClient getWebhooks() {
return this.webhooks;
}
- /**
- * The AgentPoolsClient object to access its operations.
- */
- private final AgentPoolsClient agentPools;
-
- /**
- * Gets the AgentPoolsClient object to access its operations.
- *
- * @return the AgentPoolsClient object.
- */
- public AgentPoolsClient getAgentPools() {
- return this.agentPools;
- }
-
- /**
- * The RunsClient object to access its operations.
- */
- private final RunsClient runs;
-
- /**
- * Gets the RunsClient object to access its operations.
- *
- * @return the RunsClient object.
- */
- public RunsClient getRuns() {
- return this.runs;
- }
-
- /**
- * The TaskRunsClient object to access its operations.
- */
- private final TaskRunsClient taskRuns;
-
- /**
- * Gets the TaskRunsClient object to access its operations.
- *
- * @return the TaskRunsClient object.
- */
- public TaskRunsClient getTaskRuns() {
- return this.taskRuns;
- }
-
- /**
- * The TasksClient object to access its operations.
- */
- private final TasksClient tasks;
-
- /**
- * Gets the TasksClient object to access its operations.
- *
- * @return the TasksClient object.
- */
- public TasksClient getTasks() {
- return this.tasks;
- }
-
/**
* Initializes an instance of ContainerRegistryManagementClient client.
*
@@ -316,6 +270,7 @@ public TasksClient getTasks() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
+ this.apiVersion = "2025-11-01";
this.operations = new OperationsClientImpl(this);
this.registries = new RegistriesClientImpl(this);
this.cacheRules = new CacheRulesClientImpl(this);
@@ -326,9 +281,5 @@ public TasksClient getTasks() {
this.scopeMaps = new ScopeMapsClientImpl(this);
this.tokens = new TokensClientImpl(this);
this.webhooks = new WebhooksClientImpl(this);
- this.agentPools = new AgentPoolsClientImpl(this);
- this.runs = new RunsClientImpl(this);
- this.taskRuns = new TaskRunsClientImpl(this);
- this.tasks = new TasksClientImpl(this);
}
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryTasksManagementClientBuilder.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryTasksManagementClientBuilder.java
new file mode 100644
index 000000000000..edb93ee0dff7
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryTasksManagementClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.resourcemanager.containerregistry.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/**
+ * A builder for creating a new instance of the ContainerRegistryTasksManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { ContainerRegistryTasksManagementClientImpl.class })
+public final class ContainerRegistryTasksManagementClientBuilder {
+ /*
+ * The Microsoft Azure subscription ID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The Microsoft Azure subscription ID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the ContainerRegistryTasksManagementClientBuilder.
+ */
+ public ContainerRegistryTasksManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ContainerRegistryTasksManagementClientBuilder.
+ */
+ public ContainerRegistryTasksManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the ContainerRegistryTasksManagementClientBuilder.
+ */
+ public ContainerRegistryTasksManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the ContainerRegistryTasksManagementClientBuilder.
+ */
+ public ContainerRegistryTasksManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the ContainerRegistryTasksManagementClientBuilder.
+ */
+ public ContainerRegistryTasksManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the ContainerRegistryTasksManagementClientBuilder.
+ */
+ public ContainerRegistryTasksManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ContainerRegistryTasksManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of ContainerRegistryTasksManagementClientImpl.
+ */
+ public ContainerRegistryTasksManagementClientImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ ContainerRegistryTasksManagementClientImpl client
+ = new ContainerRegistryTasksManagementClientImpl(localPipeline, localSerializerAdapter,
+ localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
+ return client;
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryTasksManagementClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryTasksManagementClientImpl.java
new file mode 100644
index 000000000000..bd74c82f5dc5
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ContainerRegistryTasksManagementClientImpl.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.resourcemanager.containerregistry.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.resourcemanager.containerregistry.fluent.AgentPoolsClient;
+import com.azure.resourcemanager.containerregistry.fluent.ContainerRegistryTasksManagementClient;
+import com.azure.resourcemanager.containerregistry.fluent.RegistryTasksClient;
+import com.azure.resourcemanager.containerregistry.fluent.RunsClient;
+import com.azure.resourcemanager.containerregistry.fluent.TaskRunsClient;
+import com.azure.resourcemanager.containerregistry.fluent.TasksClient;
+import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient;
+import java.time.Duration;
+
+/**
+ * Initializes a new instance of the ContainerRegistryTasksManagementClientImpl type.
+ */
+@ServiceClient(builder = ContainerRegistryTasksManagementClientBuilder.class)
+public final class ContainerRegistryTasksManagementClientImpl extends AzureServiceClient
+ implements ContainerRegistryTasksManagementClient {
+ /**
+ * The Microsoft Azure subscription ID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * server parameter.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Api Version.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The HTTP pipeline to send requests through.
+ */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /**
+ * The serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * The AgentPoolsClient object to access its operations.
+ */
+ private final AgentPoolsClient agentPools;
+
+ /**
+ * Gets the AgentPoolsClient object to access its operations.
+ *
+ * @return the AgentPoolsClient object.
+ */
+ public AgentPoolsClient getAgentPools() {
+ return this.agentPools;
+ }
+
+ /**
+ * The RegistryTasksClient object to access its operations.
+ */
+ private final RegistryTasksClient registryTasks;
+
+ /**
+ * Gets the RegistryTasksClient object to access its operations.
+ *
+ * @return the RegistryTasksClient object.
+ */
+ public RegistryTasksClient getRegistryTasks() {
+ return this.registryTasks;
+ }
+
+ /**
+ * The RunsClient object to access its operations.
+ */
+ private final RunsClient runs;
+
+ /**
+ * Gets the RunsClient object to access its operations.
+ *
+ * @return the RunsClient object.
+ */
+ public RunsClient getRuns() {
+ return this.runs;
+ }
+
+ /**
+ * The TaskRunsClient object to access its operations.
+ */
+ private final TaskRunsClient taskRuns;
+
+ /**
+ * Gets the TaskRunsClient object to access its operations.
+ *
+ * @return the TaskRunsClient object.
+ */
+ public TaskRunsClient getTaskRuns() {
+ return this.taskRuns;
+ }
+
+ /**
+ * The TasksClient object to access its operations.
+ */
+ private final TasksClient tasks;
+
+ /**
+ * Gets the TasksClient object to access its operations.
+ *
+ * @return the TasksClient object.
+ */
+ public TasksClient getTasks() {
+ return this.tasks;
+ }
+
+ /**
+ * Initializes an instance of ContainerRegistryTasksManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId The Microsoft Azure subscription ID.
+ * @param endpoint server parameter.
+ */
+ ContainerRegistryTasksManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
+ super(httpPipeline, serializerAdapter, environment);
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2019-06-01-preview";
+ this.agentPools = new AgentPoolsClientImpl(this);
+ this.registryTasks = new RegistryTasksClientImpl(this);
+ this.runs = new RunsClientImpl(this);
+ this.taskRuns = new TaskRunsClientImpl(this);
+ this.tasks = new TasksClientImpl(this);
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CredentialSetsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CredentialSetsClientImpl.java
index 636294abe076..46b1d23d3622 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CredentialSetsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/CredentialSetsClientImpl.java
@@ -159,11 +159,10 @@ private Mono> listSinglePageAsync(String resou
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -199,12 +198,11 @@ private Mono> listSinglePageAsync(String resou
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -311,11 +309,10 @@ public Mono> getWithResponseAsync(String resourceGr
return Mono
.error(new IllegalArgumentException("Parameter credentialSetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, credentialSetName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, credentialSetName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -354,11 +351,10 @@ private Mono> getWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter credentialSetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, credentialSetName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, credentialSetName, accept, context);
}
/**
@@ -453,12 +449,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
credentialSetCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, credentialSetName,
+ credentialSetCreateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -504,11 +499,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
credentialSetCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, credentialSetName, credentialSetCreateParameters, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, accept, context);
}
/**
@@ -723,12 +717,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
credentialSetUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, credentialSetName,
+ credentialSetUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -774,11 +767,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
credentialSetUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, credentialSetName, credentialSetUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, accept, context);
}
/**
@@ -985,10 +977,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter credentialSetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, credentialSetName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1027,11 +1018,10 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter credentialSetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, credentialSetName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, credentialSetName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/OperationsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/OperationsClientImpl.java
index b499c9d2df2a..70f7a93d4bf6 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/OperationsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/OperationsClientImpl.java
@@ -91,9 +91,10 @@ private Mono> listSinglePageAsync() {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
- return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context))
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -115,10 +116,9 @@ private Mono> listSinglePageAsync(Contex
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.list(this.client.getEndpoint(), apiVersion, accept, context)
+ return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/PrivateEndpointConnectionsClientImpl.java
index ff679e12aab8..e8fbcb1e9ee0 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -148,11 +148,10 @@ private Mono> listSinglePageAsync(
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -188,12 +187,11 @@ private Mono> listSinglePageAsync(
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -302,11 +300,11 @@ public Mono> getWithResponseAsync(Strin
return Mono.error(new IllegalArgumentException(
"Parameter privateEndpointConnectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, privateEndpointConnectionName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, privateEndpointConnectionName, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -345,11 +343,10 @@ private Mono> getWithResponseAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter privateEndpointConnectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, privateEndpointConnectionName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, privateEndpointConnectionName, accept, context);
}
/**
@@ -449,10 +446,9 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
privateEndpointConnection.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, privateEndpointConnectionName,
privateEndpointConnection, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -501,11 +497,11 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
privateEndpointConnection.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, privateEndpointConnectionName, privateEndpointConnection, accept, context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, privateEndpointConnectionName,
+ privateEndpointConnection, accept, context);
}
/**
@@ -720,12 +716,11 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter privateEndpointConnectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, privateEndpointConnectionName, accept, context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, privateEndpointConnectionName, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -763,11 +758,10 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter privateEndpointConnectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, privateEndpointConnectionName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, privateEndpointConnectionName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesClientImpl.java
index 00481ff3eb5c..f536a0b9868a 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesClientImpl.java
@@ -40,8 +40,6 @@
import com.azure.resourcemanager.containerregistry.fluent.models.RegistryListCredentialsResultInner;
import com.azure.resourcemanager.containerregistry.fluent.models.RegistryNameStatusInner;
import com.azure.resourcemanager.containerregistry.fluent.models.RegistryUsageListResultInner;
-import com.azure.resourcemanager.containerregistry.fluent.models.RunInner;
-import com.azure.resourcemanager.containerregistry.fluent.models.SourceUploadDefinitionInner;
import com.azure.resourcemanager.containerregistry.models.GenerateCredentialsParameters;
import com.azure.resourcemanager.containerregistry.models.ImportImageParameters;
import com.azure.resourcemanager.containerregistry.models.PrivateLinkResourceListResult;
@@ -49,7 +47,6 @@
import com.azure.resourcemanager.containerregistry.models.RegistryListResult;
import com.azure.resourcemanager.containerregistry.models.RegistryNameCheckRequest;
import com.azure.resourcemanager.containerregistry.models.RegistryUpdateParameters;
-import com.azure.resourcemanager.containerregistry.models.RunRequest;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
@@ -220,25 +217,6 @@ Mono> regenerateCredential(@HostPar
@BodyParam("application/json") RegenerateCredentialParameters regenerateCredentialParameters,
@HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> scheduleRun(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("registryName") String registryName,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RunRequest runRequest,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getBuildSourceUploadUrl(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("registryName") String registryName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -291,11 +269,11 @@ Mono> listPrivateLinkResourcesNext(
} else {
registryNameCheckRequest.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), registryNameCheckRequest, accept, context))
+ .withContext(
+ context -> service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), registryNameCheckRequest, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -328,11 +306,10 @@ Mono> listPrivateLinkResourcesNext(
} else {
registryNameCheckRequest.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.checkNameAvailability(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- registryNameCheckRequest, accept, context);
+ return service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), registryNameCheckRequest, accept, context);
}
/**
@@ -403,11 +380,10 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -433,10 +409,11 @@ private Mono> listSinglePageAsync(Context context)
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
+ context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -518,10 +495,9 @@ private Mono> listByResourceGroupSinglePageAsync(St
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
@@ -554,12 +530,11 @@ private Mono> listByResourceGroupSinglePageAsync(St
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, accept, context)
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -653,10 +628,9 @@ public Mono> getByResourceGroupWithResponseAsync(String
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -691,11 +665,10 @@ private Mono> getByResourceGroupWithResponseAsync(String
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context);
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context);
}
/**
@@ -781,10 +754,9 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
registry.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, registry, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -825,11 +797,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
registry.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, registry, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, registry, accept, context);
}
/**
@@ -1014,12 +985,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
registryUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, registryUpdateParameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, registryUpdateParameters, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1060,11 +1030,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
registryUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, registryUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, registryUpdateParameters, accept, context);
}
/**
@@ -1244,10 +1213,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1281,11 +1249,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context);
}
/**
@@ -1454,10 +1421,9 @@ public Mono>> generateCredentialsWithResponseAsync(Str
} else {
generateCredentialsParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.generateCredentials(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.generateCredentials(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, generateCredentialsParameters, accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -1500,11 +1466,11 @@ private Mono>> generateCredentialsWithResponseAsync(St
} else {
generateCredentialsParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.generateCredentials(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, generateCredentialsParameters, accept, context);
+ return service.generateCredentials(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, generateCredentialsParameters, accept,
+ context);
}
/**
@@ -1701,10 +1667,9 @@ public Mono>> importImageWithResponseAsync(String reso
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.importImage(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.importImage(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, parameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1744,11 +1709,10 @@ private Mono>> importImageWithResponseAsync(String res
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.importImage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, parameters, accept, context);
+ return service.importImage(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, parameters, accept, context);
}
/**
@@ -1926,10 +1890,9 @@ public Mono> listCredentialsWithRes
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listCredentials(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.listCredentials(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1964,11 +1927,10 @@ public Mono> listCredentialsWithRes
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listCredentials(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context);
+ return service.listCredentials(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context);
}
/**
@@ -2049,10 +2011,9 @@ public Mono> listUsagesWithResponseAsync(
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listUsages(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.listUsages(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -2087,11 +2048,10 @@ private Mono> listUsagesWithResponseAsync
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listUsages(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context);
+ return service.listUsages(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context);
}
/**
@@ -2171,11 +2131,11 @@ public RegistryUsageListResultInner listUsages(String resourceGroupName, String
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listPrivateLinkResources(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
+ .withContext(
+ context -> service.listPrivateLinkResources(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -2211,12 +2171,11 @@ public RegistryUsageListResultInner listUsages(String resourceGroupName, String
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listPrivateLinkResources(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context)
+ .listPrivateLinkResources(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -2326,11 +2285,11 @@ public Mono> getPrivateLinkResourceWithRespon
if (groupName == null) {
return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.getPrivateLinkResource(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, registryName, groupName, accept, context))
+ .withContext(
+ context -> service.getPrivateLinkResource(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, groupName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -2368,11 +2327,10 @@ private Mono> getPrivateLinkResourceWithRespo
if (groupName == null) {
return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getPrivateLinkResource(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, groupName, accept, context);
+ return service.getPrivateLinkResource(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, groupName, accept, context);
}
/**
@@ -2466,10 +2424,9 @@ public Mono> regenerateCredentialWi
} else {
regenerateCredentialParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.regenerateCredential(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.regenerateCredential(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, regenerateCredentialParameters,
accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -2514,11 +2471,11 @@ private Mono> regenerateCredentialW
} else {
regenerateCredentialParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.regenerateCredential(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, regenerateCredentialParameters, accept, context);
+ return service.regenerateCredential(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, regenerateCredentialParameters, accept,
+ context);
}
/**
@@ -2579,360 +2536,6 @@ public RegistryListCredentialsResultInner regenerateCredential(String resourceGr
Context.NONE).getValue();
}
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono>> scheduleRunWithResponseAsync(String resourceGroupName, String registryName,
- RunRequest runRequest) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (registryName == null) {
- return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
- }
- if (runRequest == null) {
- return Mono.error(new IllegalArgumentException("Parameter runRequest is required and cannot be null."));
- } else {
- runRequest.validate();
- }
- final String apiVersion = "2019-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.scheduleRun(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, runRequest, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> scheduleRunWithResponseAsync(String resourceGroupName, String registryName,
- RunRequest runRequest, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (registryName == null) {
- return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
- }
- if (runRequest == null) {
- return Mono.error(new IllegalArgumentException("Parameter runRequest is required and cannot be null."));
- } else {
- runRequest.validate();
- }
- final String apiVersion = "2019-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.scheduleRun(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, runRequest, accept, context);
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux, RunInner> beginScheduleRunAsync(String resourceGroupName,
- String registryName, RunRequest runRequest) {
- Mono>> mono
- = scheduleRunWithResponseAsync(resourceGroupName, registryName, runRequest);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), RunInner.class,
- RunInner.class, this.client.getContext());
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, RunInner> beginScheduleRunAsync(String resourceGroupName,
- String registryName, RunRequest runRequest, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = scheduleRunWithResponseAsync(resourceGroupName, registryName, runRequest, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), RunInner.class,
- RunInner.class, context);
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
- RunRequest runRequest) {
- return this.beginScheduleRunAsync(resourceGroupName, registryName, runRequest).getSyncPoller();
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of run resource properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
- RunRequest runRequest, Context context) {
- return this.beginScheduleRunAsync(resourceGroupName, registryName, runRequest, context).getSyncPoller();
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest) {
- return beginScheduleRunAsync(resourceGroupName, registryName, runRequest).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest,
- Context context) {
- return beginScheduleRunAsync(resourceGroupName, registryName, runRequest, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest) {
- return scheduleRunAsync(resourceGroupName, registryName, runRequest).block();
- }
-
- /**
- * Schedules a new run based on the request parameters and add it to the run queue.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param runRequest The parameters of a run that needs to scheduled.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return run resource properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest, Context context) {
- return scheduleRunAsync(resourceGroupName, registryName, runRequest, context).block();
- }
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono>
- getBuildSourceUploadUrlWithResponseAsync(String resourceGroupName, String registryName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (registryName == null) {
- return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
- }
- final String apiVersion = "2019-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getBuildSourceUploadUrl(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, registryName, apiVersion, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- getBuildSourceUploadUrlWithResponseAsync(String resourceGroupName, String registryName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (registryName == null) {
- return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
- }
- final String apiVersion = "2019-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getBuildSourceUploadUrl(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, accept, context);
- }
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getBuildSourceUploadUrlAsync(String resourceGroupName,
- String registryName) {
- return getBuildSourceUploadUrlWithResponseAsync(resourceGroupName, registryName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getBuildSourceUploadUrlWithResponse(String resourceGroupName,
- String registryName, Context context) {
- return getBuildSourceUploadUrlWithResponseAsync(resourceGroupName, registryName, context).block();
- }
-
- /**
- * Get the upload location for the user to be able to upload the source.
- *
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
- * @param registryName The name of the container registry.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload location for the user to be able to upload the source.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public SourceUploadDefinitionInner getBuildSourceUploadUrl(String resourceGroupName, String registryName) {
- return getBuildSourceUploadUrlWithResponse(resourceGroupName, registryName, Context.NONE).getValue();
- }
-
/**
* Get the next page of items.
*
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesImpl.java
index bfbf3b9211fd..2867b40f313b 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistriesImpl.java
@@ -162,8 +162,8 @@ public SourceUploadDefinition getBuildSourceUploadUrl(String rgName, String acrN
@Override
public Mono getBuildSourceUploadUrlAsync(String rgName, String acrName) {
return this.manager()
- .serviceClient()
- .getRegistries()
+ .taskClient()
+ .getRegistryTasks()
.getBuildSourceUploadUrlAsync(rgName, acrName)
.map(sourceUploadDefinitionInner -> new SourceUploadDefinitionImpl(sourceUploadDefinitionInner));
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryImpl.java
index b6d4bb69378e..5f685c119992 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryImpl.java
@@ -249,8 +249,8 @@ public SourceUploadDefinition getBuildSourceUploadUrl() {
@Override
public Mono getBuildSourceUploadUrlAsync() {
return this.manager()
- .serviceClient()
- .getRegistries()
+ .taskClient()
+ .getRegistryTasks()
.getBuildSourceUploadUrlAsync(this.resourceGroupName(), this.name())
.map(sourceUploadDefinitionInner -> new SourceUploadDefinitionImpl(sourceUploadDefinitionInner));
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskImpl.java
index 9085bbb22681..3ca87965c994 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskImpl.java
@@ -178,14 +178,14 @@ public Map sourceTriggers() {
}
RegistryTaskImpl(ContainerRegistryManager registryManager, String taskName) {
- this.tasksInner = registryManager.serviceClient().getTasks();
+ this.tasksInner = registryManager.taskClient().getTasks();
this.taskName = taskName;
this.inner = new TaskInner();
this.taskUpdateParameters = new TaskUpdateParameters();
}
RegistryTaskImpl(ContainerRegistryManager registryManager, TaskInner inner) {
- this.tasksInner = registryManager.serviceClient().getTasks();
+ this.tasksInner = registryManager.taskClient().getTasks();
this.taskName = inner.name();
this.inner = inner;
this.resourceGroupName = ResourceUtils.groupFromResourceId(this.inner.id());
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunImpl.java
index 74f6dd2c2440..1339b2b72bf9 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunImpl.java
@@ -4,7 +4,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.containerregistry.ContainerRegistryManager;
-import com.azure.resourcemanager.containerregistry.fluent.RegistriesClient;
+import com.azure.resourcemanager.containerregistry.fluent.RegistryTasksClient;
import com.azure.resourcemanager.containerregistry.fluent.models.RunInner;
import com.azure.resourcemanager.containerregistry.models.AgentProperties;
import com.azure.resourcemanager.containerregistry.models.Architecture;
@@ -40,7 +40,7 @@ class RegistryTaskRunImpl implements RegistryTaskRun, RegistryTaskRun.Definition
private String resourceGroupName;
private String registryName;
private RunInner inner;
- private RegistriesClient registriesInner;
+ private RegistryTasksClient registryTasksClient;
private FileTaskRunRequest fileTaskRunRequest;
private EncodedTaskRunRequest encodedTaskRunRequest;
private DockerBuildRequest dockerTaskRunRequest;
@@ -116,7 +116,7 @@ public String runId() {
RegistryTaskRunImpl(ContainerRegistryManager registryManager, RunInner runInner) {
this.registryManager = registryManager;
- this.registriesInner = registryManager.serviceClient().getRegistries();
+ this.registryTasksClient = registryManager.taskClient().getRegistryTasks();
this.platform = new PlatformProperties();
this.inner = runInner;
@@ -301,28 +301,28 @@ public RegistryTaskRun execute() {
public Mono executeAsync() {
final RegistryTaskRunImpl self = this;
if (this.fileTaskRunRequest != null) {
- return this.registriesInner
+ return this.registryTasksClient
.scheduleRunAsync(this.resourceGroupName(), this.registryName(), this.fileTaskRunRequest)
.map(runInner -> {
self.inner = runInner;
return self;
});
} else if (this.encodedTaskRunRequest != null) {
- return this.registriesInner
+ return this.registryTasksClient
.scheduleRunAsync(this.resourceGroupName(), this.registryName(), this.encodedTaskRunRequest)
.map(runInner -> {
self.inner = runInner;
return self;
});
} else if (this.dockerTaskRunRequest != null) {
- return this.registriesInner
+ return this.registryTasksClient
.scheduleRunAsync(this.resourceGroupName(), this.registryName(), this.dockerTaskRunRequest)
.map(runInner -> {
self.inner = runInner;
return self;
});
} else if (this.taskRunRequest != null) {
- return this.registriesInner
+ return this.registryTasksClient
.scheduleRunAsync(this.resourceGroupName(), this.registryName(), this.taskRunRequest)
.map(runInner -> {
self.inner = runInner;
@@ -365,7 +365,7 @@ public RegistryTaskRun refresh() {
@Override
public Mono refreshAsync() {
final RegistryTaskRunImpl self = this;
- return registryManager.serviceClient()
+ return registryManager.taskClient()
.getRuns()
.getAsync(this.resourceGroupName(), this.registryName(), this.inner.runId())
.map(runInner -> {
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunsImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunsImpl.java
index ce17ba64d1dc..575d5d6310dd 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunsImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTaskRunsImpl.java
@@ -26,7 +26,7 @@ public RegistryTaskRun.DefinitionStages.BlankFromRuns scheduleRun() {
@Override
public PagedFlux listByRegistryAsync(String rgName, String acrName) {
- return PagedConverter.mapPage(this.registryManager.serviceClient().getRuns().listAsync(rgName, acrName),
+ return PagedConverter.mapPage(this.registryManager.taskClient().getRuns().listAsync(rgName, acrName),
inner -> wrapModel(inner));
}
@@ -37,7 +37,7 @@ public PagedIterable listByRegistry(String rgName, String acrNa
@Override
public Mono getLogSasUrlAsync(String rgName, String acrName, String runId) {
- return this.registryManager.serviceClient()
+ return this.registryManager.taskClient()
.getRuns()
.getLogSasUrlAsync(rgName, acrName, runId)
.map(runGetLogResultInner -> runGetLogResultInner.logLink());
@@ -50,7 +50,7 @@ public String getLogSasUrl(String rgName, String acrName, String runId) {
@Override
public Mono cancelAsync(String rgName, String acrName, String runId) {
- return this.registryManager.serviceClient().getRuns().cancelAsync(rgName, acrName, runId);
+ return this.registryManager.taskClient().getRuns().cancelAsync(rgName, acrName, runId);
}
@Override
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksClientImpl.java
new file mode 100644
index 000000000000..7c269a625297
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksClientImpl.java
@@ -0,0 +1,437 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.resourcemanager.containerregistry.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.fluent.RegistryTasksClient;
+import com.azure.resourcemanager.containerregistry.fluent.models.RunInner;
+import com.azure.resourcemanager.containerregistry.fluent.models.SourceUploadDefinitionInner;
+import com.azure.resourcemanager.containerregistry.models.RunRequest;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in RegistryTasksClient.
+ */
+public final class RegistryTasksClientImpl implements RegistryTasksClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final RegistryTasksService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ContainerRegistryTasksManagementClientImpl client;
+
+ /**
+ * Initializes an instance of RegistryTasksClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ RegistryTasksClientImpl(ContainerRegistryTasksManagementClientImpl client) {
+ this.service
+ = RestProxy.create(RegistryTasksService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerRegistryTasksManagementClientRegistryTasks to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerRegistryTasksManagementClientRegistryTasks")
+ public interface RegistryTasksService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> scheduleRun(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RunRequest runRequest,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getBuildSourceUploadUrl(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> scheduleRunWithResponseAsync(String resourceGroupName, String registryName,
+ RunRequest runRequest) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (runRequest == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runRequest is required and cannot be null."));
+ } else {
+ runRequest.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.scheduleRun(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, this.client.getApiVersion(), runRequest, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> scheduleRunWithResponseAsync(String resourceGroupName, String registryName,
+ RunRequest runRequest, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (runRequest == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runRequest is required and cannot be null."));
+ } else {
+ runRequest.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.scheduleRun(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), runRequest, accept, context);
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, RunInner> beginScheduleRunAsync(String resourceGroupName,
+ String registryName, RunRequest runRequest) {
+ Mono>> mono
+ = scheduleRunWithResponseAsync(resourceGroupName, registryName, runRequest);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), RunInner.class,
+ RunInner.class, this.client.getContext());
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RunInner> beginScheduleRunAsync(String resourceGroupName,
+ String registryName, RunRequest runRequest, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = scheduleRunWithResponseAsync(resourceGroupName, registryName, runRequest, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), RunInner.class,
+ RunInner.class, context);
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
+ RunRequest runRequest) {
+ return this.beginScheduleRunAsync(resourceGroupName, registryName, runRequest).getSyncPoller();
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RunInner> beginScheduleRun(String resourceGroupName, String registryName,
+ RunRequest runRequest, Context context) {
+ return this.beginScheduleRunAsync(resourceGroupName, registryName, runRequest, context).getSyncPoller();
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest) {
+ return beginScheduleRunAsync(resourceGroupName, registryName, runRequest).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest,
+ Context context) {
+ return beginScheduleRunAsync(resourceGroupName, registryName, runRequest, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest) {
+ return scheduleRunAsync(resourceGroupName, registryName, runRequest).block();
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest, Context context) {
+ return scheduleRunAsync(resourceGroupName, registryName, runRequest, context).block();
+ }
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>
+ getBuildSourceUploadUrlWithResponseAsync(String resourceGroupName, String registryName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.getBuildSourceUploadUrl(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ getBuildSourceUploadUrlWithResponseAsync(String resourceGroupName, String registryName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getBuildSourceUploadUrl(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getBuildSourceUploadUrlAsync(String resourceGroupName,
+ String registryName) {
+ return getBuildSourceUploadUrlWithResponseAsync(resourceGroupName, registryName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getBuildSourceUploadUrlWithResponse(String resourceGroupName,
+ String registryName, Context context) {
+ return getBuildSourceUploadUrlWithResponseAsync(resourceGroupName, registryName, context).block();
+ }
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SourceUploadDefinitionInner getBuildSourceUploadUrl(String resourceGroupName, String registryName) {
+ return getBuildSourceUploadUrlWithResponse(resourceGroupName, registryName, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksImpl.java
index 573db6b801cd..acee3739c8ad 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RegistryTasksImpl.java
@@ -29,7 +29,7 @@ public RegistryTask.DefinitionStages.Blank define(String name) {
@Override
public PagedFlux listByRegistryAsync(String resourceGroupName, String registryName) {
return PagedConverter.mapPage(
- this.registryManager.serviceClient().getTasks().listAsync(resourceGroupName, registryName),
+ this.registryManager.taskClient().getTasks().listAsync(resourceGroupName, registryName),
inner -> wrapModel(inner));
}
@@ -42,12 +42,12 @@ public PagedIterable listByRegistry(String resourceGroupName, Stri
public Mono getByRegistryAsync(String resourceGroupName, String registryName, String taskName,
boolean includeSecrets) {
if (includeSecrets) {
- return this.registryManager.serviceClient()
+ return this.registryManager.taskClient()
.getTasks()
.getDetailsAsync(resourceGroupName, registryName, taskName)
.map(taskInner -> new RegistryTaskImpl(registryManager, taskInner));
} else {
- return this.registryManager.serviceClient()
+ return this.registryManager.taskClient()
.getTasks()
.getAsync(resourceGroupName, registryName, taskName)
.map(taskInner -> new RegistryTaskImpl(registryManager, taskInner));
@@ -62,7 +62,7 @@ public RegistryTask getByRegistry(String resourceGroupName, String registryName,
@Override
public Mono deleteByRegistryAsync(String resourceGroupName, String registryName, String taskName) {
- return this.registryManager.serviceClient().getTasks().deleteAsync(resourceGroupName, registryName, taskName);
+ return this.registryManager.taskClient().getTasks().deleteAsync(resourceGroupName, registryName, taskName);
}
@Override
@@ -75,6 +75,6 @@ private RegistryTaskImpl wrapModel(TaskInner innerModel) {
}
public TasksClient inner() {
- return this.registryManager.serviceClient().getTasks();
+ return this.registryManager.taskClient().getTasks();
}
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ReplicationsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ReplicationsClientImpl.java
index b123d623d553..1eb0e3ca8416 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ReplicationsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ReplicationsClientImpl.java
@@ -159,11 +159,10 @@ private Mono> listSinglePageAsync(String resourc
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -199,12 +198,11 @@ private Mono> listSinglePageAsync(String resourc
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -311,11 +309,10 @@ public Mono> getWithResponseAsync(String resourceGrou
return Mono
.error(new IllegalArgumentException("Parameter replicationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, replicationName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, replicationName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -354,11 +351,10 @@ private Mono> getWithResponseAsync(String resourceGro
return Mono
.error(new IllegalArgumentException("Parameter replicationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, replicationName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, replicationName, accept, context);
}
/**
@@ -452,12 +448,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
replication.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, replicationName, replication, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, replicationName, replication, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -502,11 +497,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
replication.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, replicationName, replication, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, replicationName, replication, accept, context);
}
/**
@@ -710,12 +704,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
replicationUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, replicationName, replicationUpdateParameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, replicationName,
+ replicationUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -761,11 +754,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
replicationUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, replicationName, replicationUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, replicationName, replicationUpdateParameters, accept, context);
}
/**
@@ -967,10 +959,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter replicationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, replicationName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1009,11 +1000,10 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter replicationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, replicationName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, replicationName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RunsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RunsClientImpl.java
index 5fcefe716dda..938a2a8cdd98 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RunsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/RunsClientImpl.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.implementation;
@@ -52,24 +51,24 @@ public final class RunsClientImpl implements RunsClient {
/**
* The service client containing this operation class.
*/
- private final ContainerRegistryManagementClientImpl client;
+ private final ContainerRegistryTasksManagementClientImpl client;
/**
* Initializes an instance of RunsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RunsClientImpl(ContainerRegistryManagementClientImpl client) {
+ RunsClientImpl(ContainerRegistryTasksManagementClientImpl client) {
this.service = RestProxy.create(RunsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for ContainerRegistryManagementClientRuns to be used by the proxy service
- * to perform REST calls.
+ * The interface defining all the services for ContainerRegistryTasksManagementClientRuns to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "ContainerRegistryManagementClientRuns")
+ @ServiceInterface(name = "ContainerRegistryTasksManagementClientRuns")
public interface RunsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs")
@@ -161,11 +160,10 @@ private Mono> listSinglePageAsync(String resourceGroupNa
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, filter, top, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), filter, top, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -203,12 +201,11 @@ private Mono> listSinglePageAsync(String resourceGroupNa
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, filter, top, accept, context)
+ this.client.getApiVersion(), filter, top, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -340,11 +337,10 @@ public Mono> getWithResponseAsync(String resourceGroupName, S
if (runId == null) {
return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, runId, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), runId, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -382,11 +378,10 @@ private Mono> getWithResponseAsync(String resourceGroupName,
if (runId == null) {
return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, runId, accept, context);
+ this.client.getApiVersion(), runId, accept, context);
}
/**
@@ -479,11 +474,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
runUpdateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, runId, runUpdateParameters, accept, context))
+ .withContext(
+ context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), runId, runUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -527,11 +522,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
runUpdateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, runId, runUpdateParameters, accept, context);
+ registryName, this.client.getApiVersion(), runId, runUpdateParameters, accept, context);
}
/**
@@ -724,11 +718,10 @@ public Mono> getLogSasUrlWithResponseAsync(String
if (runId == null) {
return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getLogSasUrl(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, runId, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), runId, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -765,11 +758,10 @@ private Mono> getLogSasUrlWithResponseAsync(Strin
if (runId == null) {
return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getLogSasUrl(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, runId, accept, context);
+ registryName, this.client.getApiVersion(), runId, accept, context);
}
/**
@@ -855,11 +847,10 @@ public Mono>> cancelWithResponseAsync(String resourceG
if (runId == null) {
return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.cancel(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, runId, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), runId, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -896,11 +887,10 @@ private Mono>> cancelWithResponseAsync(String resource
if (runId == null) {
return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.cancel(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, runId, accept, context);
+ registryName, this.client.getApiVersion(), runId, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ScopeMapsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ScopeMapsClientImpl.java
index ec4f85ae763d..1228c61f93db 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ScopeMapsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/ScopeMapsClientImpl.java
@@ -157,11 +157,10 @@ private Mono> listSinglePageAsync(String resourceGr
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -197,12 +196,11 @@ private Mono> listSinglePageAsync(String resourceGr
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -308,11 +306,10 @@ public Mono> getWithResponseAsync(String resourceGroupNa
if (scopeMapName == null) {
return Mono.error(new IllegalArgumentException("Parameter scopeMapName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, scopeMapName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, scopeMapName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -350,11 +347,10 @@ private Mono> getWithResponseAsync(String resourceGroupN
if (scopeMapName == null) {
return Mono.error(new IllegalArgumentException("Parameter scopeMapName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, scopeMapName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, scopeMapName, accept, context);
}
/**
@@ -448,12 +444,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
scopeMapCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, scopeMapName,
+ scopeMapCreateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -498,11 +493,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
scopeMapCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, scopeMapName, scopeMapCreateParameters, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, accept, context);
}
/**
@@ -704,12 +698,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
scopeMapUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, scopeMapName,
+ scopeMapUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -754,11 +747,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
scopeMapUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, scopeMapName, scopeMapUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, accept, context);
}
/**
@@ -952,10 +944,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (scopeMapName == null) {
return Mono.error(new IllegalArgumentException("Parameter scopeMapName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, scopeMapName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -993,11 +984,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (scopeMapName == null) {
return Mono.error(new IllegalArgumentException("Parameter scopeMapName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, scopeMapName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, scopeMapName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TaskRunsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TaskRunsClientImpl.java
index de584279d1a3..2a64d7951e51 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TaskRunsClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TaskRunsClientImpl.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.implementation;
@@ -53,24 +52,24 @@ public final class TaskRunsClientImpl implements TaskRunsClient {
/**
* The service client containing this operation class.
*/
- private final ContainerRegistryManagementClientImpl client;
+ private final ContainerRegistryTasksManagementClientImpl client;
/**
* Initializes an instance of TaskRunsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- TaskRunsClientImpl(ContainerRegistryManagementClientImpl client) {
+ TaskRunsClientImpl(ContainerRegistryTasksManagementClientImpl client) {
this.service = RestProxy.create(TaskRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for ContainerRegistryManagementClientTaskRuns to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for ContainerRegistryTasksManagementClientTaskRuns to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "ContainerRegistryManagementClientTaskRuns")
+ @ServiceInterface(name = "ContainerRegistryTasksManagementClientTaskRuns")
public interface TaskRunsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}")
@@ -173,11 +172,10 @@ public Mono> getWithResponseAsync(String resourceGroupNam
if (taskRunName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskRunName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskRunName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskRunName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -215,11 +213,10 @@ private Mono> getWithResponseAsync(String resourceGroupNa
if (taskRunName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskRunName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, taskRunName, accept, context);
+ this.client.getApiVersion(), taskRunName, accept, context);
}
/**
@@ -312,11 +309,10 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
taskRun.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskRunName, taskRun, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskRunName, taskRun, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -360,11 +356,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
taskRun.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskRunName, taskRun, accept, context);
+ registryName, this.client.getApiVersion(), taskRunName, taskRun, accept, context);
}
/**
@@ -556,11 +551,10 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (taskRunName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskRunName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskRunName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskRunName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -597,11 +591,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (taskRunName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskRunName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskRunName, accept, context);
+ registryName, this.client.getApiVersion(), taskRunName, accept, context);
}
/**
@@ -786,11 +779,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
updateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskRunName, updateParameters, accept, context))
+ .withContext(
+ context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), taskRunName, updateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -835,11 +828,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
updateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskRunName, updateParameters, accept, context);
+ registryName, this.client.getApiVersion(), taskRunName, updateParameters, accept, context);
}
/**
@@ -1033,11 +1025,10 @@ public Mono> getDetailsWithResponseAsync(String resourceG
if (taskRunName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskRunName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getDetails(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskRunName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskRunName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1075,11 +1066,10 @@ private Mono> getDetailsWithResponseAsync(String resource
if (taskRunName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskRunName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getDetails(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskRunName, accept, context);
+ registryName, this.client.getApiVersion(), taskRunName, accept, context);
}
/**
@@ -1161,11 +1151,10 @@ private Mono> listSinglePageAsync(String resourceGro
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -1200,12 +1189,11 @@ private Mono> listSinglePageAsync(String resourceGro
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, accept, context)
+ this.client.getApiVersion(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TasksClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TasksClientImpl.java
index 3b9b2c075e77..8d6e084fb4c1 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TasksClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TasksClientImpl.java
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.implementation;
@@ -53,24 +52,24 @@ public final class TasksClientImpl implements TasksClient {
/**
* The service client containing this operation class.
*/
- private final ContainerRegistryManagementClientImpl client;
+ private final ContainerRegistryTasksManagementClientImpl client;
/**
* Initializes an instance of TasksClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- TasksClientImpl(ContainerRegistryManagementClientImpl client) {
+ TasksClientImpl(ContainerRegistryTasksManagementClientImpl client) {
this.service = RestProxy.create(TasksService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for ContainerRegistryManagementClientTasks to be used by the proxy
+ * The interface defining all the services for ContainerRegistryTasksManagementClientTasks to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "ContainerRegistryManagementClientTasks")
+ @ServiceInterface(name = "ContainerRegistryTasksManagementClientTasks")
public interface TasksService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks")
@@ -168,11 +167,10 @@ private Mono> listSinglePageAsync(String resourceGroupN
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -207,12 +205,11 @@ private Mono> listSinglePageAsync(String resourceGroupN
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, accept, context)
+ this.client.getApiVersion(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -313,11 +310,10 @@ public Mono> getWithResponseAsync(String resourceGroupName,
if (taskName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -354,11 +350,10 @@ private Mono> getWithResponseAsync(String resourceGroupName,
if (taskName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, registryName,
- apiVersion, taskName, accept, context);
+ this.client.getApiVersion(), taskName, accept, context);
}
/**
@@ -452,11 +447,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
taskCreateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskName, taskCreateParameters, accept, context))
+ .withContext(
+ context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), taskName, taskCreateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -501,11 +496,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
taskCreateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskName, taskCreateParameters, accept, context);
+ registryName, this.client.getApiVersion(), taskName, taskCreateParameters, accept, context);
}
/**
@@ -698,11 +692,10 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (taskName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -739,11 +732,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (taskName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskName, accept, context);
+ registryName, this.client.getApiVersion(), taskName, accept, context);
}
/**
@@ -928,11 +920,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
taskUpdateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskName, taskUpdateParameters, accept, context))
+ .withContext(
+ context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ registryName, this.client.getApiVersion(), taskName, taskUpdateParameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -977,11 +969,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
taskUpdateParameters.validate();
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskName, taskUpdateParameters, accept, context);
+ registryName, this.client.getApiVersion(), taskName, taskUpdateParameters, accept, context);
}
/**
@@ -1175,11 +1166,10 @@ public Mono> getDetailsWithResponseAsync(String resourceGrou
if (taskName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getDetails(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, registryName, apiVersion, taskName, accept, context))
+ resourceGroupName, registryName, this.client.getApiVersion(), taskName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1217,11 +1207,10 @@ private Mono> getDetailsWithResponseAsync(String resourceGro
if (taskName == null) {
return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
}
- final String apiVersion = "2019-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getDetails(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- registryName, apiVersion, taskName, accept, context);
+ registryName, this.client.getApiVersion(), taskName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TokensClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TokensClientImpl.java
index 663188f8932d..d79c1f67e496 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TokensClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/TokensClientImpl.java
@@ -155,11 +155,10 @@ private Mono> listSinglePageAsync(String resourceGroup
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -195,12 +194,11 @@ private Mono> listSinglePageAsync(String resourceGroup
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -306,11 +304,10 @@ public Mono> getWithResponseAsync(String resourceGroupName,
if (tokenName == null) {
return Mono.error(new IllegalArgumentException("Parameter tokenName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, tokenName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, tokenName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -348,11 +345,10 @@ private Mono> getWithResponseAsync(String resourceGroupName
if (tokenName == null) {
return Mono.error(new IllegalArgumentException("Parameter tokenName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, tokenName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, tokenName, accept, context);
}
/**
@@ -446,12 +442,11 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
tokenCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, tokenName, tokenCreateParameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, tokenName, tokenCreateParameters,
+ accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -496,11 +491,10 @@ private Mono>> createWithResponseAsync(String resource
} else {
tokenCreateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, tokenName, tokenCreateParameters, accept, context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, tokenName, tokenCreateParameters, accept, context);
}
/**
@@ -701,12 +695,11 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
tokenUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, tokenName, tokenUpdateParameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, tokenName, tokenUpdateParameters,
+ accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -751,11 +744,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
tokenUpdateParameters.validate();
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, tokenName, tokenUpdateParameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, tokenName, tokenUpdateParameters, accept, context);
}
/**
@@ -948,10 +940,9 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (tokenName == null) {
return Mono.error(new IllegalArgumentException("Parameter tokenName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, registryName, tokenName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -989,11 +980,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (tokenName == null) {
return Mono.error(new IllegalArgumentException("Parameter tokenName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, tokenName, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, tokenName, accept, context);
}
/**
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/WebhooksClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/WebhooksClientImpl.java
index a18198403ca3..1c9f03ed1b48 100644
--- a/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/WebhooksClientImpl.java
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/implementation/WebhooksClientImpl.java
@@ -196,11 +196,10 @@ private Mono> listSinglePageAsync(String resourceGro
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, registryName, accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, registryName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -236,12 +235,11 @@ private Mono> listSinglePageAsync(String resourceGro
if (registryName == null) {
return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- registryName, accept, context)
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, registryName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -347,11 +345,10 @@ public Mono