diff --git a/common/smoke-tests/pom.xml b/common/smoke-tests/pom.xml
index 65f1f9fba298..b0d4e43f23c7 100644
--- a/common/smoke-tests/pom.xml
+++ b/common/smoke-tests/pom.xml
@@ -130,7 +130,7 @@
com.azure
azure-security-keyvault-secrets
- 4.2.8
+ 4.3.0
diff --git a/eng/common/README.md b/eng/common/README.md
index b9867f0705e2..732688daadc0 100644
--- a/eng/common/README.md
+++ b/eng/common/README.md
@@ -1,3 +1,3 @@
# Common Engineering System
-Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md)
+Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md)
diff --git a/eng/common/docgeneration/Generate-DocIndex.ps1 b/eng/common/docgeneration/Generate-DocIndex.ps1
index 82b3a75e4e53..cf9b5f06ff95 100644
--- a/eng/common/docgeneration/Generate-DocIndex.ps1
+++ b/eng/common/docgeneration/Generate-DocIndex.ps1
@@ -177,5 +177,5 @@ else
{
LogWarning "The function for 'GetGithubIoDocIndexFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
}
diff --git a/eng/common/pipelines/templates/steps/check-spelling.yml b/eng/common/pipelines/templates/steps/check-spelling.yml
index 3865a3f26ece..986d729fc30c 100644
--- a/eng/common/pipelines/templates/steps/check-spelling.yml
+++ b/eng/common/pipelines/templates/steps/check-spelling.yml
@@ -2,7 +2,7 @@
# and some ref (branch, tag, etc.) or commit hash. Only runs on PRs.
# ContinueOnError - true: Pipeline warns on spelling error
# false: Pipeline fails on spelling error
-# TargetBranch - Target ref (e.g. master) to compare to create file change
+# TargetBranch - Target ref (e.g. main) to compare to create file change
# list.
# CspellConfigPath - Path to cspell.json config location
diff --git a/eng/common/pipelines/templates/steps/docs-metadata-release.yml b/eng/common/pipelines/templates/steps/docs-metadata-release.yml
index b3c844422585..2f58b90d4d10 100644
--- a/eng/common/pipelines/templates/steps/docs-metadata-release.yml
+++ b/eng/common/pipelines/templates/steps/docs-metadata-release.yml
@@ -26,7 +26,7 @@ parameters:
default: ''
- name: PRBranchName
type: string
- default: 'master-rdme'
+ default: 'main-rdme'
- name: PRLabels
type: string
default: 'auto-merge'
diff --git a/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml b/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml
index 0125e6cbacee..b68e1cd0c27a 100644
--- a/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml
+++ b/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml
@@ -16,7 +16,7 @@ steps:
if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0))
{
Write-Host "##vso[task.LogIssue type=error;]Changes to files under 'eng/common' directory should not be made in this Repo`n${filesInCommonDir}"
- Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md"
+ Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md"
exit 1
}
}
diff --git a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml
index d0da703285f3..d368d52595b3 100644
--- a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml
+++ b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml
@@ -9,7 +9,7 @@ steps:
- script: >
dotnet tool install
Azure.Sdk.Tools.PipelineGenerator
- --version 1.0.2-dev.20210309.1
+ --version 1.0.2-dev.20210621.4
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk/nuget/v3/index.json
--tool-path ${{parameters.ToolPath}}
workingDirectory: $(Pipeline.Workspace)/pipeline-generator
diff --git a/eng/common/pipelines/templates/steps/set-default-branch.yml b/eng/common/pipelines/templates/steps/set-default-branch.yml
index e3eed4512d97..491edaa8b68d 100644
--- a/eng/common/pipelines/templates/steps/set-default-branch.yml
+++ b/eng/common/pipelines/templates/steps/set-default-branch.yml
@@ -5,8 +5,8 @@ steps:
- pwsh: |
$setDefaultBranch = (git remote show ${{ parameters.RemoteRepo }} | Out-String) -replace "(?ms).*HEAD branch: (\w+).*", '$1'
if ($LASTEXITCODE -ne 0) {
- Write-Host "Not able to fetch the default branch from git command. Set to master."
- $setDefaultBranch = 'master'
+ Write-Host "Not able to fetch the default branch from git command. Set to main."
+ $setDefaultBranch = 'main'
}
Write-Host "Setting DefaultBranch=$setDefaultBranch"
Write-Host "##vso[task.setvariable variable=DefaultBranch]$setDefaultBranch"
diff --git a/eng/common/scripts/Create-APIReview.ps1 b/eng/common/scripts/Create-APIReview.ps1
index 8b9007253274..0ef5e0ba6818 100644
--- a/eng/common/scripts/Create-APIReview.ps1
+++ b/eng/common/scripts/Create-APIReview.ps1
@@ -71,7 +71,7 @@ else
{
Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
exit(1)
}
@@ -104,7 +104,7 @@ if ($packages)
Write-Host "Version: $($version)"
Write-Host "SDK Type: $($pkgInfo.SdkType)"
- # Run create review step only if build is triggered from master branch or if version is GA.
+ # Run create review step only if build is triggered from main branch or if version is GA.
# This is to avoid invalidating review status by a build triggered from feature branch
if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease))
{
diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1
index 3aadc8d58064..64698a181b7e 100644
--- a/eng/common/scripts/Package-Properties.ps1
+++ b/eng/common/scripts/Package-Properties.ps1
@@ -126,7 +126,7 @@ function Get-AllPkgProperties ([string]$ServiceDirectory = $null)
return $pkgPropsResult
}
-# Given the metadata url under https://github.com/Azure/azure-sdk/tree/master/_data/releases/latest,
+# Given the metadata url under https://github.com/Azure/azure-sdk/tree/main/_data/releases/latest,
# the function will return the csv metadata back as part of response.
function Get-CSVMetadata ([string]$MetadataUri=$MetadataUri)
{
@@ -143,7 +143,7 @@ function Get-PkgPropsForEntireService ($serviceDirectoryPath)
{
LogError "The function for '$GetPackageInfoFromRepoFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
}
foreach ($directory in (Get-ChildItem $serviceDirectoryPath -Directory))
diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1
index eed113299a2e..95f175d3fdaf 100644
--- a/eng/common/scripts/Prepare-Release.ps1
+++ b/eng/common/scripts/Prepare-Release.ps1
@@ -180,7 +180,7 @@ else
{
LogError "The function 'SetPackageVersion' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
exit 1
}
diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1
index 2d43127b2b14..4292200f3b6f 100644
--- a/eng/common/scripts/Update-DocsMsPackages.ps1
+++ b/eng/common/scripts/Update-DocsMsPackages.ps1
@@ -31,6 +31,6 @@ if ($UpdateDocsMsPackagesFn -and (Test-Path "Function:$UpdateDocsMsPackagesFn"))
} else {
LogError "The function for '$UpdateFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
exit 1
}
diff --git a/eng/common/scripts/artifact-metadata-parsing.ps1 b/eng/common/scripts/artifact-metadata-parsing.ps1
index 2339155b359d..dc96ee917288 100644
--- a/eng/common/scripts/artifact-metadata-parsing.ps1
+++ b/eng/common/scripts/artifact-metadata-parsing.ps1
@@ -101,7 +101,7 @@ function RetrievePackages($artifactLocation) {
{
LogError "The function for '$GetPackageInfoFromPackageFileFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
}
}
diff --git a/eng/common/scripts/copy-docs-to-blobstorage.ps1 b/eng/common/scripts/copy-docs-to-blobstorage.ps1
index 7864e9680f1f..f037dcf51e4f 100644
--- a/eng/common/scripts/copy-docs-to-blobstorage.ps1
+++ b/eng/common/scripts/copy-docs-to-blobstorage.ps1
@@ -240,6 +240,6 @@ else
{
LogWarning "The function for '$PublishGithubIODocsFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
- See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
+ See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
}
diff --git a/eng/common/scripts/update-docs-metadata.ps1 b/eng/common/scripts/update-docs-metadata.ps1
index fc16fea9e552..6154afd51591 100644
--- a/eng/common/scripts/update-docs-metadata.ps1
+++ b/eng/common/scripts/update-docs-metadata.ps1
@@ -24,7 +24,7 @@ param (
. (Join-Path $PSScriptRoot common.ps1)
-$releaseReplaceRegex = "(https://github.com/$RepoId/(?:blob|tree)/)master"
+$releaseReplaceRegex = "(https://github.com/$RepoId/(?:blob|tree)/)main"
function GetMetaData {
if (Test-Path Variable:MetadataUri) {
diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml
index 0d7daceca24d..23149807912d 100644
--- a/eng/jacoco-test-coverage/pom.xml
+++ b/eng/jacoco-test-coverage/pom.xml
@@ -224,7 +224,7 @@
com.azure
azure-messaging-servicebus
- 7.2.3
+ 7.3.0-beta.3
com.azure
@@ -249,22 +249,22 @@
com.azure
azure-security-keyvault-administration
- 4.0.0
+ 4.1.0-beta.1
com.azure
azure-security-keyvault-certificates
- 4.2.0
+ 4.3.0-beta.1
com.azure
azure-security-keyvault-keys
- 4.3.0
+ 4.4.0-beta.1
com.azure
azure-security-keyvault-secrets
- 4.3.0
+ 4.4.0-beta.1
com.azure
diff --git a/eng/mgmt/pull-request.py b/eng/mgmt/pull-request.py
index 96ed368ccc7f..b92c3b2c7ceb 100644
--- a/eng/mgmt/pull-request.py
+++ b/eng/mgmt/pull-request.py
@@ -12,7 +12,7 @@ def create_pull_request(owner, repo, title, head, auth = os.environ.get("GITHUB_
auth = (auth, ""),
json = {
"title": title,
- "base": "master",
+ "base": "main",
"head": head,
}
)
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index f03bf031f4d8..4d233f83b018 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -94,7 +94,7 @@ com.azure:azure-messaging-eventhubs;5.8.0;5.9.0-beta.1
com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.8.0;1.9.0-beta.1
com.azure:azure-messaging-eventhubs-track1-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-messaging-eventhubs-track2-perf;1.0.0-beta.1;1.0.0-beta.1
-com.azure:azure-messaging-servicebus;7.2.2;7.2.3
+com.azure:azure-messaging-servicebus;7.2.3;7.3.0-beta.3
com.azure:azure-messaging-servicebus-track1-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-messaging-servicebus-track2-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-messaging-webpubsub;1.0.0-beta.2;1.0.0-beta.3
@@ -107,12 +107,12 @@ com.azure:azure-search-documents;11.4.0;11.5.0-beta.1
com.azure:azure-search-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-security-attestation;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-security-confidentialledger;1.0.0-beta.2;1.0.0-beta.3
-com.azure:azure-security-keyvault-administration;4.0.0-beta.7;4.0.0
-com.azure:azure-security-keyvault-certificates;4.1.8;4.2.0
+com.azure:azure-security-keyvault-administration;4.0.0;4.1.0-beta.1
+com.azure:azure-security-keyvault-certificates;4.2.0;4.3.0-beta.1
com.azure:azure-security-keyvault-jca;1.0.0-beta.7;1.0.0-beta.8
com.azure:azure-security-test-keyvault-jca;1.0.0;1.0.0
-com.azure:azure-security-keyvault-keys;4.2.8;4.3.0
-com.azure:azure-security-keyvault-secrets;4.2.8;4.3.0
+com.azure:azure-security-keyvault-keys;4.3.0;4.4.0-beta.1
+com.azure:azure-security-keyvault-secrets;4.3.0;4.4.0-beta.1
com.azure:azure-security-keyvault-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-sdk-template;1.2.1-beta.2;1.2.1-beta.16
com.azure:azure-spring-data-cosmos;3.8.0;3.9.0-beta.1
@@ -139,8 +139,8 @@ com.microsoft.azure:spring-cloud-azure-feature-management;1.3.0;1.4.0-beta.1
com.microsoft.azure:spring-cloud-starter-azure-appconfiguration-config;1.3.0;1.4.0-beta.1
com.azure.spring:azure-spring-cloud-appconfiguration-config-web;2.0.0-beta.1;2.0.0-beta.2
com.azure.spring:azure-spring-cloud-appconfiguration-config;2.0.0-beta.1;2.0.0-beta.2
-com.azure.spring:azure-spring-cloud-feature-management-web;2.0.0-beta.1;2.0.0-beta.2
-com.azure.spring:azure-spring-cloud-feature-management;2.0.0-beta.1;2.0.0-beta.2
+com.azure.spring:azure-spring-cloud-feature-management-web;2.0.0-beta.1;2.0.0
+com.azure.spring:azure-spring-cloud-feature-management;2.0.0-beta.1;2.0.0
com.azure.spring:azure-spring-cloud-starter-appconfiguration-config;2.0.0-beta.1;2.0.0-beta.2
com.azure.spring:azure-identity-spring;1.5.0;1.6.0-beta.1
com.azure.spring:azure-spring-boot-starter-active-directory-b2c;3.5.0;3.6.0-beta.1
@@ -224,7 +224,7 @@ com.azure.resourcemanager:azure-resourcemanager-costmanagement;1.0.0-beta.2;1.0.
com.azure.resourcemanager:azure-resourcemanager-recoveryservices;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-kusto;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0-beta.2;1.0.0-beta.3
-com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.0.0-beta.1;1.0.0-beta.2
@@ -242,7 +242,7 @@ com.azure.resourcemanager:azure-resourcemanager-changeanalysis;1.0.0;1.1.0-beta.
com.azure.resourcemanager:azure-resourcemanager-delegatednetwork;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-synapse;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-resourcehealth;1.0.0-beta.1;1.0.0-beta.2
-com.azure.resourcemanager:azure-resourcemanager-databricks;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-databricks;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-databoxedge;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-frontdoor;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-mixedreality;1.0.0-beta.1;1.0.0-beta.2
@@ -300,6 +300,7 @@ com.azure.resourcemanager:azure-resourcemanager-maps;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-containerregistry-generated;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/sdk/appconfiguration/azure-data-appconfiguration-perf/src/main/java/com/azure/data/appconfiguration/perf/ListConfigurationSettingsTest.java b/sdk/appconfiguration/azure-data-appconfiguration-perf/src/main/java/com/azure/data/appconfiguration/perf/ListConfigurationSettingsTest.java
index 166bfa12a425..03ae9c519dbf 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration-perf/src/main/java/com/azure/data/appconfiguration/perf/ListConfigurationSettingsTest.java
+++ b/sdk/appconfiguration/azure-data-appconfiguration-perf/src/main/java/com/azure/data/appconfiguration/perf/ListConfigurationSettingsTest.java
@@ -20,9 +20,9 @@ public class ListConfigurationSettingsTest extends ServiceTest
com.azure
azure-security-keyvault-secrets
- 4.2.8
+ 4.3.0
com.azure
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md
index 4a8e2bc1640e..4b48f2deb03f 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md
@@ -1,7 +1,10 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
+## 2.0.0 (2021-06-21)
+### Breaking Change
+
+- Changed package path to `com.azure.spring.cloud.feature.manager`
## 2.0.0-beta.1 (2021-05-04)
### Breaking Changes
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml
index 9a126c2be3f1..55e3a2b6058d 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml
@@ -11,7 +11,7 @@
com.azure.spring
azure-spring-cloud-feature-management-web
- 2.0.0-beta.2
+ 2.0.0
Azure Spring Cloud Feature Management Web
Adds Feature Management into Spring Web
@@ -41,7 +41,7 @@
com.azure.spring
azure-spring-cloud-feature-management
- 2.0.0-beta.2
+ 2.0.0
+ com.azure.spring:azure-spring-cloud-feature-management:[2.0.0]
javax.servlet:javax.servlet-api:[4.0.1]
org.springframework:spring-web:[5.3.7]
org.springframework:spring-webmvc:[5.3.7]
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md
index e0531bbdc3b9..1f897a80114b 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md
@@ -1,7 +1,12 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
+## 2.0.0 (2021-06-21)
+- Updated TimeWindowFilter to support ISO-8601
+
+### Breaking Change
+
+- Changed package path to `com.azure.spring.cloud.feature.manager`
## 2.0.0-beta.1 (2021-05-04)
### Breaking Changes
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml b/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml
index 1b07cd1d0e46..24c8d3a5daa2 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml
@@ -11,7 +11,7 @@
com.azure.spring
azure-spring-cloud-feature-management
- 2.0.0-beta.2
+ 2.0.0
Azure Spring Cloud Feature Management
Adds Feature Management into Spring
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java b/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java
index b2eb15d4fc03..f312f94a6917 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java
@@ -7,6 +7,8 @@
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
+import java.time.format.DateTimeParseException;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@@ -42,14 +44,25 @@ public boolean evaluate(FeatureFilterEvaluationContext context) {
TIME_WINDOW_FILTER_SETTING_END);
return false;
}
+
+ ZonedDateTime startTime = null;
+ ZonedDateTime endTime = null;
- ZonedDateTime startTime = StringUtils.hasText(start)
- ? ZonedDateTime.parse(start, DateTimeFormatter.RFC_1123_DATE_TIME)
- : null;
- ZonedDateTime endTime = StringUtils.hasText(end)
- ? ZonedDateTime.parse(end, DateTimeFormatter.RFC_1123_DATE_TIME)
- : null;
-
+ try {
+ startTime = StringUtils.hasText(start)
+ ? ZonedDateTime.parse(start, DateTimeFormatter.ISO_DATE_TIME)
+ : null;
+ endTime = StringUtils.hasText(end)
+ ? ZonedDateTime.parse(end, DateTimeFormatter.ISO_DATE_TIME)
+ : null;
+ } catch (DateTimeParseException e) {
+ startTime = StringUtils.hasText(start)
+ ? ZonedDateTime.parse(start, DateTimeFormatter.RFC_1123_DATE_TIME)
+ : null;
+ endTime = StringUtils.hasText(end)
+ ? ZonedDateTime.parse(end, DateTimeFormatter.RFC_1123_DATE_TIME)
+ : null;
+ }
return (!StringUtils.hasText(start) || now.isAfter(startTime))
&& (!StringUtils.hasText(end) || now.isBefore(endTime));
}
diff --git a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md
index e183ace373c5..44262acabe46 100644
--- a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
+## 2.0.0-beta.2 (2021-06-21)
+### Breaking Changes
+- Changed package path to `com.azure.spring.cloud.config` and `com.azure.spring.cloud.feature.manager`
## 2.0.0-beta.1 (2021-05-04)
diff --git a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md
index fbdb0a8b2327..8b87447ee76c 100644
--- a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md
+++ b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md
@@ -21,7 +21,7 @@ There are two libraries that can be used azure-spring-cloud-appconfiguration-con
com.azure.spring
azure-spring-cloud-appconfiguration-config
- 1.2.8-beta.1
+ 2.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -33,7 +33,7 @@ or
com.azure.spring
azure-spring-cloud-appconfiguration-config-web
- 1.2.8-beta.1
+ 2.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -76,6 +76,7 @@ Name | Description | Required | Default
---|---|---|---
spring.cloud.azure.appconfiguration.stores[0].monitoring.enabled | Whether the configurations and feature flags will be re-loaded if a change is detected. | No | false
spring.cloud.azure.appconfiguration.stores[0].monitoring.watch-interval | Amount of time, of type Duration, configurations are stored before a check can occur. | No | 30s
+spring.cloud.azure.appconfiguration.stores[0].monitoring.feature-flags.watch-interval | Amount of time, of type Duration, feature flags are stored before a check can occur. | No | 30s
spring.cloud.azure.appconfiguration.stores[0].monitoring.triggers[0].key | A key that is watched for change via etag. If a change is detected on the key then a refresh of all configurations will be triggered. | Yes (If monitoring enabled) | null
spring.cloud.azure.appconfiguration.stores[0].monitoring.triggers[0].label | The label of the key that is being watched for etag changes. | No | \0
spring.cloud.azure.appconfiguration.stores[0].monitoring.push-notification.primary-token.name | The name of a token used with Event Hub to trigger push based refresh. | No | null
@@ -89,7 +90,6 @@ Name | Description | Required | Default
---|---|---|---
spring.cloud.azure.appconfiguration.stores[0].feature-flags.enable | Whether feature flags are loaded from the config store. | No | false
spring.cloud.azure.appconfiguration.stores[0].feature-flags.label-filter | The label used to indicate which feature flags will be loaded. | No | \0
-spring.cloud.azure.appconfiguration.stores[0].feature-flags.watch-interval | Amount of time, of type Duration, feature flags are stored before a check can occur. | No | 30s
### Advanced usage
diff --git a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml
index af9868fe6d0c..6cdadd4df4af 100644
--- a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml
+++ b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml
@@ -23,7 +23,7 @@
com.azure.spring
azure-spring-cloud-feature-management-web
- 2.0.0-beta.2
+ 2.0.0
diff --git a/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml b/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml
index 879c78794235..a954d1d79641 100644
--- a/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml
+++ b/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml
@@ -77,7 +77,7 @@
com.azure
azure-security-keyvault-secrets
- 4.2.8
+ 4.3.0
com.azure
diff --git a/sdk/boms/azure-spring-boot-bom/pom.xml b/sdk/boms/azure-spring-boot-bom/pom.xml
index eb714cf87573..3b7aeaa41bb4 100644
--- a/sdk/boms/azure-spring-boot-bom/pom.xml
+++ b/sdk/boms/azure-spring-boot-bom/pom.xml
@@ -41,7 +41,7 @@
${project.version}
1.17.0
1.3.1
- 4.2.8
+ 4.3.0
1.9.1
0.0.7
3.8.0
diff --git a/sdk/communication/azure-communication-callingserver/README.md b/sdk/communication/azure-communication-callingserver/README.md
index 8b5d665635f2..761a89dee5cc 100644
--- a/sdk/communication/azure-communication-callingserver/README.md
+++ b/sdk/communication/azure-communication-callingserver/README.md
@@ -46,7 +46,7 @@ Based on if the Contoso app join a call or not, APIs can be divided into two cat
You can provide the connection string using the connectionString() function of `CallingServerClientBuilder`. Once you initialized a `CallingServerClient` class, you can do the different server calling operations.
-
+
```java
// Your connectionString retrieved from your Azure Communication Service
String connectionString = "endpoint=https://.communication.azure.com/;accesskey=";
@@ -60,22 +60,21 @@ CallingServerClient callingServerClient = builder.buildClient();
### Create call, Add participant and Hangup a call
#### Create a Call:
-
+
```java
CommunicationIdentifier source = new CommunicationUserIdentifier("");
CommunicationIdentifier firstCallee = new CommunicationUserIdentifier("");
CommunicationIdentifier secondCallee = new CommunicationUserIdentifier("");
-CommunicationIdentifier[] targets = new CommunicationIdentifier[] { firstCallee, secondCallee };
+List targets = Arrays.asList(firstCallee, secondCallee);
String callbackUri = "";
-MediaType[] requestedMediaTypes = new MediaType[] { MediaType.AUDIO, MediaType.VIDEO };
+List requestedMediaTypes = Arrays.asList(MediaType.AUDIO, MediaType.VIDEO);
-EventSubscriptionType[] requestedCallEvents = new EventSubscriptionType[] {
+List requestedCallEvents = Arrays.asList(
EventSubscriptionType.DTMF_RECEIVED,
- EventSubscriptionType.PARTICIPANTS_UPDATED
-};
+ EventSubscriptionType.PARTICIPANTS_UPDATED);
CreateCallOptions createCallOptions = new CreateCallOptions(
callbackUri,
@@ -86,14 +85,14 @@ CallConnection callConnection = callingServerClient.createCallConnection(source,
```
#### Add a participant to a Call:
-
+
```java
CommunicationIdentifier thirdCallee = new CommunicationUserIdentifier("");
callConnection.addParticipant(thirdCallee, "ACS User 3", "");
```
#### Hangup a Call:
-
+
```java
callConnection.hangup();
```
@@ -134,6 +133,16 @@ serverCall.stopRecording(recordingId);
CallRecordingStateResult callRecordingStateResult = serverCall.getRecordingState(recordingId);
```
+#### Download a Recording into a file:
+
+```java
+callingServerClient.downloadTo(
+ recordingUrl,
+ Paths.get(filePath),
+ null,
+ true
+ );
+```
### Play Audio in Call
#### Play Audio:
diff --git a/sdk/communication/azure-communication-callingserver/pom.xml b/sdk/communication/azure-communication-callingserver/pom.xml
index e452b3940a8e..5c2b24f2638e 100644
--- a/sdk/communication/azure-communication-callingserver/pom.xml
+++ b/sdk/communication/azure-communication-callingserver/pom.xml
@@ -124,7 +124,7 @@
-
+
org.jacoco
jacoco-maven-plugin
@@ -134,6 +134,15 @@
com/azure/communication/callingserver/*.class
+
+
+ coverage-report
+ verify
+
+ report
+
+
+
org.apache.maven.plugins
@@ -149,6 +158,22 @@
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.added
+ com.azure.core.util.HttpClientOptions
+ Transitive from Core. Not our problem
+
+
+
+
+
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnection.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnection.java
index add9b7e100c1..99c140ad16fa 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnection.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnection.java
@@ -4,6 +4,7 @@
package com.azure.communication.callingserver;
import com.azure.communication.callingserver.models.AddParticipantResult;
+import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.CancelAllMediaOperationsResult;
import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
@@ -45,6 +46,8 @@ public String getCallConnectionId() {
* @param callbackUri call back uri to receive notifications.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -65,6 +68,8 @@ public PlayAudioResult playAudio(
* audio prompts are supported. More specifically, the audio content in the wave file must
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -72,39 +77,6 @@ public PlayAudioResult playAudio(String audioFileUri, PlayAudioOptions playAudio
return callConnectionAsync.playAudioInternal(audioFileUri, playAudioOptions).block();
}
- /**
- * Play audio in a call.
- *
- * @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
- * audio prompts are supported. More specifically, the audio content in the wave file must
- * be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
- * @param loop The flag indicating whether audio file needs to be played in loop or not.
- * @param audioFileId An id for the media in the AudioFileUri, using which we cache the media.
- * @param callbackUri call back uri to receive notifications.
- * @param operationContext The value to identify context of the operation. This is used to co-relate other
- * communications related to this operation
- * @param context A {@link Context} representing the request context.
- * @return the response payload for play audio operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response playAudioWithResponse(
- String audioFileUri,
- boolean loop,
- String audioFileId,
- String callbackUri,
- String operationContext,
- final Context context) {
- return callConnectionAsync
- .playAudioWithResponseInternal(
- audioFileUri,
- loop,
- audioFileId,
- callbackUri,
- operationContext,
- context)
- .block();
- }
-
/**
* Play audio in a call.
*
@@ -113,6 +85,8 @@ public Response playAudioWithResponse(
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -127,6 +101,9 @@ public Response playAudioWithResponse(
/**
* Disconnect the current caller in a group-call or end a p2p-call.
+ *
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void hangup() {
@@ -137,6 +114,8 @@ public void hangup() {
* Disconnect the current caller in a group-call or end a p2p-call.
*
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful hangup request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -149,6 +128,8 @@ public Response hangupWithResponse(final Context context) {
*
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful cancel all media operations request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -162,6 +143,8 @@ public CancelAllMediaOperationsResult cancelAllMediaOperations(String operationC
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful cancel all media operations request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -178,6 +161,8 @@ public Response cancelAllMediaOperationsWithResp
* @param alternateCallerId The phone number to use when adding a phone number participant.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -196,6 +181,8 @@ public AddParticipantResult addParticipant(
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -212,6 +199,8 @@ public Response addParticipantWithResponse(
* Remove a participant from the call.
*
* @param participantId Participant id.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void removeParticipant(String participantId) {
@@ -223,6 +212,8 @@ public void removeParticipant(String participantId) {
*
* @param participantId Participant id.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful remove participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnectionAsync.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnectionAsync.java
index 9aa425bbfdc4..5638660cf0df 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnectionAsync.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnectionAsync.java
@@ -13,6 +13,7 @@
import com.azure.communication.callingserver.implementation.models.CommunicationErrorResponseException;
import com.azure.communication.callingserver.implementation.models.PlayAudioRequest;
import com.azure.communication.callingserver.models.AddParticipantResult;
+import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.CancelAllMediaOperationsResult;
import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
@@ -64,6 +65,8 @@ public String getCallConnectionId() {
* @param callbackUri call back uri to receive notifications.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -83,6 +86,8 @@ public Mono playAudio(
* audio prompts are supported. More specifically, the audio content in the wave file must
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -139,35 +144,6 @@ Mono playAudioInternal(PlayAudioRequest playAudioRequest) {
}
}
- /**
- * Play audio in a call.
- *
- * @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
- * audio prompts are supported. More specifically, the audio content in the wave file must
- * be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
- * @param loop The flag indicating whether audio file needs to be played in loop or not.
- * @param audioFileId An id for the media in the AudioFileUri, using which we cache the media.
- * @param callbackUri call back uri to receive notifications.
- * @param operationContext The value to identify context of the operation. This is used to co-relate other
- * communications related to this operation
- * @return the response payload for play audio operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> playAudioWithResponse(
- String audioFileUri,
- boolean loop,
- String audioFileId,
- String callbackUri,
- String operationContext) {
- return playAudioWithResponseInternal(
- audioFileUri,
- loop,
- audioFileId,
- callbackUri,
- operationContext,
- null);
- }
-
/**
* Play audio in a call.
*
@@ -175,6 +151,8 @@ public Mono> playAudioWithResponse(
* audio prompts are supported. More specifically, the audio content in the wave file must
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -248,6 +226,8 @@ Mono> playAudioWithResponseInternal(
/**
* Hangup a call.
*
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful hangup request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -264,6 +244,8 @@ public Mono hangup() {
/**
* Hangup a call.
*
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful hangup request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -288,6 +270,8 @@ Mono> hangupWithResponse(Context context) {
*
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload of the cancel all media operations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -308,6 +292,8 @@ public Mono cancelAllMediaOperations(String oper
*
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload of the cancel all media operations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -341,6 +327,8 @@ Mono> cancelAllMediaOperationsWithRespo
* @param alternateCallerId The phone number to use when adding a phone number participant.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -369,6 +357,8 @@ public Mono addParticipant(
* @param alternateCallerId The phone number to use when adding a phone number participant.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -406,6 +396,8 @@ Mono> addParticipantWithResponse(
* Remove a participant from the call.
*
* @param participantId Participant id.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful remove participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -423,6 +415,8 @@ public Mono removeParticipant(String participantId) {
* Remove a participant from the call.
*
* @param participantId Participant id.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful remove participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerAsyncClient.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerAsyncClient.java
index d82f0c541b0a..e9c0d3b9815c 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerAsyncClient.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerAsyncClient.java
@@ -11,6 +11,7 @@
import com.azure.communication.callingserver.implementation.converters.JoinCallRequestConverter;
import com.azure.communication.callingserver.implementation.models.CommunicationErrorResponseException;
import com.azure.communication.callingserver.implementation.models.CreateCallRequest;
+import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.CreateCallOptions;
import com.azure.communication.callingserver.models.JoinCallOptions;
import com.azure.communication.callingserver.models.ParallelDownloadOptions;
@@ -34,6 +35,7 @@
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.HashSet;
+import java.util.List;
import java.util.Objects;
import java.util.Set;
@@ -75,6 +77,8 @@ public final class CallingServerAsyncClient {
* @param source The source of the call.
* @param targets The targets of the call.
* @param createCallOptions The call Options.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful CreateCallConnection request.
*
* {@codesnippet com.azure.communication.callingserver.CallingServerAsyncClient.create.call.connection.async}
@@ -82,7 +86,7 @@ public final class CallingServerAsyncClient {
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono createCallConnection(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions) {
try {
Objects.requireNonNull(source, "'source' cannot be null.");
@@ -103,12 +107,14 @@ public Mono createCallConnection(
* @param source The source of the call.
* @param targets The targets of the call.
* @param createCallOptions The call Options.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful CreateCallConnection request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> createCallConnectionWithResponse(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions) {
try {
Objects.requireNonNull(source, "'source' cannot be null.");
@@ -125,7 +131,7 @@ public Mono> createCallConnectionWithResponse(
Mono createCallConnectionInternal(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions) {
try {
Objects.requireNonNull(source, "'source' cannot be null.");
@@ -142,7 +148,7 @@ Mono createCallConnectionInternal(
Mono> createCallConnectionWithResponseInternal(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions,
Context context) {
try {
@@ -168,10 +174,12 @@ Mono> createCallConnectionWithResponseInternal(
* @param serverCallId The server call id.
* @param source to Join Call.
* @param joinCallOptions join call options.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful join request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono join(
+ public Mono joinCall(
String serverCallId,
CommunicationIdentifier source,
JoinCallOptions joinCallOptions) {
@@ -193,10 +201,12 @@ public Mono join(
* @param serverCallId The server call id.
* @param source to Join Call.
* @param joinCallOptions join call options.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful join request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono>joinWithResponse(
+ public Mono> joinCallWithResponse(
String serverCallId,
CommunicationIdentifier source,
JoinCallOptions joinCallOptions) {
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClient.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClient.java
index 1ab8665d967e..723ee3949c9f 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClient.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClient.java
@@ -3,6 +3,7 @@
package com.azure.communication.callingserver;
+import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.CreateCallOptions;
import com.azure.communication.callingserver.models.JoinCallOptions;
import com.azure.communication.callingserver.models.ParallelDownloadOptions;
@@ -16,6 +17,7 @@
import java.io.OutputStream;
import java.nio.file.Path;
+import java.util.List;
import java.util.Objects;
@@ -44,6 +46,8 @@ public final class CallingServerClient {
* @param source The source of the call.
* @param targets The targets of the call.
* @param createCallOptions The call Options.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful CreateCallConnection request.
*
* {@codesnippet com.azure.communication.callingserver.CallingServerClient.create.call.connection}
@@ -51,7 +55,7 @@ public final class CallingServerClient {
@ServiceMethod(returns = ReturnType.SINGLE)
public CallConnection createCallConnection(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions) {
return callingServerAsyncClient.createCallConnectionInternal(source, targets, createCallOptions).block();
}
@@ -63,12 +67,14 @@ public CallConnection createCallConnection(
* @param targets The targets of the call.
* @param createCallOptions The call Options.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful CreateCallConnection request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createCallConnectionWithResponse(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions,
final Context context) {
return callingServerAsyncClient
@@ -81,10 +87,12 @@ public Response createCallConnectionWithResponse(
* @param serverCallId The server call id.
* @param source of Join Call request.
* @param joinCallOptions to Join Call.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return CallConnection for a successful Join request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public CallConnection join(
+ public CallConnection joinCall(
String serverCallId,
CommunicationIdentifier source,
JoinCallOptions joinCallOptions) {
@@ -97,11 +105,13 @@ public CallConnection join(
* @param serverCallId The server call id.
* @param source of Join Call request.
* @param joinCallOptions to Join Call.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @param context A {@link Context} representing the request context.
* @return response for a successful Join request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response joinWithResponse(
+ public Response joinCallWithResponse(
String serverCallId,
CommunicationIdentifier source,
JoinCallOptions joinCallOptions,
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClientBuilder.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClientBuilder.java
index 5c36aeefc8b6..a4e369fbdf5e 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClientBuilder.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerClientBuilder.java
@@ -90,7 +90,7 @@ public CallingServerClientBuilder pipeline(HttpPipeline pipeline) {
* @return The updated {@link CallingServerClientBuilder} object.
* @throws NullPointerException If {@code tokenCredential} is null.
*/
- public CallingServerClientBuilder credential(TokenCredential tokenCredential) {
+ CallingServerClientBuilder credential(TokenCredential tokenCredential) {
this.tokenCredential = Objects.requireNonNull(tokenCredential, "'tokenCredential' cannot be null.");
return this;
}
@@ -103,7 +103,7 @@ public CallingServerClientBuilder credential(TokenCredential tokenCredential) {
* @return The updated {@link CallingServerClientBuilder} object.
* @throws NullPointerException If {@code keyCredential} is null.
*/
- public CallingServerClientBuilder credential(AzureKeyCredential keyCredential) {
+ CallingServerClientBuilder credential(AzureKeyCredential keyCredential) {
this.azureKeyCredential = Objects.requireNonNull(keyCredential, "'keyCredential' cannot be null.");
return this;
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerServiceVersion.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerServiceVersion.java
index bfa102b34da9..8398f77f9eea 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerServiceVersion.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallingServerServiceVersion.java
@@ -9,8 +9,7 @@
* The versions of CallingServer Service supported by this client library.
*/
public enum CallingServerServiceVersion implements ServiceVersion {
- V2021_06_015("2021-06-15"),
- V2021_06_15_preview("2021-06-15-preview");
+ V2021_06_15_PREVIEW("2021-06-15-preview");
private final String version;
@@ -32,6 +31,6 @@ public String getVersion() {
* @return the latest {@link CallingServerServiceVersion}
*/
public static CallingServerServiceVersion getLatest() {
- return V2021_06_15_preview;
+ return V2021_06_15_PREVIEW;
}
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ContentDownloader.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ContentDownloader.java
index 6ee8317fe7f1..c243906e7b25 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ContentDownloader.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ContentDownloader.java
@@ -5,7 +5,6 @@
import com.azure.communication.callingserver.implementation.Constants;
import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.ParallelDownloadOptions;
-import com.azure.communication.callingserver.models.ProgressReporter;
import com.azure.core.http.HttpMethod;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpRange;
@@ -92,7 +91,7 @@ Mono> downloadToFileWithResponse(
return downloadFirstChunk(parallelDownloadOptions, downloadFunc)
.flatMap(setupTuple2 -> {
long newCount = setupTuple2.getT1();
- int numChunks = calculateNumBlocks(newCount, parallelDownloadOptions.getBlockSizeLong());
+ int numChunks = calculateNumBlocks(newCount, parallelDownloadOptions.getBlockSize());
// In case it is an empty blob, this ensures we still actually perform a download operation.
numChunks = numChunks == 0 ? 1 : numChunks;
@@ -205,7 +204,7 @@ private HttpRequest getHttpRequest(String sourceEndpoint, HttpRange httpRange) {
private Mono>>> downloadFirstChunk(
ParallelDownloadOptions parallelDownloadOptions,
Function>>> downloader) {
- return downloader.apply(new HttpRange(0, parallelDownloadOptions.getBlockSizeLong()))
+ return downloader.apply(new HttpRange(0, parallelDownloadOptions.getBlockSize()))
.subscribeOn(Schedulers.boundedElastic())
.flatMap(response -> {
// Extract the total length of the blob from the contentRange header. e.g. "bytes 1-6/7"
@@ -243,8 +242,8 @@ private Flux downloadChunk(
}
// Calculate whether we need a full chunk or something smaller because we are at the end.
- long modifier = chunkNum.longValue() * parallelDownloadOptions.getBlockSizeLong();
- long chunkSizeActual = Math.min(parallelDownloadOptions.getBlockSizeLong(),
+ long modifier = chunkNum.longValue() * parallelDownloadOptions.getBlockSize();
+ long chunkSizeActual = Math.min(parallelDownloadOptions.getBlockSize(),
newCount - modifier);
HttpRange chunkRange = new HttpRange(modifier, chunkSizeActual);
@@ -269,7 +268,7 @@ private static Mono writeBodyToFile(
parallelDownloadOptions.getProgressReceiver(), progressLock, totalProgress);
// Write to the file.
- return FluxUtil.writeFile(data, file, chunkNum * parallelDownloadOptions.getBlockSizeLong());
+ return FluxUtil.writeFile(data, file, chunkNum * parallelDownloadOptions.getBlockSize());
}
void downloadToFileCleanup(AsynchronousFileChannel channel, Path filePath, SignalType signalType) {
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReporter.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ProgressReporter.java
similarity index 98%
rename from sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReporter.java
rename to sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ProgressReporter.java
index 79a5e62f2e13..de8eac668554 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReporter.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ProgressReporter.java
@@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-package com.azure.communication.callingserver.models;
+package com.azure.communication.callingserver;
+import com.azure.communication.callingserver.models.ProgressReceiver;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -13,7 +14,7 @@
/**
* {@code ProgressReporter} offers a convenient way to add progress tracking to a given Flux.
*/
-public final class ProgressReporter {
+final class ProgressReporter {
private abstract static class ProgressReporterImpl implements ProgressReceiver {
long blockProgress;
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCall.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCall.java
index a572ded3d9b9..35df8e237058 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCall.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCall.java
@@ -5,6 +5,7 @@
import com.azure.communication.callingserver.models.AddParticipantResult;
import com.azure.communication.callingserver.models.CallRecordingProperties;
+import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
import com.azure.communication.callingserver.models.StartCallRecordingResult;
@@ -41,6 +42,8 @@ public String getServerCallId() {
* @param alternateCallerId The phone number to use when adding a phone number participant.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -61,6 +64,8 @@ public AddParticipantResult addParticipant(
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -93,6 +98,8 @@ public void removeParticipant(String participantId) {
*
* @param participantId Participant id.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful remove participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -104,6 +111,8 @@ public Response removeParticipantWithResponse(String participantId, final
* Start recording
*
* @param recordingStateCallbackUri The uri to send state change callbacks.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result for a successful start recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -116,6 +125,8 @@ public StartCallRecordingResult startRecording(String recordingStateCallbackUri)
*
* @param recordingStateCallbackUri The uri to send state change callbacks.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result for a successful start recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -129,6 +140,8 @@ public Response startRecordingWithResponse(
* Stop recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void stopRecording(String recordingId) {
@@ -140,6 +153,8 @@ public void stopRecording(String recordingId) {
*
* @param recordingId The recording id to stop.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful stop recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -151,6 +166,8 @@ public Response stopRecordingWithResponse(String recordingId, final Contex
* Pause recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void pauseRecording(String recordingId) {
@@ -162,6 +179,8 @@ public void pauseRecording(String recordingId) {
*
* @param recordingId The recording id to stop.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful pause recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -173,6 +192,8 @@ public Response pauseRecordingWithResponse(String recordingId, final Conte
* Resume recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void resumeRecording(String recordingId) {
@@ -184,6 +205,8 @@ public void resumeRecording(String recordingId) {
*
* @param recordingId The recording id to stop.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful resume recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -195,6 +218,8 @@ public Response resumeRecordingWithResponse(String recordingId, final Cont
* Get recording state
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful get recording state request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -207,6 +232,8 @@ public CallRecordingProperties getRecordingState(String recordingId) {
*
* @param recordingId The recording id to stop.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful get recording state request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -224,6 +251,8 @@ public Response getRecordingStateWithResponse(String re
* @param callbackUri The callback Uri to receive PlayAudio status notifications.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -242,6 +271,8 @@ public PlayAudioResult playAudio(
* audio prompts are supported. More specifically, the audio content in the wave file must
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -249,35 +280,6 @@ public PlayAudioResult playAudio(String audioFileUri, PlayAudioOptions playAudio
return serverCallAsync.playAudioInternal(audioFileUri, playAudioOptions).block();
}
- /**
- * Play audio in a call.
- *
- * @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
- * audio prompts are supported. More specifically, the audio content in the wave file must
- * be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
- * @param audioFileId An id for the media in the AudioFileUri, using which we cache the media.
- * @param callbackUri The callback Uri to receive PlayAudio status notifications.
- * @param operationContext The value to identify context of the operation. This is used to co-relate other
- * communications related to this operation
- * @param context A {@link Context} representing the request context.
- * @return the response payload for play audio operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response playAudioWithResponse(
- String audioFileUri,
- String audioFileId,
- String callbackUri,
- String operationContext,
- final Context context) {
- return serverCallAsync
- .playAudioWithResponseInternal(
- audioFileUri,
- audioFileId,
- callbackUri,
- operationContext,
- context).block();
- }
-
/**
* Play audio in a call.
*
@@ -286,6 +288,8 @@ public Response playAudioWithResponse(
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
* @param context A {@link Context} representing the request context.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCallAsync.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCallAsync.java
index 43e6af1eabea..d28cdafea76b 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCallAsync.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/ServerCallAsync.java
@@ -13,6 +13,7 @@
import com.azure.communication.callingserver.implementation.models.StartCallRecordingRequest;
import com.azure.communication.callingserver.models.AddParticipantResult;
import com.azure.communication.callingserver.models.CallRecordingProperties;
+import com.azure.communication.callingserver.models.CallingServerErrorException;
import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
import com.azure.communication.callingserver.models.StartCallRecordingResult;
@@ -63,6 +64,8 @@ public String getServerCallId() {
* @param alternateCallerId The phone number to use when adding a phone number participant.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -94,6 +97,8 @@ public Mono addParticipant(
* @param alternateCallerId The phone number to use when adding a phone number participant.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful add participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -139,6 +144,8 @@ Mono> addParticipantWithResponse(
* Remove a participant from the call.
*
* @param participantId Participant id.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful remove participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -156,6 +163,8 @@ public Mono removeParticipant(String participantId) {
* Remove a participant from the call.
*
* @param participantId Participant id.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful remove participant request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -181,6 +190,8 @@ Mono> removeParticipantWithResponse(String participantId, Context
*
* @param recordingStateCallbackUri The uri to send state change callbacks.
* @throws InvalidParameterException is recordingStateCallbackUri is absolute uri.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful start recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -207,6 +218,8 @@ public Mono startRecording(String recordingStateCallba
*
* @param recordingStateCallbackUri The uri to send state change callbacks.
* @throws InvalidParameterException is recordingStateCallbackUri is absolute uri.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful start recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -243,6 +256,8 @@ Mono> startRecordingWithResponse(
* Stop recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful stop recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -260,6 +275,8 @@ public Mono stopRecording(String recordingId) {
* Stop recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful stop recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -284,6 +301,8 @@ Mono> stopRecordingWithResponse(String recordingId, Context conte
* Pause recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful pause recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -301,6 +320,8 @@ public Mono pauseRecording(String recordingId) {
* Pause recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful pause recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -325,6 +346,8 @@ Mono> pauseRecordingWithResponse(String recordingId, Context cont
* Resume recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful resume recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -342,6 +365,8 @@ public Mono resumeRecording(String recordingId) {
* Resume recording
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful resume recording request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -366,6 +391,8 @@ Mono> resumeRecordingWithResponse(String recordingId, Context con
* Get recording state
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful get recording state request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -383,6 +410,8 @@ public Mono getRecordingState(String recordingId) {
* Get recording state
*
* @param recordingId The recording id to stop.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for a successful get recording state request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -415,6 +444,8 @@ Mono> getRecordingStateWithResponse(String rec
* @param callbackUri The callback Uri to receive PlayAudio status notifications.
* @param operationContext The value to identify context of the operation. This is used to co-relate other
* communications related to this operation
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -433,6 +464,8 @@ public Mono playAudio(
* audio prompts are supported. More specifically, the audio content in the wave file must
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -492,27 +525,6 @@ Mono playAudioInternal(PlayAudioRequest playAudioRequest) {
}
}
- /**
- * Play audio in a call.
- *
- * @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
- * audio prompts are supported. More specifically, the audio content in the wave file must
- * be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
- * @param audioFileId Tne id for the media in the AudioFileUri, using which we cache the media resource.
- * @param callbackUri The callback Uri to receive PlayAudio status notifications.
- * @param operationContext The value to identify context of the operation. This is used to co-relate other
- * communications related to this operation
- * @return the response payload for play audio operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> playAudioWithResponse(
- String audioFileUri,
- String audioFileId,
- String callbackUri,
- String operationContext) {
- return playAudioWithResponseInternal(audioFileUri, audioFileId, callbackUri, operationContext, null);
- }
-
/**
* Play audio in a call.
*
@@ -520,6 +532,8 @@ public Mono> playAudioWithResponse(
* audio prompts are supported. More specifically, the audio content in the wave file must
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
* @param playAudioOptions Options for play audio.
+ * @throws CallingServerErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response payload for play audio operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/CallConnectionRequestConverter.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/CallConnectionRequestConverter.java
index 02b870911de1..b3ec70ff82d9 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/CallConnectionRequestConverter.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/CallConnectionRequestConverter.java
@@ -10,8 +10,6 @@
import com.azure.communication.callingserver.models.MediaType;
import com.azure.communication.common.CommunicationIdentifier;
-import java.util.ArrayList;
-import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
@@ -26,16 +24,16 @@ public final class CallConnectionRequestConverter {
*/
public static CreateCallRequest convert(
CommunicationIdentifier source,
- CommunicationIdentifier[] targets,
+ List targets,
CreateCallOptions createCallOptions) {
- if (source == null || targets == null || targets.length == 0) {
+ if (source == null || targets == null || targets.size() == 0) {
return null;
}
CreateCallRequest createCallRequest =
new CreateCallRequest()
.setSource(CommunicationIdentifierConverter.convert(source))
- .setTargets(new ArrayList<>(Arrays.asList(targets))
+ .setTargets(targets
.stream()
.map(CommunicationIdentifierConverter::convert)
.collect(Collectors.toList()));
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/JoinCallRequestConverter.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/JoinCallRequestConverter.java
index 22f8a1f30602..4ee6108841ec 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/JoinCallRequestConverter.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/JoinCallRequestConverter.java
@@ -4,14 +4,10 @@
package com.azure.communication.callingserver.implementation.converters;
import com.azure.communication.callingserver.implementation.models.JoinCallRequest;
-import com.azure.communication.callingserver.models.EventSubscriptionType;
import com.azure.communication.callingserver.models.JoinCallOptions;
-import com.azure.communication.callingserver.models.MediaType;
import com.azure.communication.common.CommunicationIdentifier;
import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
/**
* A converter for {@link JoinCallRequest}
@@ -35,15 +31,8 @@ public static JoinCallRequest convert(CommunicationIdentifier source, JoinCallOp
joinCallRequest.setSubject(joinCallOptions.getSubject());
joinCallRequest.setCallbackUri(joinCallOptions.getCallbackUri());
-
- List requestedModalities = new ArrayList<>();
- Collections.addAll(requestedModalities, joinCallOptions.getRequestedMediaTypes());
- joinCallRequest.setRequestedMediaTypes(requestedModalities);
-
- List requestedCallEvents = new ArrayList<>();
- Collections.addAll(requestedCallEvents, joinCallOptions.getRequestedCallEvents());
- joinCallRequest.setRequestedCallEvents(requestedCallEvents);
-
+ joinCallRequest.setRequestedMediaTypes(new ArrayList<>(joinCallOptions.getRequestedMediaTypes()));
+ joinCallRequest.setRequestedCallEvents(new ArrayList<>(joinCallOptions.getRequestedCallEvents()));
return joinCallRequest;
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/AddParticipantResultEventInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/AddParticipantResultEventInternal.java
index b4e95f3ea95d..db5b23f241c5 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/AddParticipantResultEventInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/AddParticipantResultEventInternal.java
@@ -26,7 +26,7 @@ public final class AddParticipantResultEventInternal {
/*
* The status of the operation
*/
- @JsonProperty(value = "status")
+ @JsonProperty(value = "status", required = true)
private OperationStatus status;
/**
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallConnectionStateChangedEventInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallConnectionStateChangedEventInternal.java
index 3e29101ece8f..a9fc9dde843b 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallConnectionStateChangedEventInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallConnectionStateChangedEventInternal.java
@@ -26,7 +26,7 @@ public final class CallConnectionStateChangedEventInternal {
/*
* The call connection state.
*/
- @JsonProperty(value = "callConnectionState")
+ @JsonProperty(value = "callConnectionState", required = true)
private CallConnectionState callConnectionState;
/**
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallParticipantInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallParticipantInternal.java
index 77f6cf0adbc7..f6bc1a7fa0ee 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallParticipantInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallParticipantInternal.java
@@ -25,8 +25,8 @@ public final class CallParticipantInternal {
/*
* Is participant muted
*/
- @JsonProperty(value = "isMuted")
- private Boolean isMuted;
+ @JsonProperty(value = "isMuted", required = true)
+ private boolean isMuted;
/**
* Get the identifier property: Communication identifier of the participant.
@@ -73,7 +73,7 @@ public CallParticipantInternal setParticipantId(String participantId) {
*
* @return the isMuted value.
*/
- public Boolean isMuted() {
+ public boolean isMuted() {
return this.isMuted;
}
@@ -83,7 +83,7 @@ public Boolean isMuted() {
* @param isMuted the isMuted value to set.
* @return the CallParticipantInternal object itself.
*/
- public CallParticipantInternal setIsMuted(Boolean isMuted) {
+ public CallParticipantInternal setIsMuted(boolean isMuted) {
this.isMuted = isMuted;
return this;
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingPropertiesInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingPropertiesInternal.java
index be47d9b17f41..d84362e0a54a 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingPropertiesInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingPropertiesInternal.java
@@ -14,7 +14,7 @@ public final class CallRecordingPropertiesInternal {
/*
* The state of the recording
*/
- @JsonProperty(value = "recordingState")
+ @JsonProperty(value = "recordingState", required = true)
private CallRecordingState recordingState;
/**
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingStateChangeEventInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingStateChangeEventInternal.java
index 8501c53e647b..3c0d36fc080e 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingStateChangeEventInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CallRecordingStateChangeEventInternal.java
@@ -21,13 +21,13 @@ public final class CallRecordingStateChangeEventInternal {
/*
* The state of the recording
*/
- @JsonProperty(value = "state")
+ @JsonProperty(value = "state", required = true)
private CallRecordingState state;
/*
* The time of the recording started
*/
- @JsonProperty(value = "startDateTime")
+ @JsonProperty(value = "startDateTime", required = true)
private OffsetDateTime startDateTime;
/*
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CancelAllMediaOperationsResultInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CancelAllMediaOperationsResultInternal.java
index 5b2abaceebda..316a9f1ed1dc 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CancelAllMediaOperationsResultInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/CancelAllMediaOperationsResultInternal.java
@@ -20,7 +20,7 @@ public final class CancelAllMediaOperationsResultInternal {
/*
* The status of the operation
*/
- @JsonProperty(value = "status")
+ @JsonProperty(value = "status", required = true)
private OperationStatus status;
/*
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultEventInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultEventInternal.java
index 9a93fe0027d6..4b5ff93656fb 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultEventInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultEventInternal.java
@@ -26,7 +26,7 @@ public final class PlayAudioResultEventInternal {
/*
* The status of the operation
*/
- @JsonProperty(value = "status")
+ @JsonProperty(value = "status", required = true)
private OperationStatus status;
/**
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultInternal.java
index 186ef3c6dbc6..47e2a20ccccd 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/PlayAudioResultInternal.java
@@ -20,7 +20,7 @@ public final class PlayAudioResultInternal {
/*
* The status of the operation
*/
- @JsonProperty(value = "status")
+ @JsonProperty(value = "status", required = true)
private OperationStatus status;
/*
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ResultInfoInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ResultInfoInternal.java
index d44a25479867..b6a69a059951 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ResultInfoInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ResultInfoInternal.java
@@ -11,71 +11,65 @@
@Fluent
public final class ResultInfoInternal {
/*
- * Gets or sets the result code
- * For synchronous failures, this maps one-to-one with HTTP responses. For
- * asynchronous failures or messages, it is contextual.
+ * The result code associated with the operation.
*/
- @JsonProperty(value = "code")
- private Integer code;
+ @JsonProperty(value = "code", required = true)
+ private int code;
/*
- * Gets or sets the result subcode.
- * The subcode further classifies a failure. For example.
+ * The subcode that further classifies the result.
*/
- @JsonProperty(value = "subcode")
- private Integer subcode;
+ @JsonProperty(value = "subcode", required = true)
+ private int subcode;
/*
- * Gets or sets the message
* The message is a detail explanation of subcode.
*/
@JsonProperty(value = "message")
private String message;
/**
- * Get the code property: Gets or sets the result code For synchronous failures, this maps one-to-one with HTTP
- * responses. For asynchronous failures or messages, it is contextual.
+ * Get the code property: The result code associated with the operation.
*
* @return the code value.
*/
- public Integer getCode() {
+ public int getCode() {
return this.code;
}
/**
- * Set the code property: Gets or sets the result code For synchronous failures, this maps one-to-one with HTTP
- * responses. For asynchronous failures or messages, it is contextual.
+ * Set the code property: The result code associated with the operation.
*
* @param code the code value to set.
* @return the ResultInfoInternal object itself.
*/
- public ResultInfoInternal setCode(Integer code) {
+ public ResultInfoInternal setCode(int code) {
this.code = code;
return this;
}
/**
- * Get the subcode property: Gets or sets the result subcode. The subcode further classifies a failure. For example.
+ * Get the subcode property: The subcode that further classifies the result.
*
* @return the subcode value.
*/
- public Integer getSubcode() {
+ public int getSubcode() {
return this.subcode;
}
/**
- * Set the subcode property: Gets or sets the result subcode. The subcode further classifies a failure. For example.
+ * Set the subcode property: The subcode that further classifies the result.
*
* @param subcode the subcode value to set.
* @return the ResultInfoInternal object itself.
*/
- public ResultInfoInternal setSubcode(Integer subcode) {
+ public ResultInfoInternal setSubcode(int subcode) {
this.subcode = subcode;
return this;
}
/**
- * Get the message property: Gets or sets the message The message is a detail explanation of subcode.
+ * Get the message property: The message is a detail explanation of subcode.
*
* @return the message value.
*/
@@ -84,7 +78,7 @@ public String getMessage() {
}
/**
- * Set the message property: Gets or sets the message The message is a detail explanation of subcode.
+ * Set the message property: The message is a detail explanation of subcode.
*
* @param message the message value to set.
* @return the ResultInfoInternal object itself.
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneInfoInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneInfoInternal.java
index a3d17cd58efc..95f9daec5334 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneInfoInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneInfoInternal.java
@@ -8,47 +8,46 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Gets or sets the tone info. */
+/** The information about the tone. */
@Fluent
public final class ToneInfoInternal {
/*
- * Gets or sets the sequence id. This id can be used to determine if the
- * same tone
- * was played multiple times or if any tones were missed.
+ * The sequence id which can be used to determine if the same tone was
+ * played multiple times or if any tones were missed.
*/
- @JsonProperty(value = "sequenceId")
- private Integer sequenceId;
+ @JsonProperty(value = "sequenceId", required = true)
+ private int sequenceId;
/*
- * Gets or sets the tone detected.
+ * The tone value.
*/
- @JsonProperty(value = "tone")
+ @JsonProperty(value = "tone", required = true)
private ToneValue tone;
/**
- * Get the sequenceId property: Gets or sets the sequence id. This id can be used to determine if the same tone was
- * played multiple times or if any tones were missed.
+ * Get the sequenceId property: The sequence id which can be used to determine if the same tone was played multiple
+ * times or if any tones were missed.
*
* @return the sequenceId value.
*/
- public Integer getSequenceId() {
+ public int getSequenceId() {
return this.sequenceId;
}
/**
- * Set the sequenceId property: Gets or sets the sequence id. This id can be used to determine if the same tone was
- * played multiple times or if any tones were missed.
+ * Set the sequenceId property: The sequence id which can be used to determine if the same tone was played multiple
+ * times or if any tones were missed.
*
* @param sequenceId the sequenceId value to set.
* @return the ToneInfoInternal object itself.
*/
- public ToneInfoInternal setSequenceId(Integer sequenceId) {
+ public ToneInfoInternal setSequenceId(int sequenceId) {
this.sequenceId = sequenceId;
return this;
}
/**
- * Get the tone property: Gets or sets the tone detected.
+ * Get the tone property: The tone value.
*
* @return the tone value.
*/
@@ -57,7 +56,7 @@ public ToneValue getTone() {
}
/**
- * Set the tone property: Gets or sets the tone detected.
+ * Set the tone property: The tone value.
*
* @param tone the tone value to set.
* @return the ToneInfoInternal object itself.
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneReceivedEventInternal.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneReceivedEventInternal.java
index cc0f5897123a..ebb63e9288b5 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneReceivedEventInternal.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/models/ToneReceivedEventInternal.java
@@ -13,7 +13,7 @@ public final class ToneReceivedEventInternal {
/*
* The tone info.
*/
- @JsonProperty(value = "toneInfo")
+ @JsonProperty(value = "toneInfo", required = true)
private ToneInfoInternal toneInfo;
/*
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallParticipant.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallParticipant.java
index 8d67860d7681..9b8f852222fd 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallParticipant.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallParticipant.java
@@ -50,7 +50,7 @@ public String getParticipantId() {
*
* @return the communication identity of the participant object itself
*/
- public boolean getIsMuted() {
+ public boolean isMuted() {
return isMuted;
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CreateCallOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CreateCallOptions.java
index 60447786dfec..6e0742597ed2 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CreateCallOptions.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CreateCallOptions.java
@@ -6,6 +6,8 @@
import com.azure.communication.common.PhoneNumberIdentifier;
import com.azure.core.annotation.Fluent;
+import java.util.List;
+
/**
* The options for creating a call.
*/
@@ -30,12 +32,12 @@ public final class CreateCallOptions {
/**
* The requested media types.
*/
- private final MediaType[] requestedMediaTypes;
+ private final List requestedMediaTypes;
/**
* The requested call events to subscribe to.
*/
- private final EventSubscriptionType[] requestedCallEvents;
+ private final List requestedCallEvents;
/**
* Get the alternate caller id of the source.
@@ -91,8 +93,8 @@ public String getCallbackUri() {
*
* @return the requested modalities object itself.
*/
- public MediaType[] getRequestedMediaTypes() {
- return this.requestedMediaTypes == null ? new MediaType[0] : this.requestedMediaTypes.clone();
+ public List getRequestedMediaTypes() {
+ return requestedMediaTypes;
}
/**
@@ -100,8 +102,8 @@ public MediaType[] getRequestedMediaTypes() {
*
* @return the requested call events to subscribe to object itself.
*/
- public EventSubscriptionType[] getRequestedCallEvents() {
- return requestedCallEvents.clone();
+ public List getRequestedCallEvents() {
+ return requestedCallEvents;
}
/**
@@ -114,22 +116,19 @@ public EventSubscriptionType[] getRequestedCallEvents() {
*/
public CreateCallOptions(
String callbackUri,
- MediaType[] requestedMediaTypes,
- EventSubscriptionType[] requestedCallEvents) {
+ List requestedMediaTypes,
+ List requestedCallEvents) {
if (callbackUri == null) {
throw new IllegalArgumentException("object callbackUri cannot be null");
}
-
if (requestedMediaTypes == null) {
throw new IllegalArgumentException("object requestedMediaTypes cannot be null");
}
if (requestedCallEvents == null) {
throw new IllegalArgumentException("object requestedCallEvents cannot be null");
}
-
this.callbackUri = callbackUri;
-
- this.requestedMediaTypes = requestedMediaTypes.clone();
- this.requestedCallEvents = requestedCallEvents.clone();
+ this.requestedMediaTypes = requestedMediaTypes;
+ this.requestedCallEvents = requestedCallEvents;
}
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallOptions.java
index 7a2fa269c4c0..dfc2621c0ddc 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallOptions.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallOptions.java
@@ -6,6 +6,8 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
/** The options for join call. */
@Fluent
public final class JoinCallOptions {
@@ -25,13 +27,13 @@ public final class JoinCallOptions {
* The requested MediaTypes.
*/
@JsonProperty(value = "requestedMediaTypes", required = true)
- private MediaType[] requestedMediaTypes;
+ private List requestedMediaTypes;
/*
* The requested call events to subscribe to.
*/
@JsonProperty(value = "requestedCallEvents", required = true)
- private EventSubscriptionType[] requestedCallEvents;
+ private List requestedCallEvents;
/**
* Get the subject property: The subject.
@@ -78,8 +80,8 @@ public JoinCallOptions setCallbackUri(String callbackUri) {
*
* @return the requestedMediaTypes value.
*/
- public MediaType[] getRequestedMediaTypes() {
- return requestedMediaTypes == null ? new MediaType[0] : requestedMediaTypes.clone();
+ public List getRequestedMediaTypes() {
+ return requestedMediaTypes;
}
/**
@@ -88,8 +90,8 @@ public MediaType[] getRequestedMediaTypes() {
* @param requestedMediaTypes the requestedModalities value to set.
* @return the JoinCallOptions object itself.
*/
- public JoinCallOptions setRequestedMediaTypes(MediaType[] requestedMediaTypes) {
- this.requestedMediaTypes = requestedMediaTypes == null ? new MediaType[0] : requestedMediaTypes.clone();
+ public JoinCallOptions setRequestedMediaTypes(List requestedMediaTypes) {
+ this.requestedMediaTypes = requestedMediaTypes;
return this;
}
@@ -99,8 +101,8 @@ public JoinCallOptions setRequestedMediaTypes(MediaType[] requestedMediaTypes) {
*
* @return the requestedCallEvents value.
*/
- public EventSubscriptionType[] getRequestedCallEvents() {
- return requestedCallEvents == null ? new EventSubscriptionType[0] : requestedCallEvents.clone();
+ public List getRequestedCallEvents() {
+ return requestedCallEvents;
}
/**
@@ -110,8 +112,8 @@ public EventSubscriptionType[] getRequestedCallEvents() {
* @param requestedCallEvents the requestedCallEvents value to set.
* @return the JoinCallOptions object itself.
*/
- public JoinCallOptions setRequestedCallEvents(EventSubscriptionType[] requestedCallEvents) {
- this.requestedCallEvents = requestedCallEvents == null ? new EventSubscriptionType[0] : requestedCallEvents.clone();
+ public JoinCallOptions setRequestedCallEvents(List requestedCallEvents) {
+ this.requestedCallEvents = requestedCallEvents;
return this;
}
@@ -125,22 +127,19 @@ public JoinCallOptions setRequestedCallEvents(EventSubscriptionType[] requestedC
*/
public JoinCallOptions(
String callbackUri,
- MediaType[] requestedMediaTypes,
- EventSubscriptionType[] requestedCallEvents) {
+ List requestedMediaTypes,
+ List requestedCallEvents) {
if (callbackUri == null) {
throw new IllegalArgumentException("object callbackUri cannot be null");
}
-
if (requestedMediaTypes == null) {
throw new IllegalArgumentException("object requestedMediaTypes cannot be null");
}
if (requestedCallEvents == null) {
throw new IllegalArgumentException("object requestedCallEvents cannot be null");
}
-
this.callbackUri = callbackUri;
-
- this.requestedMediaTypes = requestedMediaTypes.clone();
- this.requestedCallEvents = requestedCallEvents.clone();
+ this.requestedMediaTypes = requestedMediaTypes;
+ this.requestedCallEvents = requestedCallEvents;
}
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallResult.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallResult.java
deleted file mode 100644
index 2e57e3b3c898..000000000000
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/JoinCallResult.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.communication.callingserver.models;
-
-import com.azure.core.annotation.Immutable;
-
-/** The response payload of the join call operation. */
-@Immutable
-public final class JoinCallResult {
- /*
- * The call connection id.
- */
- private final String callConnectionId;
-
- /**
- * Get the callConnectionId property: The call connection id.
- *
- * @return the callConnectionId value.
- */
- public String getCallConnectionId() {
- return callConnectionId;
- }
-
- /**
- * Initializes a new instance of JoinCallResult.
- *
- * @param callConnectionId the callConnectionId value to set.
- */
- public JoinCallResult(String callConnectionId) {
- this.callConnectionId = callConnectionId;
- }
-}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java
index 66519aad53ac..741c887385ad 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java
@@ -30,7 +30,7 @@ public ParallelDownloadOptions() {
* Gets the block size (chunk size) to transfer at a time.
* @return The block size.
*/
- public long getBlockSizeLong() {
+ public long getBlockSize() {
return blockSize == null ? ContentDownloader.DEFAULT_BUFFER_SIZE : blockSize;
}
@@ -47,7 +47,7 @@ public long getBlockSizeLong() {
* @param blockSize The block size.
* @return The ParallelDownloadOptions object itself.
*/
- public ParallelDownloadOptions setBlockSizeLong(Long blockSize) {
+ public ParallelDownloadOptions setBlockSize(Long blockSize) {
if (blockSize != null) {
assertInBounds("blockSize", blockSize, 1, Long.MAX_VALUE);
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReceiver.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReceiver.java
index 6e300e663bcc..6e2b54a8c936 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReceiver.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ProgressReceiver.java
@@ -3,17 +3,15 @@
package com.azure.communication.callingserver.models;
-import reactor.core.publisher.Flux;
-
/**
* A {@code ProgressReceiver} is an object that can be used to report progress on network transfers. When specified on
* transfer operations, the {@code reportProgress} method will be called periodically with the total number of bytes
- * transferred. The user may configure this method to report progress in whatever format desired. It is recommended
- * that this type be used in conjunction with {@link ProgressReporter#addProgressReporting(Flux, ProgressReceiver)} to
- * enable reporting on sequential transfers. Note that any method accepting a {@link ParallelDownloadOptions} will use
+ * transferred. The user may configure this method to report progress in whatever format desired.
+ * Note that any method accepting a {@link ParallelDownloadOptions} will use
* the {@code ProgressReceiver} specified there and will handle the logic to coordinate the reporting between parallel
* operations.
*/
+@FunctionalInterface
public interface ProgressReceiver {
/**
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/AddParticipantResultEvent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/AddParticipantResultEvent.java
index f3e2758ba268..cca79cedacb1 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/AddParticipantResultEvent.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/AddParticipantResultEvent.java
@@ -63,7 +63,7 @@ public OperationStatus getStatus() {
* communications related to this operation
* @param status the status value.
*/
- public AddParticipantResultEvent(ResultInfo resultInfo, String operationContext, OperationStatus status) {
+ AddParticipantResultEvent(ResultInfo resultInfo, String operationContext, OperationStatus status) {
this.resultInfo = resultInfo;
this.operationContext = operationContext;
this.status = status;
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallConnectionStateChangedEvent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallConnectionStateChangedEvent.java
index 16c0658e2900..58567398f598 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallConnectionStateChangedEvent.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallConnectionStateChangedEvent.java
@@ -60,7 +60,7 @@ public CallConnectionState getCallConnectionState() {
* @param callConnectionId the callConnectionId value.
* @param callConnectionState the callConnectionState value.
*/
- public CallConnectionStateChangedEvent(
+ CallConnectionStateChangedEvent(
String serverCallId,
String callConnectionId,
CallConnectionState callConnectionState) {
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallRecordingStateChangeEvent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallRecordingStateChangeEvent.java
index 317b7db464b3..dc541cac5d5d 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallRecordingStateChangeEvent.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/CallRecordingStateChangeEvent.java
@@ -77,7 +77,7 @@ public String getServerCallId() {
* @param startDateTime the startDateTime value.
* @param serverCallId the serverCallId value.
*/
- public CallRecordingStateChangeEvent(
+ CallRecordingStateChangeEvent(
String recordingId,
CallRecordingState state,
OffsetDateTime startDateTime,
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ParticipantsUpdatedEvent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ParticipantsUpdatedEvent.java
index 30e81b39c9fb..0e1a2003f6d5 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ParticipantsUpdatedEvent.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ParticipantsUpdatedEvent.java
@@ -26,7 +26,7 @@ public final class ParticipantsUpdatedEvent extends CallingServerEventBase {
/**
* The participants.
*/
- private final CallParticipant[] participants;
+ private final List participants;
/**
* Get the callConnectionId property: The call connection id.
@@ -43,8 +43,8 @@ public String getCallConnectionId() {
*
* @return the list of participants value.
*/
- public CallParticipant[] getParticipants() {
- return participants == null ? new CallParticipant[0] : participants.clone();
+ public List getParticipants() {
+ return participants;
}
/**
@@ -54,7 +54,7 @@ public CallParticipant[] getParticipants() {
* @param participants The participants
* @throws IllegalArgumentException if any parameter is null or empty.
*/
- public ParticipantsUpdatedEvent(String callConnectionId, CallParticipant[] participants) {
+ ParticipantsUpdatedEvent(String callConnectionId, List participants) {
if (callConnectionId == null || callConnectionId.isEmpty()) {
throw new IllegalArgumentException("object callConnectionId cannot be null or empty");
}
@@ -62,7 +62,7 @@ public ParticipantsUpdatedEvent(String callConnectionId, CallParticipant[] parti
throw new IllegalArgumentException("object participants cannot be null");
}
this.callConnectionId = callConnectionId;
- this.participants = participants.clone();
+ this.participants = participants;
}
/**
@@ -85,7 +85,6 @@ public static ParticipantsUpdatedEvent deserialize(BinaryData eventData) {
callParticipantInternal.isMuted()));
}
- return new ParticipantsUpdatedEvent(internalEvent.getCallConnectionId(),
- participants.toArray(new CallParticipant[0]));
+ return new ParticipantsUpdatedEvent(internalEvent.getCallConnectionId(), participants);
}
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/PlayAudioResultEvent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/PlayAudioResultEvent.java
index 7f4149dc5409..02041c8dad6c 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/PlayAudioResultEvent.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/PlayAudioResultEvent.java
@@ -63,7 +63,7 @@ public OperationStatus getStatus() {
* communications related to this operation
* @param status the status value.
*/
- public PlayAudioResultEvent(ResultInfo resultInfo, String operationContext, OperationStatus status) {
+ PlayAudioResultEvent(ResultInfo resultInfo, String operationContext, OperationStatus status) {
this.resultInfo = resultInfo;
this.operationContext = operationContext;
this.status = status;
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ToneReceivedEvent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ToneReceivedEvent.java
index 866fbcc4e0ae..c5075b016fe5 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ToneReceivedEvent.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/events/ToneReceivedEvent.java
@@ -45,7 +45,7 @@ public String getCallConnectionId() {
* @param toneInfo the toneInfo value.
* @param callConnectionId the callConnectionId value.
*/
- public ToneReceivedEvent(ToneInfo toneInfo, String callConnectionId) {
+ ToneReceivedEvent(ToneInfo toneInfo, String callConnectionId) {
this.toneInfo = toneInfo;
this.callConnectionId = callConnectionId;
}
diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/module-info.java b/sdk/communication/azure-communication-callingserver/src/main/java/module-info.java
index b3ead38e94a3..5d9b0f10d9ff 100644
--- a/sdk/communication/azure-communication-callingserver/src/main/java/module-info.java
+++ b/sdk/communication/azure-communication-callingserver/src/main/java/module-info.java
@@ -13,4 +13,5 @@
// exporting some packages specifically for Jackson
opens com.azure.communication.callingserver.models to com.fasterxml.jackson.databind;
opens com.azure.communication.callingserver.implementation.models to com.fasterxml.jackson.databind, com.azure.core;
+ opens com.azure.communication.callingserver to com.fasterxml.jackson.databind;
}
diff --git a/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerAsyncClientJavaDocCodeSnippets.java b/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerAsyncClientJavaDocCodeSnippets.java
index 7e672afa8a34..798a78e2f6c9 100644
--- a/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerAsyncClientJavaDocCodeSnippets.java
+++ b/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerAsyncClientJavaDocCodeSnippets.java
@@ -11,6 +11,9 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import java.util.Arrays;
+import java.util.List;
+
public class CallingServerAsyncClientJavaDocCodeSnippets {
public CallingServerAsyncClient createCallingServerAsyncClientWithPipeline() {
@@ -44,12 +47,11 @@ public void createCallConnectionAsync() {
String callbackUri = "";
// BEGIN: com.azure.communication.callingserver.CallingServerAsyncClient.create.call.connection.async
- CommunicationIdentifier[] targets = new CommunicationIdentifier[] { firstCallee, secondCallee };
- MediaType[] requestedMediaTypes = new MediaType[] { MediaType.AUDIO, MediaType.VIDEO };
- EventSubscriptionType[] requestedCallEvents = new EventSubscriptionType[] {
+ List targets = Arrays.asList(firstCallee, secondCallee);
+ List requestedMediaTypes = Arrays.asList(MediaType.AUDIO, MediaType.VIDEO);
+ List requestedCallEvents = Arrays.asList(
EventSubscriptionType.DTMF_RECEIVED,
- EventSubscriptionType.PARTICIPANTS_UPDATED
- };
+ EventSubscriptionType.PARTICIPANTS_UPDATED);
CreateCallOptions createCallOptions = new CreateCallOptions(
callbackUri,
requestedMediaTypes,
diff --git a/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerClientJavaDocCodeSnippets.java b/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerClientJavaDocCodeSnippets.java
index edd91a97c388..c42cb9ec5617 100644
--- a/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerClientJavaDocCodeSnippets.java
+++ b/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/CallingServerClientJavaDocCodeSnippets.java
@@ -11,6 +11,9 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import java.util.Arrays;
+import java.util.List;
+
public class CallingServerClientJavaDocCodeSnippets {
public CallingServerClient createCallingServerClientWithPipeline() {
@@ -44,12 +47,11 @@ public void createCallConnection() {
String callbackUri = "";
// BEGIN: com.azure.communication.callingserver.CallingServerClient.create.call.connection
- CommunicationIdentifier[] targets = new CommunicationIdentifier[] { firstCallee, secondCallee };
- MediaType[] requestedMediaTypes = new MediaType[] { MediaType.AUDIO, MediaType.VIDEO };
- EventSubscriptionType[] requestedCallEvents = new EventSubscriptionType[] {
+ List targets = Arrays.asList(firstCallee, secondCallee);
+ List requestedMediaTypes = Arrays.asList(MediaType.AUDIO, MediaType.VIDEO);
+ List requestedCallEvents = Arrays.asList(
EventSubscriptionType.DTMF_RECEIVED,
- EventSubscriptionType.PARTICIPANTS_UPDATED
- };
+ EventSubscriptionType.PARTICIPANTS_UPDATED);
CreateCallOptions createCallOptions = new CreateCallOptions(
callbackUri,
requestedMediaTypes,
diff --git a/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/ReadmeSamples.java b/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/ReadmeSamples.java
index 71f3cbd6554a..4bba2b0d43c2 100644
--- a/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/ReadmeSamples.java
+++ b/sdk/communication/azure-communication-callingserver/src/samples/java/com/azure/communication/callingserver/ReadmeSamples.java
@@ -3,12 +3,16 @@
package com.azure.communication.callingserver;
-import com.azure.communication.callingserver.models.EventSubscriptionType;
import com.azure.communication.callingserver.models.CreateCallOptions;
+import com.azure.communication.callingserver.models.EventSubscriptionType;
import com.azure.communication.callingserver.models.MediaType;
import com.azure.communication.common.CommunicationIdentifier;
import com.azure.communication.common.CommunicationUserIdentifier;
+import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.List;
+
/**
* WARNING: MODIFYING THIS FILE WILL REQUIRE CORRESPONDING UPDATES TO README.md FILE. LINE NUMBERS
* ARE USED TO EXTRACT APPROPRIATE CODE SEGMENTS FROM THIS FILE. ADD NEW CODE AT THE BOTTOM TO AVOID CHANGING
@@ -47,16 +51,15 @@ public void createCallConnection() {
CommunicationIdentifier firstCallee = new CommunicationUserIdentifier("");
CommunicationIdentifier secondCallee = new CommunicationUserIdentifier("");
- CommunicationIdentifier[] targets = new CommunicationIdentifier[] { firstCallee, secondCallee };
+ List targets = Arrays.asList(firstCallee, secondCallee);
String callbackUri = "";
- MediaType[] requestedMediaTypes = new MediaType[] { MediaType.AUDIO, MediaType.VIDEO };
+ List requestedMediaTypes = Arrays.asList(MediaType.AUDIO, MediaType.VIDEO);
- EventSubscriptionType[] requestedCallEvents = new EventSubscriptionType[] {
+ List requestedCallEvents = Arrays.asList(
EventSubscriptionType.DTMF_RECEIVED,
- EventSubscriptionType.PARTICIPANTS_UPDATED
- };
+ EventSubscriptionType.PARTICIPANTS_UPDATED);
CreateCallOptions createCallOptions = new CreateCallOptions(
callbackUri,
@@ -86,4 +89,19 @@ public void addParticipant() {
CommunicationIdentifier thirdCallee = new CommunicationUserIdentifier("");
callConnection.addParticipant(thirdCallee, "ACS User 3", "");
}
+
+ /**
+ * Sample code for downloading a recording into a file.
+ */
+ public void getRecordingStream() {
+ String recordingUrl = "https://ams.skype.com/objects/v1/document_id/video";
+ String filePath = "filePath.mp4";
+ CallingServerClient callingServerClient = createCallingServerClient();
+ callingServerClient.downloadTo(
+ recordingUrl,
+ Paths.get(filePath),
+ null,
+ true
+ );
+ }
}
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java
index f2f56f02a726..df0ded5848d0 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java
@@ -1,5 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+
package com.azure.communication.callingserver;
import com.azure.communication.callingserver.models.AddParticipantResult;
@@ -8,8 +9,8 @@
import com.azure.communication.callingserver.models.EventSubscriptionType;
import com.azure.communication.callingserver.models.JoinCallOptions;
import com.azure.communication.callingserver.models.MediaType;
+import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
-import com.azure.communication.common.CommunicationIdentifier;
import com.azure.communication.common.CommunicationUserIdentifier;
import com.azure.communication.common.PhoneNumberIdentifier;
import com.azure.core.http.HttpClient;
@@ -18,6 +19,7 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
+import java.util.Collections;
import java.util.UUID;
public class CallConnectionAsyncLiveTests extends CallingServerTestBase {
@@ -28,7 +30,7 @@ public class CallConnectionAsyncLiveTests extends CallingServerTestBase {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenarioAsync(HttpClient httpClient) {
@@ -40,14 +42,14 @@ public void runCreatePlayCancelHangupScenarioAsync(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnectionAsync callConnectionAsync = callingServerAsyncClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsync(callConnectionAsync);
@@ -80,7 +82,7 @@ public void runCreatePlayCancelHangupScenarioAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpClient) {
@@ -92,15 +94,15 @@ public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpCl
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
Response callConnectionAsyncResponse =
callingServerAsyncClient.createCallConnectionWithResponse(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsyncResponse(callConnectionAsyncResponse);
@@ -109,13 +111,14 @@ public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpCl
// Play Audio
String operationContext = UUID.randomUUID().toString();
+ PlayAudioOptions playAudioOptions =
+ new PlayAudioOptions()
+ .setLoop(false)
+ .setAudioFileId(UUID.randomUUID().toString())
+ .setCallbackUri(null)
+ .setOperationContext(operationContext);
Response playAudioResponse =
- callConnectionAsync.playAudioWithResponse(
- AUDIO_FILE_URI,
- false,
- UUID.randomUUID().toString(),
- null,
- operationContext).block();
+ callConnectionAsync.playAudioWithResponse(AUDIO_FILE_URI, playAudioOptions).block();
CallingServerTestUtils.validatePlayAudioResponse(playAudioResponse);
// Cancel All Media Operations
@@ -136,7 +139,7 @@ public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpCl
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenarioAsync(HttpClient httpClient) {
@@ -148,14 +151,14 @@ public void runCreateAddRemoveHangupScenarioAsync(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnectionAsync callConnectionAsync = callingServerAsyncClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsync(callConnectionAsync);
@@ -183,7 +186,7 @@ public void runCreateAddRemoveHangupScenarioAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenarioWithResponseAsync(HttpClient httpClient) {
@@ -195,15 +198,15 @@ public void runCreateAddRemoveHangupScenarioWithResponseAsync(HttpClient httpCli
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
Response callConnectionAsyncResponse =
callingServerAsyncClient.createCallConnectionWithResponse(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsyncResponse(callConnectionAsyncResponse);
@@ -237,7 +240,7 @@ public void runCreateAddRemoveHangupScenarioWithResponseAsync(HttpClient httpCli
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) {
@@ -249,14 +252,14 @@ public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnectionAsync callConnectionAsync = callingServerAsyncClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsync(callConnectionAsync);
@@ -269,10 +272,10 @@ public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) {
String serverCallId = "aHR0cHM6Ly94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L3VodHNzZEZ3NFVHX1J4d1lHYWlLRmc_aT0yJmU9NjM3NTg0Mzk2NDM5NzQ5NzY4";
JoinCallOptions joinCallOptions = new JoinCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
CallConnectionAsync joinedCallConnectionAsync =
- callingServerAsyncClient.join(
+ callingServerAsyncClient.joinCall(
serverCallId,
new CommunicationUserIdentifier(toUser),
joinCallOptions).block();
@@ -292,7 +295,7 @@ public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenarioWithResponseAsync(HttpClient httpClient) {
@@ -304,15 +307,15 @@ public void runCreateJoinHangupScenarioWithResponseAsync(HttpClient httpClient)
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
Response callConnectionAsyncResponse =
callingServerAsyncClient.createCallConnectionWithResponse(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsyncResponse(callConnectionAsyncResponse);
@@ -327,10 +330,10 @@ public void runCreateJoinHangupScenarioWithResponseAsync(HttpClient httpClient)
String serverCallId = "aHR0cHM6Ly94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L3lKQXY0TnVlOEV5bUpYVm1IYklIeUE_aT0wJmU9NjM3NTg0MzkwMjcxMzg0MTc3";
JoinCallOptions joinCallOptions = new JoinCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
Response joinedCallConnectionAsyncResponse =
- callingServerAsyncClient.joinWithResponse(
+ callingServerAsyncClient.joinCallWithResponse(
serverCallId,
new CommunicationUserIdentifier(toUser),
joinCallOptions).block();
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java
index 4f3b5003bc76..479b46f9ea98 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java
@@ -8,8 +8,8 @@
import com.azure.communication.callingserver.models.EventSubscriptionType;
import com.azure.communication.callingserver.models.JoinCallOptions;
import com.azure.communication.callingserver.models.MediaType;
+import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
-import com.azure.communication.common.CommunicationIdentifier;
import com.azure.communication.common.CommunicationUserIdentifier;
import com.azure.communication.common.PhoneNumberIdentifier;
import com.azure.core.http.HttpClient;
@@ -18,6 +18,7 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
+import java.util.Collections;
import java.util.UUID;
public class CallConnectionLiveTests extends CallingServerTestBase {
@@ -28,7 +29,7 @@ public class CallConnectionLiveTests extends CallingServerTestBase {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenario(HttpClient httpClient) {
@@ -39,14 +40,14 @@ public void runCreatePlayCancelHangupScenario(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnection callConnection = callingServerClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options);
CallingServerTestUtils.validateCallConnection(callConnection);
@@ -78,7 +79,7 @@ public void runCreatePlayCancelHangupScenario(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient) {
@@ -90,15 +91,15 @@ public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient)
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
Response callConnectionResponse =
callingServerClient.createCallConnectionWithResponse(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options,
null);
@@ -107,14 +108,14 @@ public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient)
// Play Audio
String operationContext = UUID.randomUUID().toString();
+ PlayAudioOptions playAudioOptions =
+ new PlayAudioOptions()
+ .setLoop(false)
+ .setAudioFileId(UUID.randomUUID().toString())
+ .setCallbackUri(null)
+ .setOperationContext(operationContext);
Response playAudioResult =
- callConnection.playAudioWithResponse(
- AUDIO_FILE_URI,
- false,
- UUID.randomUUID().toString(),
- null,
- operationContext,
- null);
+ callConnection.playAudioWithResponse(AUDIO_FILE_URI, playAudioOptions, null);
CallingServerTestUtils.validatePlayAudioResponse(playAudioResult);
// Cancel All Media Operations
@@ -135,7 +136,7 @@ public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient)
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenario(HttpClient httpClient) {
@@ -146,14 +147,14 @@ public void runCreateAddRemoveHangupScenario(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnection callConnection = callingServerClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options);
CallingServerTestUtils.validateCallConnection(callConnection);
@@ -176,7 +177,7 @@ public void runCreateAddRemoveHangupScenario(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenarioWithResponse(HttpClient httpClient) {
@@ -188,15 +189,15 @@ public void runCreateAddRemoveHangupScenarioWithResponse(HttpClient httpClient)
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
Response callConnectionResponse =
callingServerClient.createCallConnectionWithResponse(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options,
null);
@@ -230,7 +231,7 @@ public void runCreateAddRemoveHangupScenarioWithResponse(HttpClient httpClient)
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenario(HttpClient httpClient) {
@@ -241,14 +242,14 @@ public void runCreateJoinHangupScenario(HttpClient httpClient) {
// Establish a call
CreateCallOptions createCallOptions = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
createCallOptions.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnection callConnection = callingServerClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
createCallOptions);
CallingServerTestUtils.validateCallConnection(callConnection);
@@ -261,10 +262,10 @@ public void runCreateJoinHangupScenario(HttpClient httpClient) {
String serverCallId = "aHR0cHM6Ly94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L2RUUjRPVGFxVzAyZ3cxVGpNSUNBdEE_aT0wJmU9NjM3NTg0MzkwMjcxMzg0MTc3";
JoinCallOptions joinCallOptions = new JoinCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
CallConnection joinedCallConnection =
- callingServerClient.join(serverCallId, new CommunicationUserIdentifier(toUser), joinCallOptions);
+ callingServerClient.joinCall(serverCallId, new CommunicationUserIdentifier(toUser), joinCallOptions);
CallingServerTestUtils.validateCallConnection(joinedCallConnection);
//Hangup
@@ -279,7 +280,7 @@ public void runCreateJoinHangupScenario(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenarioWithResponse(HttpClient httpClient) {
@@ -291,14 +292,14 @@ public void runCreateJoinHangupScenarioWithResponse(HttpClient httpClient) {
// Establish a call
CreateCallOptions createCallOptions = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
createCallOptions.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
Response callConnectionResponse = callingServerClient.createCallConnectionWithResponse(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
createCallOptions,
null);
@@ -309,10 +310,10 @@ public void runCreateJoinHangupScenarioWithResponse(HttpClient httpClient) {
String serverCallId = "aHR0cHM6Ly94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L3dXZW9hNjAweGtPZ0d6eHE2eG1tQVE_aT0yJmU9NjM3NTg0Mzk2NDM5NzQ5NzY4";
JoinCallOptions joinCallOptions = new JoinCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
Response joinedCallConnectionResponse =
- callingServerClient.joinWithResponse(
+ callingServerClient.joinCallWithResponse(
serverCallId,
new CommunicationUserIdentifier(toUser),
joinCallOptions,
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallingServerTestBase.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallingServerTestBase.java
index 7307e021cff6..f1ea73fdb1a6 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallingServerTestBase.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallingServerTestBase.java
@@ -23,6 +23,7 @@
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.StringJoiner;
@@ -41,7 +42,7 @@ public class CallingServerTestBase extends TestBase {
.get("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING",
"endpoint=https://REDACTED.communication.azure.com/;accesskey=QWNjZXNzS2V5");
- protected static final String RESOURCE_IDENTIFIER = Configuration.getGlobalConfiguration()
+ protected static final String AZURE_TENANT_ID = Configuration.getGlobalConfiguration()
.get("COMMUNICATION_LIVETEST_STATIC_RESOURCE_IDENTIFIER",
"016a7064-0581-40b9-be73-6dde64d69d72");
@@ -98,8 +99,8 @@ protected String getNewUserId() {
return getRandomUserId();
}
- private String getRandomUserId() {
- return "8:acs:" + RESOURCE_IDENTIFIER + "_" + UUID.randomUUID();
+ protected String getRandomUserId() {
+ return "8:acs:" + AZURE_TENANT_ID + "_" + UUID.randomUUID();
}
protected String getGroupId(String testName) {
@@ -176,18 +177,18 @@ protected List createCall(CallingServerClient callingServerClien
JoinCallOptions fromCallOptions = new JoinCallOptions(
callBackUri,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
- fromCallConnection = callingServerClient.join(groupId, fromParticipant, fromCallOptions);
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
+ fromCallConnection = callingServerClient.joinCall(groupId, fromParticipant, fromCallOptions);
sleepIfRunningAgainstService(1000);
CallingServerTestUtils.validateCallConnection(fromCallConnection);
JoinCallOptions joinCallOptions = new JoinCallOptions(
callBackUri,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
- toCallConnection = callingServerClient.join(groupId, toParticipant, joinCallOptions);
+ toCallConnection = callingServerClient.joinCall(groupId, toParticipant, joinCallOptions);
sleepIfRunningAgainstService(1000);
CallingServerTestUtils.validateCallConnection(toCallConnection);
@@ -221,18 +222,18 @@ protected List createAsyncCall(CallingServerAsyncClient cal
JoinCallOptions fromCallOptions = new JoinCallOptions(
callBackUri,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
- fromCallConnection = callingServerClient.join(groupId, fromParticipant, fromCallOptions).block();
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
+ fromCallConnection = callingServerClient.joinCall(groupId, fromParticipant, fromCallOptions).block();
sleepIfRunningAgainstService(1000);
CallingServerTestUtils.validateCallConnectionAsync(fromCallConnection);
JoinCallOptions joinCallOptions = new JoinCallOptions(
callBackUri,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
- toCallConnection = callingServerClient.join(groupId, toParticipant, joinCallOptions).block();
+ toCallConnection = callingServerClient.joinCall(groupId, toParticipant, joinCallOptions).block();
sleepIfRunningAgainstService(1000);
CallingServerTestUtils.validateCallConnectionAsync(toCallConnection);
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java
index 899ffe2d8f77..66c78edcb63d 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java
@@ -36,7 +36,7 @@ public class DownloadContentAsyncLiveTests extends CallingServerTestBase {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadMetadataAsync(HttpClient httpClient) {
@@ -58,12 +58,12 @@ public void downloadMetadataAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadMetadataRetryingAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
- CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadMetadataAsync");
+ CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadMetadataRetryingAsync");
try {
Flux content = conversationAsyncClient.downloadStream(METADATA_URL);
@@ -80,7 +80,7 @@ public void downloadMetadataRetryingAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadVideoAsync(HttpClient httpClient) {
@@ -102,7 +102,7 @@ public void downloadVideoAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadToFileAsync(HttpClient httpClient) {
@@ -127,7 +127,7 @@ public void downloadToFileAsync(HttpClient httpClient) {
.downloadToWithResponse(METADATA_URL,
Paths.get("dummyPath"),
channel,
- new ParallelDownloadOptions().setBlockSizeLong(479L),
+ new ParallelDownloadOptions().setBlockSize(479L),
null).block();
Mockito.verify(channel, times(2)).write(any(ByteBuffer.class), anyLong(),
@@ -137,12 +137,12 @@ public void downloadToFileAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadToFileRetryingAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
- CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadToFileAsync");
+ CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadToFileRetryingAsync");
AsynchronousFileChannel channel = Mockito.mock(AsynchronousFileChannel.class);
doAnswer(invocation -> {
@@ -171,6 +171,10 @@ public void downloadToFileRetryingAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
+ @DisabledIfEnvironmentVariable(
+ named = "SKIP_LIVE_TEST",
+ matches = "(?i)(true)",
+ disabledReason = "Requires human intervention")
public void downloadContent404Async(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadContent404Async");
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java
index 24433330c069..d1b508bac18a 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java
@@ -29,7 +29,7 @@ public class DownloadContentLiveTests extends CallingServerTestBase {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadMetadata(HttpClient httpClient) throws UnsupportedEncodingException {
@@ -50,7 +50,7 @@ public void downloadMetadata(HttpClient httpClient) throws UnsupportedEncodingEx
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadVideo(HttpClient httpClient) {
@@ -76,6 +76,10 @@ public void downloadVideo(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
+ @DisabledIfEnvironmentVariable(
+ named = "SKIP_LIVE_TEST",
+ matches = "(?i)(true)",
+ disabledReason = "Requires human intervention")
public void downloadContent404(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerClient conversationClient = setupClient(builder, "downloadContent404");
@@ -91,7 +95,7 @@ public void downloadContent404(HttpClient httpClient) {
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
public void downloadContentWrongUrl(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
- CallingServerClient conversationClient = setupClient(builder, "downloadContent404");
+ CallingServerClient conversationClient = setupClient(builder, "downloadContentWrongUrl");
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
IllegalArgumentException ex =
@@ -104,6 +108,10 @@ public void downloadContentWrongUrl(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
+ @DisabledIfEnvironmentVariable(
+ named = "SKIP_LIVE_TEST",
+ matches = "(?i)(true)",
+ disabledReason = "Requires human intervention")
public void downloadContentStreamFailure(HttpClient httpClient) throws IOException {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerClient conversationClient = setupClient(builder, "downloadContent404");
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java
index f6c5c62a50c6..517fb9c0917e 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java
@@ -13,7 +13,6 @@
import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
import com.azure.communication.callingserver.models.StartCallRecordingResult;
-import com.azure.communication.common.CommunicationIdentifier;
import com.azure.communication.common.CommunicationUserIdentifier;
import com.azure.communication.common.PhoneNumberIdentifier;
import com.azure.core.http.HttpClient;
@@ -23,6 +22,7 @@
import org.junit.jupiter.params.provider.MethodSource;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import java.util.UUID;
@@ -31,8 +31,8 @@
public class ServerCallAsyncLiveTests extends CallingServerTestBase {
- private final String fromUser = getNewUserId();
- private final String toUser = getNewUserId();
+ private final String fromUser = getRandomUserId();
+ private final String toUser = getRandomUserId();
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@@ -209,7 +209,7 @@ public void startRecordingFailsAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenarioAsync(HttpClient httpClient) {
@@ -221,14 +221,14 @@ public void runAddRemoveScenarioAsync(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnectionAsync callConnectionAsync = callingServerAsyncClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsync(callConnectionAsync);
@@ -267,7 +267,7 @@ public void runAddRemoveScenarioAsync(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenarioWithResponseAsync(HttpClient httpClient) {
@@ -278,14 +278,14 @@ public void runAddRemoveScenarioWithResponseAsync(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnectionAsync callConnectionAsync = callingServerAsyncClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options).block();
CallingServerTestUtils.validateCallConnectionAsync(callConnectionAsync);
diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java
index bd98c67c09be..d84a635db2c2 100644
--- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java
+++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java
@@ -13,7 +13,6 @@
import com.azure.communication.callingserver.models.PlayAudioOptions;
import com.azure.communication.callingserver.models.PlayAudioResult;
import com.azure.communication.callingserver.models.StartCallRecordingResult;
-import com.azure.communication.common.CommunicationIdentifier;
import com.azure.communication.common.CommunicationUserIdentifier;
import com.azure.communication.common.PhoneNumberIdentifier;
import com.azure.core.http.HttpClient;
@@ -24,6 +23,7 @@
import org.junit.jupiter.params.provider.MethodSource;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import java.util.UUID;
@@ -36,8 +36,8 @@
public class ServerCallLiveTests extends CallingServerTestBase {
- private final String fromUser = getNewUserId();
- private final String toUser = getNewUserId();
+ private final String fromUser = getRandomUserId();
+ private final String toUser = getRandomUserId();
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@@ -167,13 +167,16 @@ public void runPlayAudioFunctionWithResponse(HttpClient httpClient) {
try {
callConnections = createCall(callingServerClient, groupId, fromUser, toUser, CALLBACK_URI);
+ PlayAudioOptions playAudioOptions =
+ new PlayAudioOptions()
+ .setLoop(false)
+ .setAudioFileId(UUID.randomUUID().toString())
+ .setCallbackUri(CALLBACK_URI)
+ .setOperationContext(operationContext);
serverCall = callingServerClient.initializeServerCall(groupId);
Response playAudioResult =
- serverCall.playAudioWithResponse(
- AUDIO_FILE_URI, operationContext,
- CALLBACK_URI, operationContext,
- Context.NONE);
+ serverCall.playAudioWithResponse(AUDIO_FILE_URI, playAudioOptions, Context.NONE);
validatePlayAudioResponse(playAudioResult);
} catch (Exception e) {
@@ -204,7 +207,7 @@ public void startRecordingFails(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenario(HttpClient httpClient) {
@@ -214,14 +217,14 @@ public void runAddRemoveScenario(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnection callConnection = callingServerClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options);
validateCallConnection(callConnection);
@@ -257,7 +260,7 @@ public void runAddRemoveScenario(HttpClient httpClient) {
@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
- named = "RUN_CALLINGSERVER_TEST_RECORD",
+ named = "SKIP_LIVE_TEST",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenarioWithResponse(HttpClient httpClient) {
@@ -268,14 +271,14 @@ public void runAddRemoveScenarioWithResponse(HttpClient httpClient) {
// Establish a call
CreateCallOptions options = new CreateCallOptions(
CALLBACK_URI,
- new MediaType[] { MediaType.AUDIO },
- new EventSubscriptionType[] { EventSubscriptionType.PARTICIPANTS_UPDATED });
+ Collections.singletonList(MediaType.AUDIO),
+ Collections.singletonList(EventSubscriptionType.PARTICIPANTS_UPDATED));
options.setAlternateCallerId(new PhoneNumberIdentifier(FROM_PHONE_NUMBER));
CallConnection callConnection = callingServerClient.createCallConnection(
new CommunicationUserIdentifier(fromUser),
- new CommunicationIdentifier[] { new PhoneNumberIdentifier(TO_PHONE_NUMBER) },
+ Collections.singletonList(new PhoneNumberIdentifier(TO_PHONE_NUMBER)),
options);
validateCallConnection(callConnection);
diff --git a/sdk/communication/azure-communication-callingserver/swagger/README.md b/sdk/communication/azure-communication-callingserver/swagger/README.md
index cd4929b924c0..4443936f29d6 100644
--- a/sdk/communication/azure-communication-callingserver/swagger/README.md
+++ b/sdk/communication/azure-communication-callingserver/swagger/README.md
@@ -33,7 +33,7 @@ To update generated files for calling service, run the following command
``` yaml
tag: package-2021-06-15-preview
require:
- - https://github.com/Azure/azure-rest-api-specs/blob/60ae3d6b8806c896f2e54e4bfd900357dbcfd54a/specification/communication/data-plane/CallingServer/readme.md
+ - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b4b5fa5ee23f8cce9e1ade4a82076b4c34b25651/specification/communication/data-plane/CallingServer/readme.md
java: true
output-folder: ..\
license-header: MICROSOFT_MIT_SMALL
diff --git a/sdk/communication/azure-communication-callingserver/tests.yml b/sdk/communication/azure-communication-callingserver/tests.yml
index b66a73564925..afd6c1d77924 100644
--- a/sdk/communication/azure-communication-callingserver/tests.yml
+++ b/sdk/communication/azure-communication-callingserver/tests.yml
@@ -5,3 +5,4 @@ stages:
parameters:
PackageName: azure-communication-callingserver
SafeName: azurecommunicationcallingserver
+
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/CHANGELOG.md b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/CHANGELOG.md
new file mode 100644
index 000000000000..e1a3c990d459
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-06-22)
+
+- Azure Resource Manager ContainerRegistry client library for Java. This package contains Microsoft Azure SDK for ContainerRegistry Management SDK. Package tag package-2021-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/README.md b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/README.md
new file mode 100644
index 000000000000..83201cd654df
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/README.md
@@ -0,0 +1,101 @@
+# Azure Resource Manager ContainerRegistry client library for Java
+
+Azure Resource Manager ContainerRegistry client library for Java.
+
+This package contains Microsoft Azure SDK for ContainerRegistry Management SDK. Package tag package-2021-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-containerregistry-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-containerregistry-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ContainerRegistryManager manager = ContainerRegistryManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/pom.xml b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/pom.xml
new file mode 100644
index 000000000000..f013598e7f5f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/pom.xml
@@ -0,0 +1,86 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-containerregistry-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for ContainerRegistry Management
+ This package contains Microsoft Azure SDK for ContainerRegistry Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-06-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.17.0
+
+
+ com.azure
+ azure-core-management
+ 1.3.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/ContainerRegistryManager.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/ContainerRegistryManager.java
new file mode 100644
index 000000000000..48b70467e23f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/ContainerRegistryManager.java
@@ -0,0 +1,396 @@
+// 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.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.fluent.ContainerRegistryManagementClient;
+import com.azure.resourcemanager.containerregistry.generated.implementation.AgentPoolsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ConnectedRegistriesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ContainerRegistryManagementClientBuilder;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ExportPipelinesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ImportPipelinesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.PipelineRunsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.RegistriesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ReplicationsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.RunsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ScopeMapsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.TaskRunsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.TasksImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.TokensImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.WebhooksImpl;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPools;
+import com.azure.resourcemanager.containerregistry.generated.models.ConnectedRegistries;
+import com.azure.resourcemanager.containerregistry.generated.models.ExportPipelines;
+import com.azure.resourcemanager.containerregistry.generated.models.ImportPipelines;
+import com.azure.resourcemanager.containerregistry.generated.models.Operations;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineRuns;
+import com.azure.resourcemanager.containerregistry.generated.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.containerregistry.generated.models.Registries;
+import com.azure.resourcemanager.containerregistry.generated.models.Replications;
+import com.azure.resourcemanager.containerregistry.generated.models.Runs;
+import com.azure.resourcemanager.containerregistry.generated.models.ScopeMaps;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskRuns;
+import com.azure.resourcemanager.containerregistry.generated.models.Tasks;
+import com.azure.resourcemanager.containerregistry.generated.models.Tokens;
+import com.azure.resourcemanager.containerregistry.generated.models.Webhooks;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to ContainerRegistryManager. */
+public final class ContainerRegistryManager {
+ private ConnectedRegistries connectedRegistries;
+
+ private ExportPipelines exportPipelines;
+
+ private Registries registries;
+
+ private ImportPipelines importPipelines;
+
+ private Operations operations;
+
+ private PipelineRuns pipelineRuns;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private Replications replications;
+
+ private ScopeMaps scopeMaps;
+
+ private Tokens tokens;
+
+ private Webhooks webhooks;
+
+ private AgentPools agentPools;
+
+ private Runs runs;
+
+ private TaskRuns taskRuns;
+
+ private Tasks tasks;
+
+ private final ContainerRegistryManagementClient clientObject;
+
+ private ContainerRegistryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ContainerRegistryManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of ContainerRegistry service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerRegistry service API instance.
+ */
+ public static ContainerRegistryManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ContainerRegistryManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ContainerRegistryManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of ContainerRegistry service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerRegistry service API instance.
+ */
+ public ContainerRegistryManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.containerregistry.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies);
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ContainerRegistryManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of ConnectedRegistries. */
+ public ConnectedRegistries connectedRegistries() {
+ if (this.connectedRegistries == null) {
+ this.connectedRegistries = new ConnectedRegistriesImpl(clientObject.getConnectedRegistries(), this);
+ }
+ return connectedRegistries;
+ }
+
+ /** @return Resource collection API of ExportPipelines. */
+ public ExportPipelines exportPipelines() {
+ if (this.exportPipelines == null) {
+ this.exportPipelines = new ExportPipelinesImpl(clientObject.getExportPipelines(), this);
+ }
+ return exportPipelines;
+ }
+
+ /** @return Resource collection API of Registries. */
+ public Registries registries() {
+ if (this.registries == null) {
+ this.registries = new RegistriesImpl(clientObject.getRegistries(), this);
+ }
+ return registries;
+ }
+
+ /** @return Resource collection API of ImportPipelines. */
+ public ImportPipelines importPipelines() {
+ if (this.importPipelines == null) {
+ this.importPipelines = new ImportPipelinesImpl(clientObject.getImportPipelines(), this);
+ }
+ return importPipelines;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of PipelineRuns. */
+ public PipelineRuns pipelineRuns() {
+ if (this.pipelineRuns == null) {
+ this.pipelineRuns = new PipelineRunsImpl(clientObject.getPipelineRuns(), this);
+ }
+ return pipelineRuns;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of Replications. */
+ public Replications replications() {
+ if (this.replications == null) {
+ this.replications = new ReplicationsImpl(clientObject.getReplications(), this);
+ }
+ return replications;
+ }
+
+ /** @return Resource collection API of ScopeMaps. */
+ public ScopeMaps scopeMaps() {
+ if (this.scopeMaps == null) {
+ this.scopeMaps = new ScopeMapsImpl(clientObject.getScopeMaps(), this);
+ }
+ return scopeMaps;
+ }
+
+ /** @return Resource collection API of Tokens. */
+ public Tokens tokens() {
+ if (this.tokens == null) {
+ this.tokens = new TokensImpl(clientObject.getTokens(), this);
+ }
+ return tokens;
+ }
+
+ /** @return Resource collection API of Webhooks. */
+ public Webhooks webhooks() {
+ if (this.webhooks == null) {
+ this.webhooks = new WebhooksImpl(clientObject.getWebhooks(), this);
+ }
+ return webhooks;
+ }
+
+ /** @return Resource collection API of AgentPools. */
+ public AgentPools agentPools() {
+ if (this.agentPools == null) {
+ this.agentPools = new AgentPoolsImpl(clientObject.getAgentPools(), this);
+ }
+ return agentPools;
+ }
+
+ /** @return Resource collection API of Runs. */
+ public Runs runs() {
+ if (this.runs == null) {
+ this.runs = new RunsImpl(clientObject.getRuns(), this);
+ }
+ return runs;
+ }
+
+ /** @return Resource collection API of TaskRuns. */
+ public TaskRuns taskRuns() {
+ if (this.taskRuns == null) {
+ this.taskRuns = new TaskRunsImpl(clientObject.getTaskRuns(), this);
+ }
+ return taskRuns;
+ }
+
+ /** @return Resource collection API of Tasks. */
+ public Tasks tasks() {
+ if (this.tasks == null) {
+ this.tasks = new TasksImpl(clientObject.getTasks(), this);
+ }
+ return tasks;
+ }
+
+ /**
+ * @return Wrapped service client ContainerRegistryManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public ContainerRegistryManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/AgentPoolsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/AgentPoolsClient.java
new file mode 100644
index 000000000000..8c6df16dd11d
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/AgentPoolsClient.java
@@ -0,0 +1,309 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolQueueStatusInner;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in AgentPoolsClient. */
+public interface AgentPoolsClient {
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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 detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner get(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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 detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String agentPoolName, Context context);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool 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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginCreate(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool 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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginCreate(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool, Context context);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool 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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner create(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool 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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner create(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool, Context context);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String agentPoolName, Context context);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String agentPoolName, Context context);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner update(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @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 agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner update(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @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 collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @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 collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the count of queued runs for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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 count of queued runs for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolQueueStatusInner getQueueStatus(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Gets the count of queued runs for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @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 count of queued runs for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getQueueStatusWithResponse(
+ String resourceGroupName, String registryName, String agentPoolName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ConnectedRegistriesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ConnectedRegistriesClient.java
new file mode 100644
index 000000000000..8f0af2294f8c
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ConnectedRegistriesClient.java
@@ -0,0 +1,355 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ConnectedRegistryInner;
+import com.azure.resourcemanager.containerregistry.generated.models.ConnectedRegistryUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in ConnectedRegistriesClient. */
+public interface ConnectedRegistriesClient {
+ /**
+ * Gets the properties of the connected registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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 properties of the connected registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner get(String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Gets the properties of the connected registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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 properties of the connected registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters,
+ Context context);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner create(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner create(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner update(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @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 an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner update(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters,
+ Context context);
+
+ /**
+ * Lists all connected registries for the specified container registry.
+ *
+ * @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 result of a request to list connected registries for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all connected registries for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param filter An OData filter expression that describes a subset of connectedRegistries to return. The parameters
+ * that can be filtered are parent.id (the resource id of the connectedRegistry parent), mode, and
+ * connectionState. The supported operator is eq.
+ * @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 result of a request to list connected registries for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String filter, Context context);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeactivate(
+ String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeactivate(
+ String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deactivate(String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deactivate(String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ContainerRegistryManagementClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ContainerRegistryManagementClient.java
new file mode 100644
index 000000000000..07ca795007c9
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ContainerRegistryManagementClient.java
@@ -0,0 +1,144 @@
+// 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.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ContainerRegistryManagementClient class. */
+public interface ContainerRegistryManagementClient {
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the ConnectedRegistriesClient object to access its operations.
+ *
+ * @return the ConnectedRegistriesClient object.
+ */
+ ConnectedRegistriesClient getConnectedRegistries();
+
+ /**
+ * Gets the ExportPipelinesClient object to access its operations.
+ *
+ * @return the ExportPipelinesClient object.
+ */
+ ExportPipelinesClient getExportPipelines();
+
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ RegistriesClient getRegistries();
+
+ /**
+ * Gets the ImportPipelinesClient object to access its operations.
+ *
+ * @return the ImportPipelinesClient object.
+ */
+ ImportPipelinesClient getImportPipelines();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the PipelineRunsClient object to access its operations.
+ *
+ * @return the PipelineRunsClient object.
+ */
+ PipelineRunsClient getPipelineRuns();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the ReplicationsClient object to access its operations.
+ *
+ * @return the ReplicationsClient object.
+ */
+ ReplicationsClient getReplications();
+
+ /**
+ * Gets the ScopeMapsClient object to access its operations.
+ *
+ * @return the ScopeMapsClient object.
+ */
+ ScopeMapsClient getScopeMaps();
+
+ /**
+ * Gets the TokensClient object to access its operations.
+ *
+ * @return the TokensClient object.
+ */
+ TokensClient getTokens();
+
+ /**
+ * Gets the WebhooksClient object to access its operations.
+ *
+ * @return the WebhooksClient object.
+ */
+ WebhooksClient getWebhooks();
+
+ /**
+ * Gets the AgentPoolsClient object to access its operations.
+ *
+ * @return the AgentPoolsClient object.
+ */
+ AgentPoolsClient getAgentPools();
+
+ /**
+ * Gets the RunsClient object to access its operations.
+ *
+ * @return the RunsClient object.
+ */
+ RunsClient getRuns();
+
+ /**
+ * Gets the TaskRunsClient object to access its operations.
+ *
+ * @return the TaskRunsClient object.
+ */
+ TaskRunsClient getTaskRuns();
+
+ /**
+ * Gets the TasksClient object to access its operations.
+ *
+ * @return the TasksClient object.
+ */
+ TasksClient getTasks();
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ExportPipelinesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ExportPipelinesClient.java
new file mode 100644
index 000000000000..02f7c458b3e5
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ExportPipelinesClient.java
@@ -0,0 +1,212 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ExportPipelineInner;
+
+/** An instance of this class provides access to all the operations defined in ExportPipelinesClient. */
+public interface ExportPipelinesClient {
+ /**
+ * Gets the properties of the export pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @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 properties of the export pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportPipelineInner get(String resourceGroupName, String registryName, String exportPipelineName);
+
+ /**
+ * Gets the properties of the export pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @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 properties of the export pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String exportPipelineName, Context context);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @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 an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ExportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @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 an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ExportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @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 an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @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 an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String exportPipelineName);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String exportPipelineName, Context context);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String exportPipelineName);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String exportPipelineName, Context context);
+
+ /**
+ * Lists all export pipelines for the specified container registry.
+ *
+ * @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 result of a request to list export pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all export pipelines for the specified container registry.
+ *
+ * @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 result of a request to list export pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ImportPipelinesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ImportPipelinesClient.java
new file mode 100644
index 000000000000..938f858ecb9f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ImportPipelinesClient.java
@@ -0,0 +1,212 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ImportPipelineInner;
+
+/** An instance of this class provides access to all the operations defined in ImportPipelinesClient. */
+public interface ImportPipelinesClient {
+ /**
+ * Gets the properties of the import pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @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 properties of the import pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImportPipelineInner get(String resourceGroupName, String registryName, String importPipelineName);
+
+ /**
+ * Gets the properties of the import pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @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 properties of the import pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String importPipelineName, Context context);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @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 an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @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 an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @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 an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @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 an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String importPipelineName);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String importPipelineName, Context context);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String importPipelineName);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String importPipelineName, Context context);
+
+ /**
+ * Lists all import pipelines for the specified container registry.
+ *
+ * @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 result of a request to list import pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all import pipelines for the specified container registry.
+ *
+ * @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 result of a request to list import pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/OperationsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/OperationsClient.java
new file mode 100644
index 000000000000..91c3ec8fd033
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.OperationDefinitionInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ *
+ * @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 result of a request to list container registry operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ *
+ * @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 result of a request to list container registry operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PipelineRunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PipelineRunsClient.java
new file mode 100644
index 000000000000..27abcbc7b718
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PipelineRunsClient.java
@@ -0,0 +1,212 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.PipelineRunInner;
+
+/** An instance of this class provides access to all the operations defined in PipelineRunsClient. */
+public interface PipelineRunsClient {
+ /**
+ * Gets the detailed information for a given pipeline run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @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 detailed information for a given pipeline run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineRunInner get(String resourceGroupName, String registryName, String pipelineRunName);
+
+ /**
+ * Gets the detailed information for a given pipeline run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @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 detailed information for a given pipeline run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String pipelineRunName, Context context);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @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 an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PipelineRunInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @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 an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PipelineRunInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters,
+ Context context);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @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 an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineRunInner create(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @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 an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineRunInner create(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String pipelineRunName);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String pipelineRunName, Context context);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String pipelineRunName);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String pipelineRunName, Context context);
+
+ /**
+ * Lists all the pipeline runs for the specified container registry.
+ *
+ * @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 result of a request to list pipeline runs for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the pipeline runs for the specified container registry.
+ *
+ * @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 result of a request to list pipeline runs for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..45c6f74de6a0
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,213 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Get the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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 specified private endpoint connection associated with the container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName);
+
+ /**
+ * Get the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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 specified private endpoint connection associated with the container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @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 an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @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 an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @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 an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @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 an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * List all private endpoint connections in a container registry.
+ *
+ * @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 result of a request to list private endpoint connections for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List all private endpoint connections in a container registry.
+ *
+ * @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 result of a request to list private endpoint connections for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RegistriesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RegistriesClient.java
new file mode 100644
index 000000000000..1271ec5eb59b
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RegistriesClient.java
@@ -0,0 +1,647 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.GenerateCredentialsResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryListCredentialsResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryNameStatusInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryUsageListResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RunInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.SourceUploadDefinitionInner;
+import com.azure.resourcemanager.containerregistry.generated.models.GenerateCredentialsParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.ImportImageParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.RegenerateCredentialParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.RegistryNameCheckRequest;
+import com.azure.resourcemanager.containerregistry.generated.models.RegistryUpdateParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.RunRequest;
+
+/** An instance of this class provides access to all the operations defined in RegistriesClient. */
+public interface RegistriesClient {
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginImportImage(
+ String resourceGroupName, String registryName, ImportImageParameters parameters);
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginImportImage(
+ String resourceGroupName, String registryName, ImportImageParameters parameters, Context context);
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void importImage(String resourceGroupName, String registryName, ImportImageParameters parameters);
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void importImage(String resourceGroupName, String registryName, ImportImageParameters parameters, Context context);
+
+ /**
+ * Checks whether the container registry name is available for use. The name must contain only alphanumeric
+ * characters, be globally unique, and between 5 and 50 characters in length.
+ *
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @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 result of a request to check the availability of a container registry name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryNameStatusInner checkNameAvailability(RegistryNameCheckRequest registryNameCheckRequest);
+
+ /**
+ * Checks whether the container registry name is available for use. The name must contain only alphanumeric
+ * characters, be globally unique, and between 5 and 50 characters in length.
+ *
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @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 result of a request to check the availability of a container registry name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ RegistryNameCheckRequest registryNameCheckRequest, Context context);
+
+ /**
+ * Gets the properties of the specified container registry.
+ *
+ * @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 properties of the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner getByResourceGroup(String resourceGroupName, String registryName);
+
+ /**
+ * Gets the properties of the specified container registry.
+ *
+ * @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 properties of the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginCreate(
+ String resourceGroupName, String registryName, RegistryInner registry);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginCreate(
+ String resourceGroupName, String registryName, RegistryInner registry, Context context);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner create(String resourceGroupName, String registryName, RegistryInner registry);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner create(String resourceGroupName, String registryName, RegistryInner registry, Context context);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginUpdate(
+ String resourceGroupName, String registryName, RegistryUpdateParameters registryUpdateParameters);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ RegistryUpdateParameters registryUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner update(
+ String resourceGroupName, String registryName, RegistryUpdateParameters registryUpdateParameters);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a 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 an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner update(
+ String resourceGroupName,
+ String registryName,
+ RegistryUpdateParameters registryUpdateParameters,
+ Context context);
+
+ /**
+ * Lists all the container registries under the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @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 result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all the container registries under the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @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 result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all the container registries under the specified subscription.
+ *
+ * @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 result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the container registries under the specified subscription.
+ *
+ * @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 result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists the login credentials for the specified container registry.
+ *
+ * @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 response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryListCredentialsResultInner listCredentials(String resourceGroupName, String registryName);
+
+ /**
+ * Lists the login credentials for the specified container registry.
+ *
+ * @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 response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listCredentialsWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Regenerates one of the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated -- password or
+ * password2.
+ * @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 response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryListCredentialsResultInner regenerateCredential(
+ String resourceGroupName, String registryName, RegenerateCredentialParameters regenerateCredentialParameters);
+
+ /**
+ * Regenerates one of the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated -- password or
+ * password2.
+ * @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 response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateCredentialWithResponse(
+ String resourceGroupName,
+ String registryName,
+ RegenerateCredentialParameters regenerateCredentialParameters,
+ Context context);
+
+ /**
+ * Gets the quota usages for the specified container registry.
+ *
+ * @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 quota usages for the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryUsageListResultInner listUsages(String resourceGroupName, String registryName);
+
+ /**
+ * Gets the quota usages for the specified container registry.
+ *
+ * @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 quota usages for the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listUsagesWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Lists the private link resources for a container registry.
+ *
+ * @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 result of a request to list private link resources for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listPrivateLinkResources(String resourceGroupName, String registryName);
+
+ /**
+ * Lists the private link resources for a container registry.
+ *
+ * @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 result of a request to list private link resources for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listPrivateLinkResources(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @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 response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GenerateCredentialsResultInner> beginGenerateCredentials(
+ String resourceGroupName, String registryName, GenerateCredentialsParameters generateCredentialsParameters);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @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 response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GenerateCredentialsResultInner> beginGenerateCredentials(
+ String resourceGroupName,
+ String registryName,
+ GenerateCredentialsParameters generateCredentialsParameters,
+ Context context);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @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 response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenerateCredentialsResultInner generateCredentials(
+ String resourceGroupName, String registryName, GenerateCredentialsParameters generateCredentialsParameters);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @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 response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenerateCredentialsResultInner generateCredentials(
+ String resourceGroupName,
+ String registryName,
+ GenerateCredentialsParameters generateCredentialsParameters,
+ 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceUploadDefinitionInner getBuildSourceUploadUrl(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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getBuildSourceUploadUrlWithResponse(
+ String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ReplicationsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ReplicationsClient.java
new file mode 100644
index 000000000000..923bb100118a
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ReplicationsClient.java
@@ -0,0 +1,287 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ReplicationInner;
+import com.azure.resourcemanager.containerregistry.generated.models.ReplicationUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in ReplicationsClient. */
+public interface ReplicationsClient {
+ /**
+ * Gets the properties of the specified replication.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @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 properties of the specified replication.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner get(String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Gets the properties of the specified replication.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @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 properties of the specified replication.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String replicationName, Context context);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginCreate(
+ String resourceGroupName, String registryName, String replicationName, ReplicationInner replication);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationInner replication,
+ Context context);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner create(
+ String resourceGroupName, String registryName, String replicationName, ReplicationInner replication);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner create(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationInner replication,
+ Context context);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String replicationName, Context context);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String replicationName, Context context);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner update(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @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 an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner update(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters,
+ Context context);
+
+ /**
+ * Lists all the replications for the specified container registry.
+ *
+ * @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 result of a request to list replications for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the replications for the specified container registry.
+ *
+ * @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 result of a request to list replications for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RunsClient.java
new file mode 100644
index 000000000000..18901f2a284f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RunsClient.java
@@ -0,0 +1,240 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RunGetLogResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RunInner;
+import com.azure.resourcemanager.containerregistry.generated.models.RunUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in RunsClient. */
+public interface RunsClient {
+ /**
+ * Gets all the runs for a registry.
+ *
+ * @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 all the runs for a registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Gets all the runs for a registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param filter The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed
+ * string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed.
+ * @param top $top is supported for get list of runs, which limits the maximum number of runs to return.
+ * @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 all the runs for a registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String filter, Integer top, Context context);
+
+ /**
+ * Gets the detailed information for a given run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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 detailed information for a given run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner get(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Gets the detailed information for a given run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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 detailed information for a given run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String registryName, String runId, Context context);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @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)
+ SyncPoller, RunInner> beginUpdate(
+ String resourceGroupName, String registryName, String runId, RunUpdateParameters runUpdateParameters);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @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)
+ SyncPoller, RunInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String runId,
+ RunUpdateParameters runUpdateParameters,
+ Context context);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @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 update(
+ String resourceGroupName, String registryName, String runId, RunUpdateParameters runUpdateParameters);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @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 update(
+ String resourceGroupName,
+ String registryName,
+ String runId,
+ RunUpdateParameters runUpdateParameters,
+ Context context);
+
+ /**
+ * Gets a link to download the run logs.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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 a link to download the run logs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunGetLogResultInner getLogSasUrl(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Gets a link to download the run logs.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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 a link to download the run logs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getLogSasUrlWithResponse(
+ String resourceGroupName, String registryName, String runId, Context context);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginCancel(
+ String resourceGroupName, String registryName, String runId, Context context);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String registryName, String runId, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ScopeMapsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ScopeMapsClient.java
new file mode 100644
index 000000000000..19a643e5345c
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ScopeMapsClient.java
@@ -0,0 +1,286 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ScopeMapInner;
+import com.azure.resourcemanager.containerregistry.generated.models.ScopeMapUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in ScopeMapsClient. */
+public interface ScopeMapsClient {
+ /**
+ * Gets the properties of the specified scope map.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @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 properties of the specified scope map.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner get(String resourceGroupName, String registryName, String scopeMapName);
+
+ /**
+ * Gets the properties of the specified scope map.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @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 properties of the specified scope map.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String scopeMapName, Context context);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginCreate(
+ String resourceGroupName, String registryName, String scopeMapName, ScopeMapInner scopeMapCreateParameters);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapInner scopeMapCreateParameters,
+ Context context);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner create(
+ String resourceGroupName, String registryName, String scopeMapName, ScopeMapInner scopeMapCreateParameters);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner create(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapInner scopeMapCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String scopeMapName);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String scopeMapName, Context context);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String scopeMapName);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String scopeMapName, Context context);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner update(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @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 an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner update(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters,
+ Context context);
+
+ /**
+ * Lists all the scope maps for the specified container registry.
+ *
+ * @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 result of a request to list scope maps for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the scope maps for the specified container registry.
+ *
+ * @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 result of a request to list scope maps for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TaskRunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TaskRunsClient.java
new file mode 100644
index 000000000000..7d0d8e8c3b98
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TaskRunsClient.java
@@ -0,0 +1,301 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.TaskRunInner;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskRunUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TaskRunsClient. */
+public interface TaskRunsClient {
+ /**
+ * Gets the detailed information for a given task run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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 detailed information for a given task run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner get(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Gets the detailed information for a given task run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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 detailed information for a given task run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun 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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginCreate(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun 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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginCreate(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun, Context context);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun 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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner create(String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun 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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner create(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun, Context context);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginUpdate(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunUpdateParameters updateParameters);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String taskRunName,
+ TaskRunUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner update(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunUpdateParameters updateParameters);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @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 task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner update(
+ String resourceGroupName,
+ String registryName,
+ String taskRunName,
+ TaskRunUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Gets the detailed information for a given task run that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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 detailed information for a given task run that includes all secrets.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner getDetails(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Gets the detailed information for a given task run that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @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 detailed information for a given task run that includes all secrets.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetailsWithResponse(
+ String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Lists all the task runs for a specified container registry.
+ *
+ * @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 collection of task runs.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the task runs for a specified container registry.
+ *
+ * @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 collection of task runs.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TasksClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TasksClient.java
new file mode 100644
index 000000000000..85eb13cfb095
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TasksClient.java
@@ -0,0 +1,309 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.TaskInner;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TasksClient. */
+public interface TasksClient {
+ /**
+ * Lists all the tasks for a specified container registry.
+ *
+ * @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 collection of tasks.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the tasks for a specified container registry.
+ *
+ * @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 collection of tasks.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get the properties of a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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 properties of a specified task.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner get(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Get the properties of a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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 properties of a specified task.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String taskName, Context context);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginCreate(
+ String resourceGroupName, String registryName, String taskName, TaskInner taskCreateParameters);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskInner taskCreateParameters,
+ Context context);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner create(String resourceGroupName, String registryName, String taskName, TaskInner taskCreateParameters);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner create(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskInner taskCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String taskName, Context context);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskName, Context context);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginUpdate(
+ String resourceGroupName, String registryName, String taskName, TaskUpdateParameters taskUpdateParameters);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskUpdateParameters taskUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner update(
+ String resourceGroupName, String registryName, String taskName, TaskUpdateParameters taskUpdateParameters);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner update(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskUpdateParameters taskUpdateParameters,
+ Context context);
+
+ /**
+ * Returns a task with extended information that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner getDetails(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Returns a task with extended information that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @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 task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetailsWithResponse(
+ String resourceGroupName, String registryName, String taskName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TokensClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TokensClient.java
new file mode 100644
index 000000000000..94cf106f136a
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TokensClient.java
@@ -0,0 +1,280 @@
+// 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.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+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.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.TokenInner;
+import com.azure.resourcemanager.containerregistry.generated.models.TokenUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TokensClient. */
+public interface TokensClient {
+ /**
+ * Gets the properties of the specified token.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @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 properties of the specified token.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner get(String resourceGroupName, String registryName, String tokenName);
+
+ /**
+ * Gets the properties of the specified token.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @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 properties of the specified token.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String tokenName, Context context);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @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 an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TokenInner> beginCreate(
+ String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @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 an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TokenInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String tokenName,
+ TokenInner tokenCreateParameters,
+ Context context);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @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 an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner create(
+ String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @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 an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner create(
+ String resourceGroupName,
+ String registryName,
+ String tokenName,
+ TokenInner tokenCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a token from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String tokenName);
+
+ /**
+ * Deletes a token from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller