diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 670f9828cc16..40b3f441380e 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -17,7 +17,7 @@
/sdk/core/ @alzimmermsft @jianghaolu @srnagar @hemanttanwar @anuchandy
/sdk/core/azure-core-tracing-opentelemetry/ @samvaity @alzimmermsft
/sdk/cosmos/ @moderakh @kushagraThapar @David-Noble-at-work @kirankumarkolli @mbhaskar
-/sdk/cosmos/azure-spring-data-cosmosdb/ @kushagraThapar
+/sdk/cosmos/azure-spring-data-cosmos/ @kushagraThapar @saragluna @yiliuTo @chenrujun @zhoufenqin @jialindai
/sdk/eventhubs/ @conniey @srnagar @mssfang
/sdk/formrecognizer/ @samvaity @mssfang @sima-zhu
/sdk/identity/ @schaabs @g2vinay @jianghaolu
@@ -27,7 +27,7 @@
/sdk/servicebus/ @yvgopal @nemakam @hemanttanwar @conniey
/sdk/storage/ @amishra-dev @rickle-msft @jaschrep-msft @gapra-msft @alzimmermsft @sima-zhu
/sdk/textanalytics/ @samvaity @mssfang @sima-zhu
-/sdk/spring/ @saragluna @yiliuTo @chenrujun @jialindai
+/sdk/spring/ @saragluna @yiliuTo @chenrujun @zhoufenqin @jialindai
# end to end tests
/sdk/e2e/ @jianghaolu @g2vinay
diff --git a/.gitignore b/.gitignore
index b95a70475b31..8071d0f700c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -68,3 +68,4 @@ package-lock.json
# VS Code
.vscode/
.factorypath
+jacoco.exec
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 43e86e06b205..80be7a0bc41e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -87,6 +87,22 @@ Some live tests may have additional steps for setting up live testing resources.
See the CONTRIBUTING.md file for the service you wish to test for additional
information or instructions.
+### Workaround for Checkstyle error
+
+When building locally you might run into a Checkstyle such as the following:
+
+```
+Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check failed:
+Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0 or one of its dependencies could not be resolved:
+Could not find artifact com.azure:sdk-build-tools:jar:1.0.0 in ossrh (https://oss.sonatype.org/content/repositories/snapshots/)
+```
+
+This is because the `sdk-build-tools` project isn't released to Maven. To resolve this issue you'll need to copy the `eng` folder locally then install `sdk-build-tools`.
+
+`mvn clean install eng/code-quality-reports/pom.xml`
+
+All code in the Azure SDKs for Java repository must pass Checkstyle before being merged. The `sdk-build-tools` is updated periodically, so if a new branch fails Checkstyle you'll need to reinstall.
+
## Versions and versioning
Tooling has been introduced to centralize versioning and help ease the pain of updating artifact versions in POM and README files. Under the eng\versioning directory there exists version text files, one for client ([version_client.txt](./eng/versioning/version_client.txt)) and one for data ([version_data.txt](./eng/versioning/version_data.txt)). The format of the version files is as follows:
diff --git a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml
index 11048593d743..ae6c3fffe457 100755
--- a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml
+++ b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml
@@ -417,6 +417,8 @@
+
+
@@ -472,9 +474,9 @@
+ files="com.azure.spring.data.cosmos.config.AbstractCosmosConfiguration.java"/>
+ files="com.azure.spring.data.cosmos.core.query.CosmosPageRequest.java"/>
@@ -483,9 +485,9 @@
-
-
-
-
+
+
+
+
diff --git a/eng/code-quality-reports/src/main/resources/revapi/revapi.json b/eng/code-quality-reports/src/main/resources/revapi/revapi.json
index 20d914254b04..e5f86b0a9328 100644
--- a/eng/code-quality-reports/src/main/resources/revapi/revapi.json
+++ b/eng/code-quality-reports/src/main/resources/revapi/revapi.json
@@ -16,7 +16,9 @@
"com\\.microsoft\\.spring\\..+",
"javax\\.jms(\\..+)?",
"javax\\.servlet(\\..+)?",
- "io\\.micrometer(\\..+)?"
+ "io\\.micrometer(\\..+)?",
+ "com\\.azure\\.data\\.cosmos(\\..+)?",
+ "com\\.azure\\.spring\\.data\\.cosmos\\..+"
]
}
}
diff --git a/eng/common/Update-Change-Log.ps1 b/eng/common/Update-Change-Log.ps1
index d50316f223b7..a819a05e8bb2 100644
--- a/eng/common/Update-Change-Log.ps1
+++ b/eng/common/Update-Change-Log.ps1
@@ -27,10 +27,10 @@ function Get-ChangelogPath($Path)
{
# Check if CHANGELOG.md is present in path
$ChangeLogPath = Join-Path -Path $Path -ChildPath "CHANGELOG.md"
- if ((Test-Path -Path $ChangeLogPath) -eq $False){
+ if ((Test-Path -Path $ChangeLogPath) -eq $False) {
# Check if change log exists with name HISTORY.md
$ChangeLogPath = Join-Path -Path $Path -ChildPath "HISTORY.md"
- if ((Test-Path -Path $ChangeLogPath) -eq $False){
+ if ((Test-Path -Path $ChangeLogPath) -eq $False) {
Write-Host "Change log is not found in path[$Path]"
exit(1)
}
@@ -45,7 +45,7 @@ function Get-VersionTitle($Version, $Unreleased)
{
# Generate version title
$newVersionTitle = "## $Version $UNRELEASED_TAG"
- if ($Unreleased -eq $False){
+ if ($Unreleased -eq $False) {
$releaseDate = Get-Date -Format "(yyyy-MM-dd)"
$newVersionTitle = "## $Version $releaseDate"
}
@@ -67,10 +67,10 @@ function Get-NewChangeLog( [System.Collections.ArrayList]$ChangelogLines, $Versi
# Version increment tool passes replaceversion as False and Unreleased as True
$is_version_increment = $ReplaceVersion -eq $False -and $Unreleased -eq $True
- for(; $Index -lt $ChangelogLines.Count; $Index++){
- if (Version-Matches($ChangelogLines[$Index])){
+ for (; $Index -lt $ChangelogLines.Count; $Index++) {
+ if (Version-Matches($ChangelogLines[$Index])) {
# Find current title in change log
- if( -not $CurrentTitle){
+ if( -not $CurrentTitle) {
$CurrentTitle = $ChangelogLines[$Index]
$CurrentIndex = $Index
Write-Host "Current Version title: $CurrentTitle"
@@ -80,7 +80,7 @@ function Get-NewChangeLog( [System.Collections.ArrayList]$ChangelogLines, $Versi
# update change log script is triggered for all packages with current version for Java ( or any language where version is maintained in common file)
# and this can cause an issue if someone changes changelog manually to prepare for release without updating actual version in central version file
# Do not add new line or replace existing title when version is already present and script is triggered to add new line
- if ($is_version_increment -and $ChangelogLines[$Index].Contains($Version)){
+ if ($is_version_increment -and $ChangelogLines[$Index].Contains($Version)) {
Write-Host "Version is already present in change log."
exit(0)
}
@@ -90,26 +90,24 @@ function Get-NewChangeLog( [System.Collections.ArrayList]$ChangelogLines, $Versi
# Generate version title
$newVersionTitle = Get-VersionTitle -Version $Version -Unreleased $Unreleased
- if( $newVersionTitle -eq $CurrentTitle){
+ if( $newVersionTitle -eq $CurrentTitle) {
Write-Host "No change is required in change log. Version is already present."
exit(0)
}
-
-
- if (($ReplaceVersion -eq $True) -and ($Unreleased -eq $False) -and (-not $CurrentTitle.Contains($UNRELEASED_TAG))){
+ if (($ReplaceVersion -eq $True) -and ($Unreleased -eq $False) -and $CurrentTitle.Contains($version) -and (-not $CurrentTitle.Contains($UNRELEASED_TAG))) {
Write-Host "Version is already present in change log with a release date."
exit(0)
}
# if current version title already has new version then we should replace title to update it
- if ($CurrentTitle.Contains($Version) -and $ReplaceVersion -eq $False){
+ if ($CurrentTitle.Contains($Version) -and $ReplaceVersion -eq $False) {
Write-Host "Version is already present in title. Updating version title"
$ReplaceVersion = $True
}
# if version is already found and not replacing then nothing to do
- if ($ReplaceVersion -eq $False){
+ if ($ReplaceVersion -eq $False) {
Write-Host "Adding version title $newVersionTitle"
$ChangelogLines.insert($CurrentIndex, "")
$ChangelogLines.insert($CurrentIndex, "")
@@ -121,24 +119,28 @@ function Get-NewChangeLog( [System.Collections.ArrayList]$ChangelogLines, $Versi
$ChangelogLines[$CurrentIndex] = $newVersionTitle
}
- return $ChangelogLines
+ return $ChangelogLines
}
# Make sure path is valid
-if ((Test-Path -Path $ChangeLogPath) -eq $False){
+if ((Test-Path -Path $ChangeLogPath) -eq $False) {
Write-Host "Change log path is invalid. [$ChangeLogPath]"
exit(1)
}
# probe change log path if path is directory
-if (Test-Path -Path $ChangeLogPath -PathType Container)
-{
+if (Test-Path -Path $ChangeLogPath -PathType Container) {
$ChangeLogPath = Get-ChangelogPath -Path $ChangeLogPath
}
# Read current change logs and add/update version
$ChangelogLines = [System.Collections.ArrayList](Get-Content -Path $ChangeLogPath)
+
+if ($null -eq $ChangelogLines) {
+ $ChangelogLines = @()
+}
+
$NewContents = Get-NewChangeLog -ChangelogLines $ChangelogLines -Version $Version -Unreleased $Unreleased -ReplaceVersion $ReplaceVersion
Write-Host "Writing change log to file [$ChangeLogPath]"
diff --git a/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml b/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
new file mode 100644
index 000000000000..2e10f695c998
--- /dev/null
+++ b/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
@@ -0,0 +1,12 @@
+# This script fragment is used across our repos to set a variable "SetDevVersion" which
+# is used when this pipeline is going to be generating and publishing daily dev builds.
+
+steps:
+- pwsh: |
+ $setDailyDevBuild = "false"
+ if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) {
+ $setDailyDevBuild = "true"
+ }
+ echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild"
+ displayName: "Setup Versioning Properties"
+ condition: eq(variables['SetDevVersion'], '')
diff --git a/eng/common/pipelines/templates/steps/verify-changelog.yml b/eng/common/pipelines/templates/steps/verify-changelog.yml
index 914adcc660e8..f6005124a87f 100644
--- a/eng/common/pipelines/templates/steps/verify-changelog.yml
+++ b/eng/common/pipelines/templates/steps/verify-changelog.yml
@@ -21,5 +21,5 @@ steps:
-ForRelease $${{ parameters.ForRelease }}
pwsh: true
workingDirectory: $(Pipeline.Workspace)
- displayName: Verify ChangeLog / Release Notes
+ displayName: Verify ChangeLogEntry for ${{ parameters.PackageName }}
continueOnError: false
\ No newline at end of file
diff --git a/eng/common/scripts/Verify-ChangeLog.ps1 b/eng/common/scripts/Verify-ChangeLog.ps1
index 816a82f5bcb2..c9ad4d295644 100644
--- a/eng/common/scripts/Verify-ChangeLog.ps1
+++ b/eng/common/scripts/Verify-ChangeLog.ps1
@@ -11,21 +11,29 @@ param (
[boolean]$ForRelease=$False
)
+$ProgressPreference = "SilentlyContinue"
. (Join-Path $PSScriptRoot SemVer.ps1)
Import-Module (Join-Path $PSScriptRoot modules ChangeLog-Operations.psm1)
-if ((Test-Path $ChangeLogLocation) -and -not([System.String]::IsNullOrEmpty($VersionString)))
+$validChangeLog = $false
+if ($ChangeLogLocation -and $VersionString)
{
- Confirm-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString -ForRelease $ForRelease
+ $validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString -ForRelease $ForRelease
}
else
{
- Import-Module (Join-Path $PSScriptRoot modules Package-Properties.psm1)
- if ([System.String]::IsNullOrEmpty($Language))
- {
- $Language = $RepoName.Substring($RepoName.LastIndexOf('-') + 1)
- }
+ Import-Module (Join-Path $PSScriptRoot modules Package-Properties.psm1)
+ if ([System.String]::IsNullOrEmpty($Language))
+ {
+ $Language = $RepoName.Substring($RepoName.LastIndexOf('-') + 1)
+ }
- $PackageProp = Get-PkgProperties -PackageName $PackageName -ServiceName $ServiceName -Language $Language -RepoRoot $RepoRoot
- Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.pkgChangeLogPath -VersionString $PackageProp.pkgVersion -ForRelease $ForRelease
-}
\ No newline at end of file
+ $PackageProp = Get-PkgProperties -PackageName $PackageName -ServiceName $ServiceName -Language $Language -RepoRoot $RepoRoot
+ $validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.pkgChangeLogPath -VersionString $PackageProp.pkgVersion -ForRelease $ForRelease
+}
+
+if (!$validChangeLog) {
+ exit 1
+}
+
+exit 0
\ No newline at end of file
diff --git a/eng/common/scripts/create-tags-and-git-release.ps1 b/eng/common/scripts/create-tags-and-git-release.ps1
index cec45536b704..1667cddd7e22 100644
--- a/eng/common/scripts/create-tags-and-git-release.ps1
+++ b/eng/common/scripts/create-tags-and-git-release.ps1
@@ -6,7 +6,6 @@ param (
# used by VerifyPackages
$artifactLocation, # the root of the artifact folder. DevOps $(System.ArtifactsDirectory)
$workingDirectory, # directory that package artifacts will be extracted into for examination (if necessary)
- [ValidateSet("Nuget","NPM","PyPI","Maven")]
$packageRepository, # used to indicate destination against which we will check the existing version.
# valid options: PyPI, Nuget, NPM, Maven, C
# used by CreateTags
diff --git a/eng/common/scripts/modules/ChangeLog-Operations.psm1 b/eng/common/scripts/modules/ChangeLog-Operations.psm1
index 5c173876124e..5aed584d018b 100644
--- a/eng/common/scripts/modules/ChangeLog-Operations.psm1
+++ b/eng/common/scripts/modules/ChangeLog-Operations.psm1
@@ -11,8 +11,8 @@ function Get-ChangeLogEntries {
$changeLogEntries = @{}
if (!(Test-Path $ChangeLogLocation)) {
- Write-Host "ChangeLog '{0}' was not found" -f $ChangeLogLocation
- exit 1
+ Write-Error "ChangeLog[${ChangeLogLocation}] does not exist"
+ return $null
}
try {
@@ -51,14 +51,12 @@ function Get-ChangeLogEntry {
[Parameter(Mandatory = $true)]
[String]$VersionString
)
-
$changeLogEntries = Get-ChangeLogEntries -ChangeLogLocation $ChangeLogLocation
- if ($changeLogEntries.ContainsKey($VersionString)) {
+ if ($changeLogEntries -and $changeLogEntries.ContainsKey($VersionString)) {
return $changeLogEntries[$VersionString]
}
- Write-Error "Release Notes for the Specified version ${VersionString} was not found"
- exit 1
+ return $null
}
#Returns the changelog for a particular version as string
@@ -70,9 +68,16 @@ function Get-ChangeLogEntryAsString {
[String]$VersionString
)
- $changeLogEntries = Get-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString
- [string]$releaseTitle = $changeLogEntries.ReleaseTitle
- [string]$releaseContent = $changeLogEntries.ReleaseContent -Join [Environment]::NewLine
+ $changeLogEntry = Get-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString
+ return ChangeLogEntryAsString $changeLogEntry
+}
+
+function ChangeLogEntryAsString($changeLogEntry) {
+ if (!$changeLogEntry) {
+ return "[Missing change log entry]"
+ }
+ [string]$releaseTitle = $changeLogEntry.ReleaseTitle
+ [string]$releaseContent = $changeLogEntry.ReleaseContent -Join [Environment]::NewLine
return $releaseTitle, $releaseContent -Join [Environment]::NewLine
}
@@ -87,28 +92,33 @@ function Confirm-ChangeLogEntry {
$changeLogEntry = Get-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString
+ if (!$changeLogEntry) {
+ Write-Error "ChangeLog[${ChangeLogLocation}] does not have an entry for version ${VersionString}."
+ return $false
+ }
+
+ Write-Host "Found the following change log entry for version '${VersionString}' in [${ChangeLogLocation}]."
+ Write-Host "-----"
+ Write-Host (ChangeLogEntryAsString $changeLogEntry)
+ Write-Host "-----"
+
if ([System.String]::IsNullOrEmpty($changeLogEntry.ReleaseStatus)) {
- Write-Host ("##[error]Changelog '{0}' has wrong release note title" -f $ChangeLogLocation)
- Write-Host "##[info]Ensure the release date is included i.e. (yyyy-MM-dd) or (Unreleased) if not yet released"
- exit 1
+ Write-Error "Entry does not have a correct release status. Please ensure the status is set to a date '(yyyy-MM-dd)' or '(Unreleased)' if not yet released."
+ return $false
}
if ($ForRelease -eq $True) {
- $CurrentDate = Get-Date -Format "yyyy-MM-dd"
- if ($changeLogEntry.ReleaseStatus -ne "($CurrentDate)") {
- Write-Host ("##[warning]Incorrect Date: Please use the current date in the Changelog '{0}' before releasing the package" -f $ChangeLogLocation)
- exit 1
+ if ($changeLogEntry.ReleaseStatus -eq "(Unreleased)") {
+ Write-Error "Entry has no release date set. Please ensure to set a release date with format 'yyyy-MM-dd'."
+ return $false
}
if ([System.String]::IsNullOrWhiteSpace($changeLogEntry.ReleaseContent)) {
- Write-Host ("##[error]Empty Release Notes for '{0}' in '{1}'" -f $VersionString, $ChangeLogLocation)
- Write-Host "##[info]Please ensure there is a release notes entry before releasing the package."
- exit 1
+ Write-Error "Entry has no content. Please ensure to provide some content of what changed in this version."
+ return $false
}
}
-
- Write-Host $changeLogEntry.ReleaseTitle
- Write-Host $changeLogEntry.ReleaseContent
+ return $true
}
Export-ModuleMember -Function 'Get-ChangeLogEntries'
diff --git a/eng/common/scripts/modules/Package-Properties.psm1 b/eng/common/scripts/modules/Package-Properties.psm1
index 294f6609dab8..fa6920bec349 100644
--- a/eng/common/scripts/modules/Package-Properties.psm1
+++ b/eng/common/scripts/modules/Package-Properties.psm1
@@ -3,13 +3,24 @@
class PackageProps
{
[string]$pkgName
- [AzureEngSemanticVersion]$pkgVersion
+ [string]$pkgVersion
[string]$pkgDirectoryPath
[string]$pkgServiceName
[string]$pkgReadMePath
[string]$pkgChangeLogPath
+ [string]$pkgGroup
- PackageProps(
+ PackageProps([string]$pkgName,[string]$pkgVersion,[string]$pkgDirectoryPath,[string]$pkgServiceName)
+ {
+ $this.Initialize($pkgName, $pkgVersion, $pkgDirectoryPath, $pkgServiceName)
+ }
+
+ PackageProps([string]$pkgName,[string]$pkgVersion,[string]$pkgDirectoryPath,[string]$pkgServiceName,[string]$pkgGroup="")
+ {
+ $this.Initialize($pkgName, $pkgVersion, $pkgDirectoryPath, $pkgServiceName, $pkgGroup)
+ }
+
+ hidden [void]Initialize(
[string]$pkgName,
[string]$pkgVersion,
[string]$pkgDirectoryPath,
@@ -17,11 +28,7 @@ class PackageProps
)
{
$this.pkgName = $pkgName
- $this.pkgVersion = [AzureEngSemanticVersion]::ParseVersionString($pkgVersion)
- if ($this.pkgVersion -eq $null)
- {
- Write-Error "Invalid version in $pkgDirectoryPath"
- }
+ $this.pkgVersion = $pkgVersion
$this.pkgDirectoryPath = $pkgDirectoryPath
$this.pkgServiceName = $pkgServiceName
@@ -43,8 +50,21 @@ class PackageProps
$this.pkgChangeLogPath = $null
}
}
+
+ hidden [void]Initialize(
+ [string]$pkgName,
+ [string]$pkgVersion,
+ [string]$pkgDirectoryPath,
+ [string]$pkgServiceName,
+ [string]$pkgGroup
+ )
+ {
+ $this.Initialize($pkgName, $pkgVersion, $pkgDirectoryPath, $pkgServiceName)
+ $this.pkgGroup = $pkgGroup
+ }
}
+$ProgressPreference = "SilentlyContinue"
Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser
function Extract-PkgProps ($pkgPath, $serviceName, $pkgName, $lang)
@@ -106,7 +126,7 @@ function Extract-PythonPkgProps ($pkgPath, $serviceName, $pkgName)
{
$setupLocation = $pkgPath.Replace('\','/')
pushd $RepoRoot
- $setupProps = (python -c "import scripts.devops_tasks.common_tasks; obj=scripts.devops_tasks.common_tasks.parse_setup('$setupLocation'); print('{0},{1}'.format(obj[0], obj[1]));") -split ","
+ $setupProps = (python -c "import sys; import os; sys.path.append(os.path.join('scripts', 'devops_tasks')); from common_tasks import parse_setup; obj=parse_setup('$setupLocation'); print('{0},{1}'.format(obj[0], obj[1]));") -split ","
popd
if (($setupProps -ne $null) -and ($setupProps[0] -eq $pkgName))
{
@@ -126,10 +146,11 @@ function Extract-JavaPkgProps ($pkgPath, $serviceName, $pkgName)
$projectData.load($projectPath)
$projectPkgName = $projectData.project.artifactId
$pkgVersion = $projectData.project.version
+ $pkgGroup = $projectData.project.groupId
if ($projectPkgName -eq $pkgName)
{
- return [PackageProps]::new($pkgName, $pkgVersion.ToString(), $pkgPath, $serviceName)
+ return [PackageProps]::new($pkgName, $pkgVersion.ToString(), $pkgPath, $serviceName, $pkgGroup)
}
}
return $null
@@ -239,8 +260,14 @@ function Get-PkgListFromYml ($ciYmlPath)
{
$ciYmlContent = Get-Content $ciYmlPath -Raw
$ciYmlObj = ConvertFrom-Yaml $ciYmlContent -Ordered
- $artifactsInCI = $ciYmlObj["stages"][0]["parameters"]["Artifacts"]
-
+ if ($ciYmlObj.Contains("stages"))
+ {
+ $artifactsInCI = $ciYmlObj["stages"][0]["parameters"]["Artifacts"]
+ }
+ elseif ($ciYmlObj.Contains("extends"))
+ {
+ $artifactsInCI = $ciYmlObj["extends"]["parameters"]["Artifacts"]
+ }
if ($artifactsInCI -eq $null)
{
Write-Error "Failed to retrive package names in ci $ciYmlPath"
diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml
index b809161b44bf..7de09b3ef763 100644
--- a/eng/jacoco-test-coverage/pom.xml
+++ b/eng/jacoco-test-coverage/pom.xml
@@ -39,7 +39,7 @@
com.azureazure-ai-formrecognizer
- 1.0.0-beta.4
+ 1.0.0-beta.5com.azure
@@ -49,7 +49,7 @@
com.azureazure-core
- 1.7.0-beta.1
+ 1.7.0-beta.2com.azure
@@ -79,7 +79,7 @@
com.azureazure-core-management
- 1.0.0-beta.2
+ 1.0.0-beta.3com.azure
@@ -174,27 +174,27 @@
com.azureazure-storage-common
- 12.8.0-beta.1
+ 12.8.0-beta.2com.azureazure-storage-blob
- 12.8.0-beta.1
+ 12.8.0-beta.2com.azureazure-storage-blob-batch
- 12.6.0-beta.1
+ 12.6.0-beta.2com.azureazure-storage-blob-changefeed
- 12.0.0-beta.1
+ 12.0.0-beta.2com.azureazure-storage-blob-cryptography
- 12.8.0-beta.1
+ 12.8.0-beta.2
@@ -205,22 +205,22 @@
com.azureazure-storage-file-share
- 12.6.0-beta.1
+ 12.6.0-beta.2com.azureazure-storage-file-datalake
- 12.2.0-beta.1
+ 12.2.0-beta.2com.azureazure-storage-internal-avro
- 12.0.0-beta.1
+ 12.0.0-beta.2com.azureazure-storage-queue
- 12.6.0-beta.1
+ 12.6.0-beta.2com.azure
@@ -274,9 +274,9 @@
2.3.3-beta.1
- com.microsoft.azure
- spring-data-cosmosdb
- 2.3.1-beta.1
+ com.azure
+ azure-spring-data-cosmos
+ 3.0.0-beta.1
diff --git a/eng/pipelines/client.yml b/eng/pipelines/client.yml
index 65e51ad9d8e7..b5ed0d6fc462 100644
--- a/eng/pipelines/client.yml
+++ b/eng/pipelines/client.yml
@@ -4,14 +4,6 @@
trigger:
- master
-resources:
- repositories:
- - repository: azure-sdk-tools
- type: github
- name: Azure/azure-sdk-tools
- endpoint: azure
- ref: refs/tags/azure-sdk-tools_20200618.1
-
variables:
DefaultOptions: '--batch-mode --fail-at-end -Dmaven.wagon.http.pool=false --settings eng/settings.xml'
LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml
index 89fa6c311098..add650b3cc4d 100644
--- a/eng/pipelines/docindex.yml
+++ b/eng/pipelines/docindex.yml
@@ -1,11 +1,3 @@
-resources:
- repositories:
- - repository: azure-sdk-tools
- type: github
- name: azure/azure-sdk-tools
- ref: refs/tags/azure-sdk-tools_20200618.1
- endpoint: azure
-
jobs:
- job: CreateDocIndex
variables:
@@ -18,7 +10,7 @@ jobs:
inputs:
versionSpec: '3.6'
- - template: eng/pipelines/templates/scripts/replace-relative-links.yml@azure-sdk-tools
+ - template: /eng/common/pipelines/templates/steps/replace-relative-links.yml
parameters:
TargetFolder: .
RootFolder: .
@@ -39,7 +31,7 @@ jobs:
displayName: 'Use Python 3.6'
inputs:
versionSpec: '3.6'
- - template: eng/pipelines/templates/scripts/mashup-doc-index.yml@azure-sdk-tools
+ - template: /eng/common/pipelines/templates/steps/mashup-doc-index.yml
parameters:
SourceDirectory: $(Build.SourcesDirectory)
- task: CopyFiles@2
diff --git a/eng/pipelines/scripts/generate_overview_from_readme.py b/eng/pipelines/scripts/generate_overview_from_readme.py
index e75b3aff7519..6b606a98777c 100644
--- a/eng/pipelines/scripts/generate_overview_from_readme.py
+++ b/eng/pipelines/scripts/generate_overview_from_readme.py
@@ -1,10 +1,10 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
-# Use case: Given a README.md file, generate a readme_overview.html file and place it next
+# Use case: Given a README.md file, generate a readme_overview.html file and place it next
# to the README.md. This will allow the javadocs jar step to append the contents of the
# readme onto the landing page.
-#
+#
# This script is necessary, instead of just invoking python markdown2 directly from the
# command line because the generated overview.html file needs to be enclosed inside of
# tags. When the attach-javadocs runs with the overview option it will append it the contents
@@ -19,6 +19,7 @@
import markdown2
import os.path
from io import open
+import re
import sys
def generate_overview(readme_file, version):
@@ -40,7 +41,7 @@ def generate_overview(readme_file, version):
# markdown2.markdown will create html from the readme.md file. The fenced-code-blocks
# extras being passed into the markdown call is necessary to deal with the embedded
# code blocks within the readme so they'll displaye correctly in the html
- html_readme_content = markdown2.markdown(readme_content, extras=["fenced-code-blocks"])
+ html_readme_content = markdown2.markdown(re.sub(pattern='^(\s*)@', repl='\g<1>{@literal @}', string=readme_content, flags=re.MULTILINE), extras=["fenced-code-blocks"])
# Due to javadoc's iFrames the links need to target new tabs otherwise hilarity ensues
soup = BeautifulSoup(html_readme_content, "html.parser")
diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml
index 67173c57d2c4..23e1e2c3d394 100644
--- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml
+++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml
@@ -64,7 +64,7 @@ jobs:
inputs:
versionSpec: '3.6'
- - template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools
+ - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
- ${{ each artifact in parameters.Artifacts }}:
- script: |
@@ -193,7 +193,7 @@ jobs:
displayName: 'Run SpotBugs, Checkstyle, RevApi, and Javadoc'
inputs:
mavenPomFile: pom.xml
- options: '--no-transfer-progress -DskipTests -Dgpg.skip -Dverify-readme-windows -pl $(ProjectList)'
+ options: '$(DefaultOptions) --no-transfer-progress -DskipTests -Dgpg.skip -Dverify-readme-windows -pl $(ProjectList)'
mavenOptions: '$(MemoryOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: $(JavaBuildVersion)
diff --git a/eng/pipelines/templates/jobs/archetype-sdk-data.yml b/eng/pipelines/templates/jobs/archetype-sdk-data.yml
index 5a17aee93df9..c0b0eb195c5a 100644
--- a/eng/pipelines/templates/jobs/archetype-sdk-data.yml
+++ b/eng/pipelines/templates/jobs/archetype-sdk-data.yml
@@ -55,7 +55,7 @@ jobs:
inputs:
versionSpec: '3.6'
- - template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools
+ - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
- ${{ each artifact in parameters.Artifacts }}:
- script: |
diff --git a/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml b/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml
index 314aa903aae8..c912ac39997f 100644
--- a/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml
+++ b/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml
@@ -29,7 +29,7 @@ jobs:
inputs:
versionSpec: '3.6'
- - template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools
+ - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
- script: |
pip install setuptools wheel
diff --git a/eng/pipelines/templates/stages/archetype-java-release.yml b/eng/pipelines/templates/stages/archetype-java-release.yml
index 5f001f020e67..75d2006a8d74 100644
--- a/eng/pipelines/templates/stages/archetype-java-release.yml
+++ b/eng/pipelines/templates/stages/archetype-java-release.yml
@@ -75,11 +75,12 @@ stages:
$(Build.SourcesDirectory)/eng/versioning/scan_for_unreleased_dependencies.ps1 ${{artifact.groupId}} ${{artifact.name}} $(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}
displayName: "Verify no unreleased dependencies"
- - template: /eng/common/pipelines/templates/steps/verify-changelog.yml
- parameters:
- PackageName: ${{artifact.name}}
- ServiceName: ${{parameters.ServiceDirectory}}
- ForRelease: true
+ - ${{if ne(parameters.SDKType, 'data')}}:
+ - template: /eng/common/pipelines/templates/steps/verify-changelog.yml
+ parameters:
+ PackageName: ${{artifact.name}}
+ ServiceName: ${{parameters.ServiceDirectory}}
+ ForRelease: true
- deployment: TagRepository
@@ -181,8 +182,8 @@ stages:
PRBranchName: 'smoke-test-rdme'
ArtifactName: ${{parameters.ArtifactName}}
Language: 'java'
- DocRepoDestinationPath: 'docs-ref-services/'
-
+ DocRepoDestinationPath: 'docs-ref-services/'
+
- ${{if ne(artifact.options.skipPublishDocs, 'true')}}:
- deployment: PublishDocs
displayName: Publish Docs to GitHubIO Blob Storage
diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml
index dee81478fecc..3f57cf4450bd 100644
--- a/eng/pipelines/templates/stages/archetype-sdk-client.yml
+++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml
@@ -4,11 +4,6 @@ resources:
type: git
name: internal/azure-sdk-build-tools
ref: refs/tags/azure-sdk-build-tools_20200618.4
- - repository: azure-sdk-tools
- type: github
- name: Azure/azure-sdk-tools
- endpoint: azure
- ref: refs/tags/azure-sdk-tools_20200618.1
parameters:
- name: Artifacts
diff --git a/eng/pipelines/templates/stages/archetype-sdk-data.yml b/eng/pipelines/templates/stages/archetype-sdk-data.yml
index e98003657c37..f0348c56ac18 100644
--- a/eng/pipelines/templates/stages/archetype-sdk-data.yml
+++ b/eng/pipelines/templates/stages/archetype-sdk-data.yml
@@ -4,11 +4,6 @@ resources:
type: git
name: internal/azure-sdk-build-tools
ref: refs/tags/azure-sdk-build-tools_20200618.4
- - repository: azure-sdk-tools
- type: github
- name: Azure/azure-sdk-tools
- endpoint: azure
- ref: refs/tags/azure-sdk-tools_20200618.1
parameters:
- name: Artifacts
diff --git a/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml b/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml
index dfb4a0ff6372..32fec8a1900c 100644
--- a/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml
+++ b/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml
@@ -4,11 +4,6 @@ resources:
type: git
name: internal/azure-sdk-build-tools
ref: refs/tags/azure-sdk-build-tools_20200618.4
- - repository: azure-sdk-tools
- type: github
- name: Azure/azure-sdk-tools
- endpoint: azure
- ref: refs/tags/azure-sdk-tools_20200618.1
parameters:
- name: Artifacts
diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml
index 3fea2eef3eea..d31b37c199e8 100644
--- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml
+++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml
@@ -4,11 +4,6 @@ resources:
type: git
name: internal/azure-sdk-build-tools
ref: refs/tags/azure-sdk-build-tools_20200618.4
- - repository: azure-sdk-tools
- type: github
- name: Azure/azure-sdk-tools
- endpoint: azure
- ref: refs/tags/azure-sdk-tools_20200618.1
parameters:
- name: Artifacts
@@ -86,6 +81,9 @@ stages:
ServiceDirectory: cosmos
Artifacts: ${{ parameters.Artifacts }}
AdditionalModules: ${{ parameters.AdditionalModules }}
+ # Increased timeout to 90 because of cosmos emulator taking 25-30 mins to download emulator
+ # Issue filed to improve download speed: https://github.com/Azure/azure-sdk-for-java/issues/12970
+ TimeoutInMinutes: 90
Matrix:
Tcp_Integration_Tests_Java8:
OSVmImage: 'windows-2019'
@@ -94,6 +92,7 @@ stages:
DisplayName: 'Emulator only Integration Tests'
PROTOCOLS: '["Tcp"]'
DESIRED_CONSISTENCIES: '["Strong", "Session"]'
+ AdditionalArgs: '-DargLine="-DACCOUNT_HOST=https://localhost:8081/"'
Https_Integration_Tests_Java8:
OSVmImage: 'windows-2019'
JavaTestVersion: '1.8'
@@ -101,10 +100,17 @@ stages:
DisplayName: 'Emulator only Integration Tests'
PROTOCOLS: '["Https"]'
DESIRED_CONSISTENCIES: '["Strong", "Session"]'
+ AdditionalArgs: '-DargLine="-DACCOUNT_HOST=https://localhost:8081/"'
+ Spring_Integration_Tests_Java8:
+ OSVmImage: 'windows-2019'
+ JavaTestVersion: '1.8'
+ ProfileFlag: '-P integration-test-emulator'
+ DisplayName: 'Spring Emulator only Integration Tests'
+ AdditionalArgs: '-DargLine="-DACCOUNT_HOST=https://localhost:8081/ -DACCOUNT_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw== -DSECONDARY_ACCOUNT_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="'
TestStepMavenInputs:
goals: 'verify'
- options: '$(ProfileFlag) -Dgpg.skip -DargLine="-DACCOUNT_HOST=https://localhost:8081/" -pl $(ProjectList)'
+ options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)'
mavenAuthenticateFeed: true
jdkVersionOption: $(JavaTestVersion)
diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml
index b2bb2acb9f96..611421186b18 100644
--- a/eng/pipelines/templates/variables/globals.yml
+++ b/eng/pipelines/templates/variables/globals.yml
@@ -1,6 +1,7 @@
variables:
DocWardenVersion: '0.5.0'
- DefaultOptions: '--batch-mode --fail-at-end --settings eng/settings.xml'
+ WagonOptions: '-Dmaven.wagon.rto=300000 -Dmaven.wagon.http.retryHandler.count=3'
+ DefaultOptions: '--batch-mode --fail-at-end --settings eng/settings.xml $(WagonOptions)'
LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
MemoryOptions: '-Xmx3072m'
#Agent.Source.Git.ShallowFetchDepth: 1
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 96713d963c8e..f3d41f3ad28e 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -4,15 +4,15 @@
com.azure:azure-sdk-all;1.0.0;1.0.0
com.azure:azure-sdk-parent;1.6.0;1.6.0
com.azure:azure-client-sdk-parent;1.7.0;1.7.0
-com.azure:azure-ai-formrecognizer;1.0.0-beta.3;1.0.0-beta.4
-com.azure:azure-ai-textanalytics;1.0.0;1.1.0-beta.1
-com.azure:azure-core;1.6.0;1.7.0-beta.1
+com.azure:azure-ai-formrecognizer;1.0.0-beta.4;1.0.0-beta.5
+com.azure:azure-ai-textanalytics;1.0.1;1.1.0-beta.1
+com.azure:azure-core;1.7.0-beta.1;1.7.0-beta.2
com.azure:azure-core-amqp;1.3.0;1.4.0-beta.1
com.azure:azure-core-experimental;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-core-http-jdk-httpclient;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-core-http-netty;1.5.3;1.6.0-beta.1
com.azure:azure-core-http-okhttp;1.2.4;1.3.0-beta.1
-com.azure:azure-core-management;1.0.0-beta.1;1.0.0-beta.2
+com.azure:azure-core-management;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-core-serializer-avro-apache;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-core-serializer-avro-jackson;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-core-serializer-json-gson;1.0.0-beta.1;1.0.0-beta.2
@@ -21,34 +21,39 @@ com.azure:azure-core-test;1.3.1;1.4.0-beta.1
com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.5;1.0.0-beta.6
com.azure:azure-cosmos;4.1.0;4.2.0-beta.1
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
-com.azure:azure-data-appconfiguration;1.1.2;1.2.0-beta.1
+com.azure:azure-data-appconfiguration;1.1.3;1.2.0-beta.1
com.azure:azure-data-schemaregistry;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-data-schemaregistry-avro;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-data-tables;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-e2e;1.0.0-beta.1;1.0.0-beta.1
-com.azure:azure-identity;1.0.7;1.1.0-beta.6
+com.azure:azure-identity;1.0.8;1.1.0-beta.6
com.azure:azure-identity-perf;1.0.0-beta.1;1.0.0-beta.1
-com.azure:azure-messaging-eventhubs;5.1.1;5.2.0-beta.1
-com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.1.1;1.2.0-beta.1
+com.azure:azure-messaging-eventhubs;5.1.2;5.2.0-beta.1
+com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.1.2;1.2.0-beta.1
com.azure:azure-messaging-servicebus;7.0.0-beta.3;7.0.0-beta.4
com.azure:azure-search-documents;1.0.0-beta.4;11.0.0
com.azure:azure-security-keyvault-certificates;4.0.4;4.1.0-beta.4
com.azure:azure-security-keyvault-keys;4.1.4;4.2.0-beta.5
com.azure:azure-security-keyvault-secrets;4.1.4;4.2.0-beta.4
com.azure:azure-sdk-template;1.0.4-beta.19;1.0.4-beta.20
-com.azure:azure-storage-blob;12.7.0;12.8.0-beta.1
-com.azure:azure-storage-blob-batch;12.5.2;12.6.0-beta.1
-com.azure:azure-storage-blob-changefeed;12.0.0-beta.1;12.0.0-beta.1
-com.azure:azure-storage-blob-cryptography;12.7.0;12.8.0-beta.1
+com.azure:azure-spring-data-cosmos;3.0.0-beta.1;3.0.0-beta.1
+com.azure:azure-storage-blob;12.8.0-beta.1;12.8.0-beta.2
+com.azure:azure-storage-blob-batch;12.6.0-beta.1;12.6.0-beta.2
+com.azure:azure-storage-blob-changefeed;12.0.0-beta.1;12.0.0-beta.2
+com.azure:azure-storage-blob-cryptography;12.8.0-beta.1;12.8.0-beta.2
com.azure:azure-storage-blob-nio;12.0.0-beta.1;12.0.0-beta.1
-com.azure:azure-storage-common;12.7.0;12.8.0-beta.1
-com.azure:azure-storage-file-share;12.5.0;12.6.0-beta.1
-com.azure:azure-storage-file-datalake;12.1.2;12.2.0-beta.1
-com.azure:azure-storage-internal-avro;12.0.0-beta.1;12.0.0-beta.1
+com.azure:azure-storage-common;12.8.0-beta.1;12.8.0-beta.2
+com.azure:azure-storage-file-share;12.6.0-beta.1;12.6.0-beta.2
+com.azure:azure-storage-file-datalake;12.2.0-beta.1;12.2.0-beta.2
+com.azure:azure-storage-internal-avro;12.0.0-beta.1;12.0.0-beta.2
com.azure:azure-storage-perf;1.0.0-beta.1;1.0.0-beta.1
-com.azure:azure-storage-queue;12.5.2;12.6.0-beta.1
+com.azure:azure-storage-queue;12.6.0-beta.1;12.6.0-beta.2
com.azure:perf-test-core;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-test-watcher;1.0.0-beta.1;1.0.0-beta.1
+com.azure:azure-spring-boot-test-aad;1.0.0;1.0.0
+com.azure:azure-spring-boot-test-core;1.0.0;1.0.0
+com.azure:azure-spring-boot-test-cosmosdb;1.0.0;1.0.0
+com.azure:azure-spring-boot-test-keyvault;1.0.0;1.0.0
com.microsoft.azure:azure-spring-boot;2.3.2;2.3.3-beta.1
com.microsoft.azure:azure-spring-boot-starter;2.3.2;2.3.3-beta.1
com.microsoft.azure:azure-active-directory-spring-boot-starter;2.3.2;2.3.3-beta.1
@@ -58,16 +63,13 @@ com.microsoft.azure:azure-data-gremlin-spring-boot-starter;2.3.2;2.3.3-beta.1
com.microsoft.azure:azure-keyvault-secrets-spring-boot-starter;2.3.2;2.3.3-beta.1
com.microsoft.azure:azure-servicebus-jms-spring-boot-starter;2.3.2;2.3.3-beta.1
com.microsoft.azure:azure-spring-boot-metrics-starter;2.3.2;2.3.3-beta.1
-com.microsoft.azure:azure-spring-boot-tests;2.3.2;2.3.3-beta.1
-com.microsoft.azure:azure-spring-boot-test-core;2.3.2;2.3.3-beta.1
-com.microsoft.azure:spring-data-cosmosdb;2.3.0;2.3.1-beta.1
+com.microsoft.azure:spring-data-cosmosdb;3.0.0-beta.1;3.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.
# Format;
# unreleased_:;dependency-version
# note: The unreleased dependencies will not be manipulated with the automatic PR creation code.
-unreleased_com.azure:azure-core;1.7.0-beta.1
unreleased_com.azure:azure-messaging-servicebus;7.0.0-beta.4
# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
@@ -77,3 +79,4 @@ unreleased_com.azure:azure-messaging-servicebus;7.0.0-beta.4
# Format;
# beta_:;dependency-version
# note: Released beta versions will not be manipulated with the automatic PR creation code.
+beta_com.azure:azure-core;1.7.0-beta.1
diff --git a/eng/versioning/version_data.txt b/eng/versioning/version_data.txt
index 74a67fd21514..66633f0b3a96 100644
--- a/eng/versioning/version_data.txt
+++ b/eng/versioning/version_data.txt
@@ -8,7 +8,7 @@ com.microsoft.azure:azure-applicationinsights-query;1.0.0-beta-2;1.0.0-beta-2
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-spellcheck;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-textanalytics;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-runtime;1.1.0-beta.1;1.1.0-beta.1
-com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.0.4-beta;1.0.4-beta
+com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.0.5-beta;1.0.5-beta
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-autosuggest;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customimagesearch;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customsearch;1.1.0-beta.1;1.1.0-beta.1
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-data-appconfiguration/CHANGELOG.md
index cdaca5446469..cefee3c23522 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-data-appconfiguration/CHANGELOG.md
@@ -2,6 +2,9 @@
## 1.2.0-beta.1 (Unreleased)
+## 1.1.3 (2020-07-07)
+- Update dependency version, `azure-core` to 1.6.0 and `azure-core-http-netty` to 1.5.3.
+
## 1.1.2 (2020-06-09)
- Update dependency version, `azure-core` to 1.5.1 and `azure-core-http-netty` to 1.5.2.
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/README.md b/sdk/appconfiguration/azure-data-appconfiguration/README.md
index 832dc3c61cdc..feee8189cf24 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration/README.md
+++ b/sdk/appconfiguration/azure-data-appconfiguration/README.md
@@ -23,12 +23,12 @@ Use the client library for App Configuration to create and manage application co
com.azureazure-data-appconfiguration
- 1.1.2
+ 1.1.3
```
[//]: # ({x-version-update-end})
-### Create an App Configuration Store
+#### Create an App Configuration Store
To create a Configuration Store you can use the Azure Portal or [Azure CLI][azure_cli].
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml
index be05c61b3990..dcbbf330b911 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml
+++ b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml
@@ -36,7 +36,7 @@
com.azureazure-core
- 1.6.0
+ 1.7.0-beta.1com.azure
@@ -90,7 +90,7 @@
com.azureazure-identity
- 1.0.7
+ 1.0.8test
diff --git a/sdk/appplatform/mgmt/.gitignore b/sdk/appplatform/mgmt/.gitignore
new file mode 100644
index 000000000000..f537a954e09a
--- /dev/null
+++ b/sdk/appplatform/mgmt/.gitignore
@@ -0,0 +1,2 @@
+/piggymetrics
+# folder created in unit test
diff --git a/sdk/appplatform/mgmt/pom.xml b/sdk/appplatform/mgmt/pom.xml
new file mode 100644
index 000000000000..6b323b92c0cf
--- /dev/null
+++ b/sdk/appplatform/mgmt/pom.xml
@@ -0,0 +1,139 @@
+
+
+ 4.0.0
+
+ com.azure.resourcemanager
+ azure-resourcemanager-parent
+ 2.0.0-SNAPSHOT
+ ../../management/pom.xml
+
+
+ azure-resourcemanager-appplatform
+ jar
+
+ Microsoft Azure SDK for App Platform Management
+ This package contains Microsoft Azure App Platform Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ UTF-8
+
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.0.0-SNAPSHOT
+
+
+ com.azure
+ azure-storage-file-share
+ 12.5.0
+
+
+ org.apache.commons
+ commons-compress
+ 1.20
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+ com.azure
+ azure-core-http-netty
+ test
+
+
+ com.azure
+ azure-identity
+ test
+
+
+
+
+ azure-mgmt-sdk-test-jar
+
+
+ !maven.test.skip
+
+
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.0.0-SNAPSHOT
+ test-jar
+ test
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+ 1.8
+ 1.8
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+
+
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java
new file mode 100644
index 000000000000..9283a8306343
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java
@@ -0,0 +1,196 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient;
+import com.azure.resourcemanager.appplatform.fluent.AppsClient;
+import com.azure.resourcemanager.appplatform.fluent.BindingsClient;
+import com.azure.resourcemanager.appplatform.fluent.CertificatesClient;
+import com.azure.resourcemanager.appplatform.fluent.CustomDomainsClient;
+import com.azure.resourcemanager.appplatform.fluent.DeploymentsClient;
+import com.azure.resourcemanager.appplatform.fluent.OperationsClient;
+import com.azure.resourcemanager.appplatform.fluent.ServicesClient;
+import com.azure.resourcemanager.appplatform.fluent.SkusClient;
+
+/** Initializes a new instance of the AppPlatformManagementClient type. */
+@ServiceClient(builder = AppPlatformManagementClientBuilder.class)
+public final class AppPlatformManagementClient extends AzureServiceClient {
+ private final ClientLogger logger = new ClientLogger(AppPlatformManagementClient.class);
+
+ /**
+ * Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The ServicesClient object to access its operations. */
+ private final ServicesClient services;
+
+ /**
+ * Gets the ServicesClient object to access its operations.
+ *
+ * @return the ServicesClient object.
+ */
+ public ServicesClient getServices() {
+ return this.services;
+ }
+
+ /** The AppsClient object to access its operations. */
+ private final AppsClient apps;
+
+ /**
+ * Gets the AppsClient object to access its operations.
+ *
+ * @return the AppsClient object.
+ */
+ public AppsClient getApps() {
+ return this.apps;
+ }
+
+ /** The BindingsClient object to access its operations. */
+ private final BindingsClient bindings;
+
+ /**
+ * Gets the BindingsClient object to access its operations.
+ *
+ * @return the BindingsClient object.
+ */
+ public BindingsClient getBindings() {
+ return this.bindings;
+ }
+
+ /** The CertificatesClient object to access its operations. */
+ private final CertificatesClient certificates;
+
+ /**
+ * Gets the CertificatesClient object to access its operations.
+ *
+ * @return the CertificatesClient object.
+ */
+ public CertificatesClient getCertificates() {
+ return this.certificates;
+ }
+
+ /** The CustomDomainsClient object to access its operations. */
+ private final CustomDomainsClient customDomains;
+
+ /**
+ * Gets the CustomDomainsClient object to access its operations.
+ *
+ * @return the CustomDomainsClient object.
+ */
+ public CustomDomainsClient getCustomDomains() {
+ return this.customDomains;
+ }
+
+ /** The DeploymentsClient object to access its operations. */
+ private final DeploymentsClient deployments;
+
+ /**
+ * Gets the DeploymentsClient object to access its operations.
+ *
+ * @return the DeploymentsClient object.
+ */
+ public DeploymentsClient getDeployments() {
+ return this.deployments;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
+ /**
+ * Initializes an instance of AppPlatformManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param environment The Azure environment.
+ */
+ AppPlatformManagementClient(
+ HttpPipeline httpPipeline, AzureEnvironment environment, String subscriptionId, String endpoint) {
+ super(httpPipeline, environment);
+ this.httpPipeline = httpPipeline;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2019-05-01-preview";
+ this.services = new ServicesClient(this);
+ this.apps = new AppsClient(this);
+ this.bindings = new BindingsClient(this);
+ this.certificates = new CertificatesClient(this);
+ this.customDomains = new CustomDomainsClient(this);
+ this.deployments = new DeploymentsClient(this);
+ this.operations = new OperationsClient(this);
+ this.skus = new SkusClient(this);
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClientBuilder.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClientBuilder.java
new file mode 100644
index 000000000000..fe7fcab4df6b
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClientBuilder.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+
+/** A builder for creating a new instance of the AppPlatformManagementClient type. */
+@ServiceClientBuilder(serviceClients = {AppPlatformManagementClient.class})
+public final class AppPlatformManagementClientBuilder {
+ /*
+ * Gets subscription ID which uniquely identify the Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AppPlatformManagementClient with the provided parameters.
+ *
+ * @return an instance of AppPlatformManagementClient.
+ */
+ public AppPlatformManagementClient buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ AppPlatformManagementClient client =
+ new AppPlatformManagementClient(pipeline, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
new file mode 100644
index 000000000000..02426a2949cd
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.resourcemanager.appplatform;
+
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpPipeline;
+import com.azure.resourcemanager.appplatform.implementation.SpringServicesImpl;
+import com.azure.resourcemanager.appplatform.models.SpringServices;
+import com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable;
+import com.azure.resourcemanager.resources.fluentcore.arm.implementation.AzureConfigurableImpl;
+import com.azure.resourcemanager.resources.fluentcore.arm.implementation.Manager;
+import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile;
+import com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider;
+import com.azure.resourcemanager.resources.fluentcore.utils.SdkContext;
+
+/** Entry point to Azure App Platform management. */
+public final class AppPlatformManager extends Manager {
+ // Collections
+ private SpringServices springServices;
+ /**
+ * Get a Configurable instance that can be used to create AppPlatformManager with optional configuration.
+ *
+ * @return the instance allowing configurations
+ */
+ public static Configurable configure() {
+ return new AppPlatformManager.ConfigurableImpl();
+ }
+
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param credential the credential to use
+ * @param profile the profile to use
+ * @return the AppPlatformManager
+ */
+ public static AppPlatformManager authenticate(TokenCredential credential, AzureProfile profile) {
+ return authenticate(HttpPipelineProvider.buildHttpPipeline(credential, profile), profile);
+ }
+
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param httpPipeline the HttpPipeline to be used for API calls.
+ * @param profile the profile to use
+ * @return the AppPlatformManager
+ */
+ public static AppPlatformManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ return authenticate(httpPipeline, profile, new SdkContext());
+ }
+
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param httpPipeline the HttpPipeline to be used for API calls.
+ * @param profile the profile to use
+ * @param sdkContext the sdk context
+ * @return the AppPlatformManager
+ */
+ public static AppPlatformManager authenticate(
+ HttpPipeline httpPipeline, AzureProfile profile, SdkContext sdkContext) {
+ return new AppPlatformManager(httpPipeline, profile, sdkContext);
+ }
+
+ /** The interface allowing configurations to be set. */
+ public interface Configurable extends AzureConfigurable {
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param credential the credential to use
+ * @param profile the profile to use
+ * @return the interface exposing AppPlatform management API entry points that work across subscriptions
+ */
+ AppPlatformManager authenticate(TokenCredential credential, AzureProfile profile);
+ }
+
+ /** The implementation for Configurable interface. */
+ private static final class ConfigurableImpl extends AzureConfigurableImpl implements Configurable {
+ public AppPlatformManager authenticate(TokenCredential credential, AzureProfile profile) {
+ return AppPlatformManager.authenticate(buildHttpPipeline(credential, profile), profile);
+ }
+ }
+
+ private AppPlatformManager(HttpPipeline httpPipeline, AzureProfile profile, SdkContext sdkContext) {
+ super(
+ httpPipeline,
+ profile,
+ new AppPlatformManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.environment().getResourceManagerEndpoint())
+ .subscriptionId(profile.subscriptionId())
+ .buildClient(),
+ sdkContext);
+ }
+
+ /** @return Entry point for Spring Service management API. */
+ public SpringServices springServices() {
+ if (springServices == null) {
+ springServices = new SpringServicesImpl(this);
+ }
+ return springServices;
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppsClient.java
new file mode 100644
index 000000000000..7e392b21bc22
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppsClient.java
@@ -0,0 +1,1577 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.AppResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.AppResourceInner;
+import com.azure.resourcemanager.appplatform.models.ResourceUploadDefinition;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Apps. */
+public final class AppsClient {
+ private final ClientLogger logger = new ClientLogger(AppsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final AppsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of AppsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public AppsClient(AppPlatformManagementClient client) {
+ this.service = RestProxy.create(AppsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientApps to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface AppsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @QueryParam("syncStatus") String syncStatus,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @BodyParam("application/json") AppResourceInner appResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @BodyParam("application/json") AppResourceInner appResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/getResourceUploadUrl")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getResourceUploadUrl(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ syncStatus,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ syncStatus,
+ context);
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, syncStatus)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, syncStatus, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(String resourceGroupName, String serviceName, String appName) {
+ final String syncStatus = null;
+ final Context context = null;
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, syncStatus)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner get(String resourceGroupName, String serviceName, String appName, String syncStatus) {
+ return getAsync(resourceGroupName, serviceName, appName, syncStatus).block();
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String syncStatus, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, syncStatus, context).block();
+ }
+
+ /**
+ * Get an App and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner get(String resourceGroupName, String serviceName, String appName) {
+ final String syncStatus = null;
+ final Context context = null;
+ return getAsync(resourceGroupName, serviceName, appName, syncStatus).block();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, appResource);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, appResource, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource).getSyncPoller();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, appResource).block();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, appResource, context).block();
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(String resourceGroupName, String serviceName, String appName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context);
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName) {
+ deleteAsync(resourceGroupName, serviceName, appName).block();
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, context).block();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, appResource);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, appResource, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource, context).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner update(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return updateAsync(resourceGroupName, serviceName, appName, appResource).block();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param appResource App resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner update(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return updateAsync(resourceGroupName, serviceName, appName, appResource, context).block();
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(String resourceGroupName, String serviceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, context));
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getResourceUploadUrlWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getResourceUploadUrl(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getResourceUploadUrlWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return service
+ .getResourceUploadUrl(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context);
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getResourceUploadUrlAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ return getResourceUploadUrlWithResponseAsync(resourceGroupName, serviceName, appName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getResourceUploadUrlAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return getResourceUploadUrlWithResponseAsync(resourceGroupName, serviceName, appName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResourceUploadDefinition getResourceUploadUrl(String resourceGroupName, String serviceName, String appName) {
+ return getResourceUploadUrlAsync(resourceGroupName, serviceName, appName).block();
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResourceUploadDefinition getResourceUploadUrl(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return getResourceUploadUrlAsync(resourceGroupName, serviceName, appName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/BindingsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/BindingsClient.java
new file mode 100644
index 000000000000..9a10fb6f6cdf
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/BindingsClient.java
@@ -0,0 +1,1296 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.BindingResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.BindingResourceInner;
+import com.azure.resourcemanager.appplatform.models.BindingResourceProperties;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Bindings. */
+public final class BindingsClient {
+ private final ClientLogger logger = new ClientLogger(BindingsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final BindingsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of BindingsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public BindingsClient(AppPlatformManagementClient client) {
+ this.service = RestProxy.create(BindingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientBindings to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface BindingsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ @BodyParam("application/json") BindingResourceInner bindingResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ @BodyParam("application/json") BindingResourceInner bindingResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get a Binding and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get a Binding and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context);
+ }
+
+ /**
+ * Get a Binding and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, bindingName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Binding and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Binding and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner get(String resourceGroupName, String serviceName, String appName, String bindingName) {
+ return getAsync(resourceGroupName, serviceName, appName, bindingName).block();
+ }
+
+ /**
+ * Get a Binding and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, bindingName, context).block();
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context);
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, serviceName, appName, bindingName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, bindingName, properties).block();
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, bindingName, properties, context).block();
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context);
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, String bindingName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, bindingName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, String bindingName) {
+ deleteAsync(resourceGroupName, serviceName, appName, bindingName).block();
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, bindingName, context).block();
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context);
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return updateWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return updateAsync(resourceGroupName, serviceName, appName, bindingName, properties).block();
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return updateAsync(resourceGroupName, serviceName, appName, bindingName, properties, context).block();
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName, String appName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, String appName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CertificatesClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CertificatesClient.java
new file mode 100644
index 000000000000..5a1853b7f415
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CertificatesClient.java
@@ -0,0 +1,956 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.CertificateResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.CertificateResourceInner;
+import com.azure.resourcemanager.appplatform.models.CertificateProperties;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Certificates. */
+public final class CertificatesClient {
+ private final ClientLogger logger = new ClientLogger(CertificatesClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final CertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of CertificatesClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public CertificatesClient(AppPlatformManagementClient client) {
+ this.service =
+ RestProxy.create(CertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientCertificates to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface CertificatesService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("certificateName") String certificateName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("certificateName") String certificateName,
+ @BodyParam("application/json") CertificateResourceInner certificateResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates/{certificateName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("certificateName") String certificateName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context);
+ }
+
+ /**
+ * Get the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String certificateName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, certificateName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, certificateName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner get(String resourceGroupName, String serviceName, String certificateName) {
+ return getAsync(resourceGroupName, serviceName, certificateName).block();
+ }
+
+ /**
+ * Get the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner get(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ return getAsync(resourceGroupName, serviceName, certificateName, context).block();
+ }
+
+ /**
+ * Create or update certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName, CertificateProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CertificateResourceInner certificateResource = new CertificateResourceInner();
+ certificateResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ certificateResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create or update certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String certificateName,
+ CertificateProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CertificateResourceInner certificateResource = new CertificateResourceInner();
+ certificateResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ certificateResource,
+ context);
+ }
+
+ /**
+ * Create or update certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String certificateName, CertificateProperties properties) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, certificateName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String certificateName,
+ CertificateProperties properties,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, certificateName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String certificateName, CertificateProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, certificateName, properties).block();
+ }
+
+ /**
+ * Create or update certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String certificateName,
+ CertificateProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, certificateName, properties, context).block();
+ }
+
+ /**
+ * Delete the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Delete the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context);
+ }
+
+ /**
+ * Delete the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String certificateName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, certificateName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, certificateName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String certificateName) {
+ deleteAsync(resourceGroupName, serviceName, certificateName).block();
+ }
+
+ /**
+ * Delete the certificate resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param certificateName The name of the certificate resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String certificateName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, certificateName, context).block();
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CustomDomainsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CustomDomainsClient.java
new file mode 100644
index 000000000000..bf62bebbb1a7
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CustomDomainsClient.java
@@ -0,0 +1,1526 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.CustomDomainResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.CustomDomainResourceInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.CustomDomainValidateResultInner;
+import com.azure.resourcemanager.appplatform.models.CustomDomainProperties;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidatePayload;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in CustomDomains. */
+public final class CustomDomainsClient {
+ private final ClientLogger logger = new ClientLogger(CustomDomainsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final CustomDomainsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of CustomDomainsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public CustomDomainsClient(AppPlatformManagementClient client) {
+ this.service =
+ RestProxy.create(CustomDomainsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientCustomDomains to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface CustomDomainsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("domainName") String domainName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("domainName") String domainName,
+ @BodyParam("application/json") CustomDomainResourceInner domainResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("domainName") String domainName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> patch(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("domainName") String domainName,
+ @BodyParam("application/json") CustomDomainResourceInner domainResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/validate")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> validate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @BodyParam("application/json") CustomDomainValidatePayload validatePayload,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context);
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, domainName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, domainName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String domainName) {
+ return getAsync(resourceGroupName, serviceName, appName, domainName).block();
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, domainName, context).block();
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context);
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, domainName, properties).block();
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, domainName, properties, context).block();
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context);
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, String domainName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, domainName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, domainName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, String domainName) {
+ deleteAsync(resourceGroupName, serviceName, appName, domainName).block();
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, domainName, context).block();
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> patchWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .patch(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> patchWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return service
+ .patch(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context);
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono patchAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return patchWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono patchAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return patchWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner patch(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return patchAsync(resourceGroupName, serviceName, appName, domainName, properties).block();
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner patch(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return patchAsync(resourceGroupName, serviceName, appName, domainName, properties, context).block();
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, String appName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, context));
+ }
+
+ /**
+ * Check the resource name is valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param name Name to be validated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> validateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String name) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ CustomDomainValidatePayload validatePayload = new CustomDomainValidatePayload();
+ validatePayload.withName(name);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .validate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ validatePayload,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Check the resource name is valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param name Name to be validated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> validateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String name, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ CustomDomainValidatePayload validatePayload = new CustomDomainValidatePayload();
+ validatePayload.withName(name);
+ return service
+ .validate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ validatePayload,
+ context);
+ }
+
+ /**
+ * Check the resource name is valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param name Name to be validated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono validateAsync(
+ String resourceGroupName, String serviceName, String appName, String name) {
+ return validateWithResponseAsync(resourceGroupName, serviceName, appName, name)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Check the resource name is valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param name Name to be validated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono validateAsync(
+ String resourceGroupName, String serviceName, String appName, String name, Context context) {
+ return validateWithResponseAsync(resourceGroupName, serviceName, appName, name, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Check the resource name is valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param name Name to be validated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainValidateResultInner validate(
+ String resourceGroupName, String serviceName, String appName, String name) {
+ return validateAsync(resourceGroupName, serviceName, appName, name).block();
+ }
+
+ /**
+ * Check the resource name is valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param name Name to be validated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainValidateResultInner validate(
+ String resourceGroupName, String serviceName, String appName, String name, Context context) {
+ return validateAsync(resourceGroupName, serviceName, appName, name, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
new file mode 100644
index 000000000000..47fed40a9026
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
@@ -0,0 +1,2960 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.CollectionFormat;
+import com.azure.core.util.serializer.JacksonAdapter;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.DeploymentResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.DeploymentResourceInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.LogFileUrlResponseInner;
+import com.azure.resourcemanager.appplatform.models.DeploymentResourceProperties;
+import java.nio.ByteBuffer;
+import java.util.List;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Deployments. */
+public final class DeploymentsClient {
+ private final ClientLogger logger = new ClientLogger(DeploymentsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final DeploymentsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of DeploymentsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public DeploymentsClient(AppPlatformManagementClient client) {
+ this.service =
+ RestProxy.create(DeploymentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientDeployments to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface DeploymentsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ @BodyParam("application/json") DeploymentResourceInner deploymentResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ @BodyParam("application/json") DeploymentResourceInner deploymentResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @QueryParam("version") String version,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/deployments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listClusterAllDeployments(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @QueryParam("version") String version,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/start")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> start(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> stop(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> restart(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getLogFileUrl(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listClusterAllDeploymentsNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get a Deployment and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get a Deployment and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context);
+ }
+
+ /**
+ * Get a Deployment and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Deployment and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Deployment and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ return getAsync(resourceGroupName, serviceName, appName, deploymentName).block();
+ }
+
+ /**
+ * Get a Deployment and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, deploymentName, context).block();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, properties);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, serviceName, appName, deploymentName, properties, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties).block();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .block();
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context);
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ deleteAsync(resourceGroupName, serviceName, appName, deploymentName).block();
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, deploymentName, context).block();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, properties);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return updateAsync(resourceGroupName, serviceName, appName, deploymentName, properties).block();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param properties Deployment resource properties payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return updateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context).block();
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param version Array of Get5ItemsItem.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, List version) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ String versionConverted =
+ JacksonAdapter.createDefaultSerializerAdapter().serializeList(version, CollectionFormat.CSV);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ versionConverted,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param version Array of Get5ItemsItem.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, List version, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ String versionConverted =
+ JacksonAdapter.createDefaultSerializerAdapter().serializeList(version, CollectionFormat.CSV);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ versionConverted,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param version Array of Get5ItemsItem.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, List version) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, version),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param version Array of Get5ItemsItem.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, List version, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, version, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName, String appName) {
+ final List version = null;
+ final Context context = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, version),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param version Array of Get5ItemsItem.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, List version) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, version));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param version Array of Get5ItemsItem.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable